${function() {
const variantData = data.variant || {"id":"be53b7a9-5268-41c6-82d9-a05c33383abf","product_id":"3ed89a4a-fffd-469c-95d4-2b6981fb0234","title":"Blue-multi shape","weight_unit":"kg","inventory_quantity":-32,"sku":"XJY2084-BLDH","barcode":"","position":1,"option1":"Blue","option2":"multi shape","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/04cb679ac49d0b19938d9e0d19624a2e.jpeg","path":"04cb679ac49d0b19938d9e0d19624a2e.jpeg","width":800,"height":800,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":15.99,"min_quantity":1}],"weight":"0","compare_at_price":"15.99","price":"15.99","retail_price":"15.99","available":true,"url":"\/products\/turquoise-flower-vintage-necklace-y2084?variant=be53b7a9-5268-41c6-82d9-a05c33383abf","available_quantity":999999999,"options":[{"name":"Color","value":"Blue"},{"name":"shape","value":"multi shape"}],"off_ratio":0,"flashsale_info":[],"sales":25};
const saveType = "percentage";
const saveText = "Save {{saved_amount}}";
const productLabelDiscountOn = true;
return `
-
${saveText.replace('\{\{saved_amount\}\}',
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}
`
}()}
Shape
: multi shape
${function(){
const optName = "shape";
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}
`
}()}
Free shipping Orders Over $79
Add to cart
$15.99
${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":"be53b7a9-5268-41c6-82d9-a05c33383abf","product_id":"3ed89a4a-fffd-469c-95d4-2b6981fb0234","title":"Blue-multi shape","weight_unit":"kg","inventory_quantity":-32,"sku":"XJY2084-BLDH","barcode":"","position":1,"option1":"Blue","option2":"multi shape","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/04cb679ac49d0b19938d9e0d19624a2e.jpeg","path":"04cb679ac49d0b19938d9e0d19624a2e.jpeg","width":800,"height":800,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":15.99,"min_quantity":1}],"weight":"0","compare_at_price":"15.99","price":"15.99","retail_price":"15.99","available":true,"url":"\/products\/turquoise-flower-vintage-necklace-y2084?variant=be53b7a9-5268-41c6-82d9-a05c33383abf","available_quantity":999999999,"options":[{"name":"Color","value":"Blue"},{"name":"shape","value":"multi shape"}],"off_ratio":0,"flashsale_info":[],"sales":25};
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":"be53b7a9-5268-41c6-82d9-a05c33383abf","product_id":"3ed89a4a-fffd-469c-95d4-2b6981fb0234","title":"Blue-multi shape","weight_unit":"kg","inventory_quantity":-32,"sku":"XJY2084-BLDH","barcode":"","position":1,"option1":"Blue","option2":"multi shape","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/04cb679ac49d0b19938d9e0d19624a2e.jpeg","path":"04cb679ac49d0b19938d9e0d19624a2e.jpeg","width":800,"height":800,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":15.99,"min_quantity":1}],"weight":"0","compare_at_price":"15.99","price":"15.99","retail_price":"15.99","available":true,"url":"\/products\/turquoise-flower-vintage-necklace-y2084?variant=be53b7a9-5268-41c6-82d9-a05c33383abf","available_quantity":999999999,"options":[{"name":"Color","value":"Blue"},{"name":"shape","value":"multi shape"}],"off_ratio":0,"flashsale_info":[],"sales":25};
return `
`
}()}