${function() {
const variantData = data.variant || {"id":"f471e1ea-be11-4ca3-9f87-1374015abecd","product_id":"b9298ffe-926d-47c8-b4d0-4d7ff64b7c5e","title":"Apricot-S","weight_unit":"g","inventory_quantity":997,"sku":"099-240516-A06-MT007158RU-Apricot-S","barcode":"","position":17,"option1":"Apricot","option2":"S","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/367c7a082ff74afb44cc216fadbeb707.jpeg","path":"367c7a082ff74afb44cc216fadbeb707.jpeg","width":900,"height":1200,"alt":"","aspect_ratio":0.75},"wholesale_price":[{"price":21.99,"min_quantity":1}],"weight":"200","compare_at_price":"0","price":"21.99","retail_price":"0","available":true,"url":"\/products\/lgbt-mental-health-the-world-is-better-with-you-in-it-suicide-awareness-casual-print-t-shirt?variant=f471e1ea-be11-4ca3-9f87-1374015abecd","available_quantity":999999999,"options":[{"name":"Color","value":"Apricot"},{"name":"Size","value":"S"}],"off_ratio":0,"flashsale_info":[],"sales":9};
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 `
`;
}()}