${function() {
const variantData = data.variant || {"id":"4a463c77-9739-4167-9c09-4d6dd90a34d6","product_id":"6d9b78f5-e5a5-43ee-b144-016dc2084b54","title":"0.00(PLANO)","weight_unit":"kg","inventory_quantity":105,"sku":"PK-R-I-FFYL-Z-Y0","barcode":"","position":1,"option1":"0.00(PLANO)","option2":"","option3":"","note":"","image":null,"wholesale_price":[{"price":38,"min_quantity":1}],"weight":"0.04","compare_at_price":"38","price":"38","retail_price":"38","available":true,"url":"\/products\/chestnut-joy-cinnamoroll-6-months?variant=4a463c77-9739-4167-9c09-4d6dd90a34d6","available_quantity":105,"options":[{"name":"diopter","value":"0.00(PLANO)"}],"off_ratio":0,"flashsale_info":[],"sales":6};
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":"4a463c77-9739-4167-9c09-4d6dd90a34d6","product_id":"6d9b78f5-e5a5-43ee-b144-016dc2084b54","title":"0.00(PLANO)","weight_unit":"kg","inventory_quantity":105,"sku":"PK-R-I-FFYL-Z-Y0","barcode":"","position":1,"option1":"0.00(PLANO)","option2":"","option3":"","note":"","image":null,"wholesale_price":[{"price":38,"min_quantity":1}],"weight":"0.04","compare_at_price":"38","price":"38","retail_price":"38","available":true,"url":"\/products\/chestnut-joy-cinnamoroll-6-months?variant=4a463c77-9739-4167-9c09-4d6dd90a34d6","available_quantity":105,"options":[{"name":"diopter","value":"0.00(PLANO)"}],"off_ratio":0,"flashsale_info":[],"sales":6};
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 `
`;
}()}