${function() {
const variantData = data.variant || {"id":"8c8c1775-b88e-4bed-bd4e-8b8dcaed665e","product_id":"6cc4a968-dc24-4bfe-97bf-5a0d4b22f004","title":"-5.50","weight_unit":"kg","inventory_quantity":51,"sku":"CZ003D08502D-550","barcode":"","position":19,"option1":"-5.50","option2":"","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/a0987ad967ee96799dd6ea7b80f4aa2a.jpeg","path":"a0987ad967ee96799dd6ea7b80f4aa2a.jpeg","width":800,"height":800,"alt":"","aspect_ratio":1},"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\/indigo-blue-trial-pack-highlight-moment-1-day-2-pcs?variant=8c8c1775-b88e-4bed-bd4e-8b8dcaed665e","available_quantity":51,"options":[{"name":"diopter","value":"-5.50"}],"off_ratio":0,"flashsale_info":[],"sales":2};
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":"8c8c1775-b88e-4bed-bd4e-8b8dcaed665e","product_id":"6cc4a968-dc24-4bfe-97bf-5a0d4b22f004","title":"-5.50","weight_unit":"kg","inventory_quantity":51,"sku":"CZ003D08502D-550","barcode":"","position":19,"option1":"-5.50","option2":"","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/a0987ad967ee96799dd6ea7b80f4aa2a.jpeg","path":"a0987ad967ee96799dd6ea7b80f4aa2a.jpeg","width":800,"height":800,"alt":"","aspect_ratio":1},"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\/indigo-blue-trial-pack-highlight-moment-1-day-2-pcs?variant=8c8c1775-b88e-4bed-bd4e-8b8dcaed665e","available_quantity":51,"options":[{"name":"diopter","value":"-5.50"}],"off_ratio":0,"flashsale_info":[],"sales":2};
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 `
`;
}()}