${function() {
const variantData = data.variant || {"id":"21a647de-9481-4f33-87bc-54ea2cda7fd1","product_id":"460584a9-93d4-40bf-9d27-76b35e50421f","title":"0.00","weight_unit":"kg","inventory_quantity":425,"sku":"CZ002D17002Y-000","barcode":"","position":1,"option1":"0.00","option2":"","option3":"","note":"","image":null,"wholesale_price":[{"price":32,"min_quantity":1}],"weight":"0","compare_at_price":"32","price":"32","retail_price":"32","available":true,"url":"\/products\/rinsed-rose-highlight-moment-6-months-2-pcs?variant=21a647de-9481-4f33-87bc-54ea2cda7fd1","available_quantity":425,"options":[{"name":"Diopter","value":"0.00"}],"off_ratio":0,"flashsale_info":[],"sales":4};
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":"21a647de-9481-4f33-87bc-54ea2cda7fd1","product_id":"460584a9-93d4-40bf-9d27-76b35e50421f","title":"0.00","weight_unit":"kg","inventory_quantity":425,"sku":"CZ002D17002Y-000","barcode":"","position":1,"option1":"0.00","option2":"","option3":"","note":"","image":null,"wholesale_price":[{"price":32,"min_quantity":1}],"weight":"0","compare_at_price":"32","price":"32","retail_price":"32","available":true,"url":"\/products\/rinsed-rose-highlight-moment-6-months-2-pcs?variant=21a647de-9481-4f33-87bc-54ea2cda7fd1","available_quantity":425,"options":[{"name":"Diopter","value":"0.00"}],"off_ratio":0,"flashsale_info":[],"sales":4};
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 `
`;
}()}