people are viewing this right now
${function() {
const variantData = data.variant || {"id":"c31e46f3-b295-48ed-aaa5-acdcb8a4118f","product_id":"443ed9fd-5d94-46c1-beef-fea16e615f3c","title":"Silver","weight_unit":"kg","inventory_quantity":1000,"sku":"14:350853","barcode":"","position":2,"option1":"Silver","option2":"","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/bf3bd3fa231cd14cdd48f67b6cdec26c.jpeg","path":"bf3bd3fa231cd14cdd48f67b6cdec26c.jpeg","width":800,"height":800,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":28.31,"min_quantity":1}],"weight":"0","compare_at_price":"0","price":"28.31","retail_price":"0","available":true,"url":"\/products\/6pcs-lot-fall-leaves-napkin-rings-gold-silver-christening-bangle-metal-napkin-holder-wedding-gifts-baptismal-shower-party-decor?variant=c31e46f3-b295-48ed-aaa5-acdcb8a4118f","available_quantity":999999999,"options":[{"name":"Color","value":"Silver"}],"off_ratio":0,"flashsale_info":[],"sales":0};
const saveType = "amount";
const saveText = "Save {{saved_amount}}";
const productLabelDiscountOn = true;
return `
-
${saveText.replace('\{\{saved_amount\}\}',
saveType == 'percentage'
? variantData.off_ratio + '%'
: ``
)}
`;
}()}
${function(){
const tipText = "Please select a {{ name }}".replace(/\{\{\s+name\s+\}\}/g, data);
return `${tipText}
`
}()}
Product was out of stock.
Product is unavailable.
${function(){
const variantData = data.variant || {"id":"c31e46f3-b295-48ed-aaa5-acdcb8a4118f","product_id":"443ed9fd-5d94-46c1-beef-fea16e615f3c","title":"Silver","weight_unit":"kg","inventory_quantity":1000,"sku":"14:350853","barcode":"","position":2,"option1":"Silver","option2":"","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/bf3bd3fa231cd14cdd48f67b6cdec26c.jpeg","path":"bf3bd3fa231cd14cdd48f67b6cdec26c.jpeg","width":800,"height":800,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":28.31,"min_quantity":1}],"weight":"0","compare_at_price":"0","price":"28.31","retail_price":"0","available":true,"url":"\/products\/6pcs-lot-fall-leaves-napkin-rings-gold-silver-christening-bangle-metal-napkin-holder-wedding-gifts-baptismal-shower-party-decor?variant=c31e46f3-b295-48ed-aaa5-acdcb8a4118f","available_quantity":999999999,"options":[{"name":"Color","value":"Silver"}],"off_ratio":0,"flashsale_info":[],"sales":0};
return `
`
}()}
${function() {
const postageFreeAmount = 60;
const custom_text = "Buy {amount} more to enjoy FREE Shipping";
const totalPrice = +data.total_price;
const diffPrice = postageFreeAmount - totalPrice;
const percentDiff = (diffPrice > 0 ? (totalPrice / postageFreeAmount * 100) : 100) + '%';
let tipText = "Your order is free delivery";
if (diffPrice > 0) {
tipText = custom_text.replace('{amount}', `
`);
}
return `
`;
}()}