${function() {
const variantData = data.variant || {"id":"8ce4e9ef-bcbe-4848-983f-295b8a5dfd14","product_id":"cdf2126c-ea85-4c56-b54f-5f1bc4963440","title":"Blue-L","weight_unit":"kg","inventory_quantity":0,"sku":"220805369-Blue-L","barcode":"","position":1,"option1":"Blue","option2":"L","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/1c545099e21e6723b7acbe0965e2be61.jpeg","path":"1c545099e21e6723b7acbe0965e2be61.jpeg","width":800,"height":800,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":53.19,"min_quantity":1}],"weight":"0.3","compare_at_price":"64.87","price":"53.19","retail_price":"64.87","available":true,"url":"\/products\/printed-pleated-long-sleeves-spring-and-summer-2-pieces-suit-xal6?variant=8ce4e9ef-bcbe-4848-983f-295b8a5dfd14","available_quantity":999999999,"options":[{"name":"Color","value":"Blue"},{"name":"Size","value":"L"}],"off_ratio":18,"flashsale_info":[],"sales":7};
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 = 69;
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 `
`;
}()}