${function() {
const variantData = data.variant || {"id":"dd50c023-2bb7-4dcc-a887-d0ab12a7d8ea","product_id":"1565b003-89d8-49b9-a7f9-0dcf48c8525f","title":"Blue-S","weight_unit":"kg","inventory_quantity":1000,"sku":"BLG354218-BLU00S","barcode":"","position":1,"option1":"Blue","option2":"S","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/4adbb53a734d22f1974e57cb2b12bb66.jpeg","path":"4adbb53a734d22f1974e57cb2b12bb66.jpeg","width":675,"height":900,"alt":"","aspect_ratio":0.75},"wholesale_price":[{"price":25.99,"min_quantity":1}],"weight":"0","compare_at_price":"37.99","price":"25.99","retail_price":"37.99","available":true,"url":"\/products\/spring-and-summer-new-retro-cotton-linen-fashion-printing-loose-casual-lining-round-neck-short-sleeved-t-shirt-women-584b35aea-6762-45b3-ac38-821b3c1c3b09?variant=dd50c023-2bb7-4dcc-a887-d0ab12a7d8ea","available_quantity":999999999,"options":[{"name":"Color","value":"Blue"},{"name":"Size","value":"S"}],"off_ratio":32,"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 `
`;
}()}