${function() {
const variantData = data.variant || {"id":"e4ff1ce5-f743-4d68-ba6a-50f31d2ea4a5","product_id":"c0bf7ba2-a0ad-4d65-9cfe-7984ff35be4d","title":"Picture Color-XS","weight_unit":"kg","inventory_quantity":1000,"sku":"WD2529122-Picture Color-XS","barcode":"","position":1,"option1":"Picture Color","option2":"XS","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/f2f00b869ddb645824b4430aca3aee06.jpeg","path":"f2f00b869ddb645824b4430aca3aee06.jpeg","width":900,"height":1200,"alt":"","aspect_ratio":0.75},"wholesale_price":[{"price":29.99,"min_quantity":1}],"weight":"0","compare_at_price":"0","price":"29.99","retail_price":"0","available":true,"url":"\/products\/vintage-halo-dyeing-print-backless-dress?variant=e4ff1ce5-f743-4d68-ba6a-50f31d2ea4a5","available_quantity":999999999,"options":[{"name":"color","value":"Picture Color"},{"name":"size","value":"XS"}],"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}
`
}()}
${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 postageFreeAmount = 79;
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 `
`;
}()}