${function() {
const variantData = data.variant || {"id":"f5130152-d77b-4311-865e-1191af2d821d","product_id":"72587093-ee66-4727-bf2c-d5d47f120429","title":"0.00\uff08PLANO\uff09","weight_unit":"kg","inventory_quantity":47,"sku":"JZCD-Z-Y0","barcode":"","position":1,"option1":"0.00\uff08PLANO\uff09","option2":"","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/4eef75f456accae358233b8b43d73090.jpeg","path":"4eef75f456accae358233b8b43d73090.jpeg","width":1200,"height":1200,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":17.99,"min_quantity":1}],"weight":"0.04","compare_at_price":"26.99","price":"17.99","retail_price":"26.99","available":true,"url":"\/products\/cofancy-brown-sugar-color-contacts-1-year-kiina-1pair-2pcs-\u7684\u526f\u672c?variant=f5130152-d77b-4311-865e-1191af2d821d","available_quantity":47,"options":[{"name":"diopter","value":"0.00\uff08PLANO\uff09"}],"off_ratio":33,"flashsale_info":[],"sales":1};
const saveType = "amount";
const saveText = "Save {{saved_amount}}";
const productLabelDiscountOn = false;
return `
-
${saveText.replace('\{\{saved_amount\}\}',
saveType == 'percentage'
? variantData.off_ratio + '%'
: ``
)}
`;
}()}
Diopter
${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":"f5130152-d77b-4311-865e-1191af2d821d","product_id":"72587093-ee66-4727-bf2c-d5d47f120429","title":"0.00\uff08PLANO\uff09","weight_unit":"kg","inventory_quantity":47,"sku":"JZCD-Z-Y0","barcode":"","position":1,"option1":"0.00\uff08PLANO\uff09","option2":"","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/4eef75f456accae358233b8b43d73090.jpeg","path":"4eef75f456accae358233b8b43d73090.jpeg","width":1200,"height":1200,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":17.99,"min_quantity":1}],"weight":"0.04","compare_at_price":"26.99","price":"17.99","retail_price":"26.99","available":true,"url":"\/products\/cofancy-brown-sugar-color-contacts-1-year-kiina-1pair-2pcs-\u7684\u526f\u672c?variant=f5130152-d77b-4311-865e-1191af2d821d","available_quantity":47,"options":[{"name":"diopter","value":"0.00\uff08PLANO\uff09"}],"off_ratio":33,"flashsale_info":[],"sales":1};
return `
`
}()}
${function() {
const postageFreeAmount = 59;
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 `
`;
}()}