Retro color separation Blue Gold Natural Stone Earrings songshilan Earrings
${function() {
const variantData = data.variant || {"id":"4a26f5ad-16ed-4dca-82a6-08969e22690e","product_id":"fc863f5f-45d5-4c29-94a3-8b69b10b10dc","title":"Blue-One Size","weight_unit":"kg","inventory_quantity":1000,"sku":"100851380001","barcode":"","position":1,"option1":"Blue","option2":"One Size","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/fb7728688ae45a71d213d483b96a555a.jpeg","path":"fb7728688ae45a71d213d483b96a555a.jpeg","width":1340,"height":1440,"alt":"","aspect_ratio":0.9305555555555556},"wholesale_price":[{"price":15.98,"min_quantity":1}],"weight":"0","compare_at_price":"13.98","price":"15.98","retail_price":"13.98","available":true,"url":"\/products\/retro-color-separation-blue-gold-natural-stone-earrings-songshilan-earrings?variant=4a26f5ad-16ed-4dca-82a6-08969e22690e","available_quantity":999999999,"options":[{"name":"Color","value":"Blue"},{"name":"Size","value":"One Size"}],"off_ratio":0,"flashsale_info":[],"sales":0};
const saveType = "percentage";
const productLabelDiscountOn = true;
return `
-
${saveType == 'percentage'
? `-${variantData.off_ratio}% `
: `- `
}
`;
}()}
Color:
Blue
${function(){
const optName = "Color";
const optionValue = data.originData.selectData ? data.originData.selectData[optName].value : data.originData.value;
const optionValueText = optionValue ? (optionValue) : '';
return `${optionValueText} `;
}()}
${function(){
const tipText = "Please select a {{ name }}".replace(/\{\{\s+name\s+\}\}/g, data);
return `${tipText}
`
}()}
Size:
One Size
${function(){
const optName = "Size";
const optionValue = data.originData.selectData ? data.originData.selectData[optName].value : data.originData.value;
const optionValueText = optionValue ? (optionValue) : '';
return `${optionValueText} `;
}()}
${function(){
const tipText = "Please select a {{ name }}".replace(/\{\{\s+name\s+\}\}/g, data);
return `${tipText}
`
}()}
Add to cart
$15.98
${function(){
const wholesale_enabled = false;
const qty = data.quantity || 1;
const currentSelectVariant = data.variant;
const defaultVariant = (data.product && data.product.variants && data.product.variants[0]);
const productVariant = {"id":"4a26f5ad-16ed-4dca-82a6-08969e22690e","product_id":"fc863f5f-45d5-4c29-94a3-8b69b10b10dc","title":"Blue-One Size","weight_unit":"kg","inventory_quantity":1000,"sku":"100851380001","barcode":"","position":1,"option1":"Blue","option2":"One Size","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/fb7728688ae45a71d213d483b96a555a.jpeg","path":"fb7728688ae45a71d213d483b96a555a.jpeg","width":1340,"height":1440,"alt":"","aspect_ratio":0.9305555555555556},"wholesale_price":[{"price":15.98,"min_quantity":1}],"weight":"0","compare_at_price":"13.98","price":"15.98","retail_price":"13.98","available":true,"url":"\/products\/retro-color-separation-blue-gold-natural-stone-earrings-songshilan-earrings?variant=4a26f5ad-16ed-4dca-82a6-08969e22690e","available_quantity":999999999,"options":[{"name":"Color","value":"Blue"},{"name":"Size","value":"One Size"}],"off_ratio":0,"flashsale_info":[],"sales":0};
const variantData = currentSelectVariant || defaultVariant || productVariant;
const wholesale_price = variantData.wholesale_price || [];
if(wholesale_enabled && wholesale_price.length > 0) {
let wholesaleIndex = wholesale_price.findIndex(item => {
return item.min_quantity > qty;
});
if(wholesaleIndex < 0){
wholesaleIndex = wholesale_price.length - 1;
}else if(wholesaleIndex > 0){
wholesaleIndex = wholesaleIndex - 1;
}
const wholesalePrice = wholesale_price[wholesaleIndex] || '';
return `
`
}else {
const price = variantData && variantData.price;
return price != undefined ? `
` : ' ';
}
}()}
Buy now
Product was out of stock.
Product is unavailable.
${function(){
const variantData = data.variant || {"id":"4a26f5ad-16ed-4dca-82a6-08969e22690e","product_id":"fc863f5f-45d5-4c29-94a3-8b69b10b10dc","title":"Blue-One Size","weight_unit":"kg","inventory_quantity":1000,"sku":"100851380001","barcode":"","position":1,"option1":"Blue","option2":"One Size","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/fb7728688ae45a71d213d483b96a555a.jpeg","path":"fb7728688ae45a71d213d483b96a555a.jpeg","width":1340,"height":1440,"alt":"","aspect_ratio":0.9305555555555556},"wholesale_price":[{"price":15.98,"min_quantity":1}],"weight":"0","compare_at_price":"13.98","price":"15.98","retail_price":"13.98","available":true,"url":"\/products\/retro-color-separation-blue-gold-natural-stone-earrings-songshilan-earrings?variant=4a26f5ad-16ed-4dca-82a6-08969e22690e","available_quantity":999999999,"options":[{"name":"Color","value":"Blue"},{"name":"Size","value":"One Size"}],"off_ratio":0,"flashsale_info":[],"sales":0};
return `
`
}()}