${function() {
const variantData = data.variant || {"id":"6593b8f8-dd18-47b9-9fab-428d6ba1fcc5","product_id":"f674cb50-6173-4866-b9ac-312c86b4f20d","title":"0.00\uff08PLANO\uff09","weight_unit":"kg","inventory_quantity":754,"sku":"CZ008D12110D-000","barcode":"","position":1,"option1":"0.00\uff08PLANO\uff09","option2":"","option3":"","note":"","image":null,"wholesale_price":[{"price":25,"min_quantity":1}],"weight":"0.04","compare_at_price":"25","price":"25","retail_price":"25","available":true,"url":"\/products\/sketch-grey-can-1-day-10-pcs?variant=6593b8f8-dd18-47b9-9fab-428d6ba1fcc5","available_quantity":754,"options":[{"name":"diopter","value":"0.00\uff08PLANO\uff09"}],"off_ratio":0,"flashsale_info":[],"sales":19};
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":"6593b8f8-dd18-47b9-9fab-428d6ba1fcc5","product_id":"f674cb50-6173-4866-b9ac-312c86b4f20d","title":"0.00\uff08PLANO\uff09","weight_unit":"kg","inventory_quantity":754,"sku":"CZ008D12110D-000","barcode":"","position":1,"option1":"0.00\uff08PLANO\uff09","option2":"","option3":"","note":"","image":null,"wholesale_price":[{"price":25,"min_quantity":1}],"weight":"0.04","compare_at_price":"25","price":"25","retail_price":"25","available":true,"url":"\/products\/sketch-grey-can-1-day-10-pcs?variant=6593b8f8-dd18-47b9-9fab-428d6ba1fcc5","available_quantity":754,"options":[{"name":"diopter","value":"0.00\uff08PLANO\uff09"}],"off_ratio":0,"flashsale_info":[],"sales":19};
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 `
`;
}()}