${function() {
const variantData = data.variant || {"id":"91096fa4-c683-4373-9961-5077abfd030a","product_id":"4c41d023-b7c7-4f1c-8018-3abeb520ffc6","title":"-3.75","weight_unit":"kg","inventory_quantity":11,"sku":"CZ009D08202D-375","barcode":"","position":13,"option1":"-3.75","option2":"","option3":"","note":"","image":null,"wholesale_price":[{"price":7.98,"min_quantity":1}],"weight":"0.04","compare_at_price":"7.98","price":"7.98","retail_price":"7.98","available":true,"url":"\/products\/amber-r132-trial-pack-highlight-pro-1-day-2-pcs?variant=91096fa4-c683-4373-9961-5077abfd030a","available_quantity":11,"options":[{"name":"diopter","value":"-3.75"}],"off_ratio":0,"flashsale_info":[],"sales":7};
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":"91096fa4-c683-4373-9961-5077abfd030a","product_id":"4c41d023-b7c7-4f1c-8018-3abeb520ffc6","title":"-3.75","weight_unit":"kg","inventory_quantity":11,"sku":"CZ009D08202D-375","barcode":"","position":13,"option1":"-3.75","option2":"","option3":"","note":"","image":null,"wholesale_price":[{"price":7.98,"min_quantity":1}],"weight":"0.04","compare_at_price":"7.98","price":"7.98","retail_price":"7.98","available":true,"url":"\/products\/amber-r132-trial-pack-highlight-pro-1-day-2-pcs?variant=91096fa4-c683-4373-9961-5077abfd030a","available_quantity":11,"options":[{"name":"diopter","value":"-3.75"}],"off_ratio":0,"flashsale_info":[],"sales":7};
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 `
`;
}()}