${function() {
const variantData = data.variant || {"id":"c00d8185-d768-439c-a588-f3976819c750","product_id":"4cba5461-8490-4b46-8f37-a7f1379467f0","title":"PLANO 0.00","weight_unit":"kg","inventory_quantity":1110,"sku":"CZ020D30502Y-000","barcode":"","position":1,"option1":"PLANO 0.00","option2":"","option3":"","note":"","image":null,"wholesale_price":[{"price":35,"min_quantity":1}],"weight":"0","compare_at_price":"35","price":"35","retail_price":"35","available":true,"url":"\/products\/digital-tear-highlight-moment-6-months-2-pcs?variant=c00d8185-d768-439c-a588-f3976819c750","available_quantity":1110,"options":[{"name":"Diopter","value":"PLANO 0.00"}],"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":"c00d8185-d768-439c-a588-f3976819c750","product_id":"4cba5461-8490-4b46-8f37-a7f1379467f0","title":"PLANO 0.00","weight_unit":"kg","inventory_quantity":1110,"sku":"CZ020D30502Y-000","barcode":"","position":1,"option1":"PLANO 0.00","option2":"","option3":"","note":"","image":null,"wholesale_price":[{"price":35,"min_quantity":1}],"weight":"0","compare_at_price":"35","price":"35","retail_price":"35","available":true,"url":"\/products\/digital-tear-highlight-moment-6-months-2-pcs?variant=c00d8185-d768-439c-a588-f3976819c750","available_quantity":1110,"options":[{"name":"Diopter","value":"PLANO 0.00"}],"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 `
`;
}()}