${function() {
const variantData = data.variant || {"id":"7caae895-5319-4132-b13f-f3fca4e0ea3a","product_id":"bff20213-52b6-4089-9d26-bf7e3985f117","title":"white-S(4)","weight_unit":"kg","inventory_quantity":1000,"sku":"ODT4082-w-S-ichic","barcode":"","position":1,"option1":"white","option2":"S(4)","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/ee1ddd47a7d7dd81de9ac099854c69a6.jpeg","path":"ee1ddd47a7d7dd81de9ac099854c69a6.jpeg","width":800,"height":1000,"alt":"","aspect_ratio":0.8},"wholesale_price":[{"price":24.99,"min_quantity":1}],"weight":"0","compare_at_price":"28.99","price":"24.99","retail_price":"28.99","available":true,"url":"\/products\/eyelet-embroidery-roll-up-sleeve-open-front-coat?variant=7caae895-5319-4132-b13f-f3fca4e0ea3a","available_quantity":999999999,"options":[{"name":"Color","value":"white"},{"name":"Size","value":"S(4)"}],"off_ratio":14,"flashsale_info":[],"sales":4};
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 `
`;
}()}