${function() {
const variantData = data.variant || {"id":"92a95d53-6b24-47bc-988f-2bae65f41767","product_id":"f6aa88b0-37fe-4892-ac0e-3d6c8ba4f043","title":"Light Grey-S","weight_unit":"kg","inventory_quantity":1000,"sku":"K625544666481283072","barcode":"","position":1,"option1":"Light Grey","option2":"S","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/5a5e12ace4674e38acbf752595a8fea8.jpeg","path":"5a5e12ace4674e38acbf752595a8fea8.jpeg","width":713,"height":950,"alt":"","aspect_ratio":0.7505263157894737},"wholesale_price":[{"price":26.99,"min_quantity":1}],"weight":"0","compare_at_price":"44.99","price":"26.99","retail_price":"44.99","available":true,"url":"\/products\/mens-independence-day-flag-print-linen-blend-shirt-luk9a44e28ec-aac7-40fc-889f-f01b698f6827?variant=92a95d53-6b24-47bc-988f-2bae65f41767","available_quantity":999999999,"options":[{"name":"Color","value":"Light Grey"},{"name":"Size","value":"S"}],"off_ratio":40,"flashsale_info":[],"sales":2};
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 `
`;
}()}