${function() {
const variantData = data.variant || {"id":"5b9f985f-5a5b-469f-908e-2ec9b0f65f5d","product_id":"385e9b1a-0c5e-44c1-9e55-48be50d28314","title":"0.00(PLANO)","weight_unit":"kg","inventory_quantity":480,"sku":"2KLGHP-Z-Y0","barcode":"","position":1,"option1":"0.00(PLANO)","option2":"","option3":"","note":"","image":null,"wholesale_price":[{"price":31.5,"min_quantity":1}],"weight":"0.04","compare_at_price":"35","price":"31.5","retail_price":"35","available":true,"url":"\/products\/gems-brown-cozy-6-months-2-pcs?variant=5b9f985f-5a5b-469f-908e-2ec9b0f65f5d","available_quantity":480,"options":[{"name":"diopter","value":"0.00(PLANO)"}],"off_ratio":10,"flashsale_info":[],"sales":8};
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":"5b9f985f-5a5b-469f-908e-2ec9b0f65f5d","product_id":"385e9b1a-0c5e-44c1-9e55-48be50d28314","title":"0.00(PLANO)","weight_unit":"kg","inventory_quantity":480,"sku":"2KLGHP-Z-Y0","barcode":"","position":1,"option1":"0.00(PLANO)","option2":"","option3":"","note":"","image":null,"wholesale_price":[{"price":31.5,"min_quantity":1}],"weight":"0.04","compare_at_price":"35","price":"31.5","retail_price":"35","available":true,"url":"\/products\/gems-brown-cozy-6-months-2-pcs?variant=5b9f985f-5a5b-469f-908e-2ec9b0f65f5d","available_quantity":480,"options":[{"name":"diopter","value":"0.00(PLANO)"}],"off_ratio":10,"flashsale_info":[],"sales":8};
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 `
`;
}()}