${function() {
const variantData = data.variant || {"id":"2d729d78-b59b-4bb6-8c97-50d45ac082a9","product_id":"e65ac6af-b63e-4b07-ad59-4856c95e16da","title":"0.00(PLANO)","weight_unit":"kg","inventory_quantity":0,"sku":"PK-S-I-YYHA-H-M0","barcode":"","position":1,"option1":"0.00(PLANO)","option2":"","option3":"","note":"","image":null,"wholesale_price":[{"price":32,"min_quantity":1}],"weight":"0.04","compare_at_price":"32","price":"32","retail_price":"32","available":false,"url":"\/products\/night-bay-cinnamoroll-1-month-2-pcs?variant=2d729d78-b59b-4bb6-8c97-50d45ac082a9","available_quantity":0,"options":[{"name":"diopter","value":"0.00(PLANO)"}],"off_ratio":0,"flashsale_info":[],"sales":0};
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":"2d729d78-b59b-4bb6-8c97-50d45ac082a9","product_id":"e65ac6af-b63e-4b07-ad59-4856c95e16da","title":"0.00(PLANO)","weight_unit":"kg","inventory_quantity":0,"sku":"PK-S-I-YYHA-H-M0","barcode":"","position":1,"option1":"0.00(PLANO)","option2":"","option3":"","note":"","image":null,"wholesale_price":[{"price":32,"min_quantity":1}],"weight":"0.04","compare_at_price":"32","price":"32","retail_price":"32","available":false,"url":"\/products\/night-bay-cinnamoroll-1-month-2-pcs?variant=2d729d78-b59b-4bb6-8c97-50d45ac082a9","available_quantity":0,"options":[{"name":"diopter","value":"0.00(PLANO)"}],"off_ratio":0,"flashsale_info":[],"sales":0};
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 `
`;
}()}