${function() {
const variantData = data.variant || {"id":"f954eab7-4937-4bf2-bca2-e98728a68e48","product_id":"58d64170-ce2d-41a3-a5de-0c6dbe6380ca","title":"Blue-S","weight_unit":"kg","inventory_quantity":1000,"sku":"WTS208974-BLU00S","barcode":"","position":7,"option1":"Blue","option2":"S","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/56f3413c75c9604a021e3a984bea4a99.jpeg","path":"56f3413c75c9604a021e3a984bea4a99.jpeg","width":675,"height":900,"alt":"","aspect_ratio":0.75},"wholesale_price":[{"price":23.99,"min_quantity":1}],"weight":"0","compare_at_price":"37.99","price":"23.99","retail_price":"37.99","available":true,"url":"\/products\/womens-the-world-is-a-better-place-with-you-in-it-print-short-sleeve-t-shirt?variant=f954eab7-4937-4bf2-bca2-e98728a68e48","available_quantity":999999999,"options":[{"name":"Color","value":"Blue"},{"name":"Size","value":"S"}],"off_ratio":37,"flashsale_info":[],"sales":21};
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 `
`;
}()}