${function() {
const variantData = data.variant || {"id":"bf9d10ce-d756-452c-b451-ed147f41e3ca","product_id":"d70b8b01-fd1f-4586-8851-87f39efb0c04","title":"black-S(4)","weight_unit":"kg","inventory_quantity":1000,"sku":"LC6691-bk-S-ichic","barcode":"","position":1,"option1":"black","option2":"S(4)","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/02412751f2744a77aeae397b0e1d04dd.jpeg","path":"02412751f2744a77aeae397b0e1d04dd.jpeg","width":800,"height":1000,"alt":"","aspect_ratio":0.8},"wholesale_price":[{"price":31.19,"min_quantity":1}],"weight":"0","compare_at_price":"51.99","price":"31.19","retail_price":"51.99","available":true,"url":"\/products\/tank-top-pants-set-with-buttoned-cardigan?variant=bf9d10ce-d756-452c-b451-ed147f41e3ca","available_quantity":999999999,"options":[{"name":"Color","value":"black"},{"name":"Size","value":"S(4)"}],"off_ratio":40,"flashsale_info":[],"sales":0};
const saveType = "amount";
const saveText = "Save {{saved_amount}}";
const productLabelDiscountOn = true;
return `
-
${saveText.replace('\{\{saved_amount\}\}',
saveType == 'percentage'
? variantData.off_ratio + '%'
: ``
)}
`;
}()}
${function(){
const tipText = "Please select a {{ name }}".replace(/\{\{\s+name\s+\}\}/g, data);
return `${tipText}
`
}()}
${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 postageFreeAmount = 79;
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 `
`;
}()}