${function() {
const variantData = data.variant || {"id":"c20f8447-bd9a-4f23-8e27-e9e1599ea8cf","product_id":"7d8fc7f2-4ecf-4e90-a113-bcec6f6542ec","title":"Dark Grey-S","weight_unit":"kg","inventory_quantity":1000,"sku":"WTS201196-DGY00S","barcode":"","position":9,"option1":"Dark Grey","option2":"S","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/3ea36cdf45ada9d6ea762fd6799a1884.jpeg","path":"3ea36cdf45ada9d6ea762fd6799a1884.jpeg","width":675,"height":900,"alt":"","aspect_ratio":0.75},"wholesale_price":[{"price":20.99,"min_quantity":1}],"weight":"0","compare_at_price":"27.99","price":"20.99","retail_price":"27.99","available":true,"url":"\/products\/womens-let-them-keep-shining-print-casual-t-shirt?variant=c20f8447-bd9a-4f23-8e27-e9e1599ea8cf","available_quantity":999999999,"options":[{"name":"Color","value":"Dark Grey"},{"name":"Size","value":"S"}],"off_ratio":25,"flashsale_info":[],"sales":22};
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 `
`;
}()}