${function() {
const variantData = data.variant || {"id":"3bcc29e9-1eee-4aa1-b0a9-a758ae74b0d3","product_id":"e0adc82e-b499-4ee0-b176-ab35c2142284","title":"White-S","weight_unit":"kg","inventory_quantity":99999994,"sku":"10209363-White-S-A0014873","barcode":"","position":9,"option1":"White","option2":"S","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/0d4600cf023c9544b5cf2b0faf6dd6c9.jpeg","path":"0d4600cf023c9544b5cf2b0faf6dd6c9.jpeg","width":2000,"height":2000,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":15.98,"min_quantity":1}],"weight":"0","compare_at_price":"27.98","price":"15.98","retail_price":"27.98","available":true,"url":"\/products\/drown-out-the-noise-printed-mens-t-shirt?variant=3bcc29e9-1eee-4aa1-b0a9-a758ae74b0d3","available_quantity":999999999,"options":[{"name":"Color","value":"White"},{"name":"Size","value":"S"}],"off_ratio":43,"flashsale_info":[],"sales":203};
const saveType = "percentage";
const saveText = "Save {{saved_amount}}";
const productLabelDiscountOn = true;
return `
-
${saveText.replace('\{\{saved_amount\}\}',
saveType == 'percentage'
? variantData.off_ratio + '%'
: ``
)}
`;
}()}
${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 `
`;
}()}
${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}
`
}()}
people are viewing this right now
Product was out of stock.
Product is unavailable.
${function(){
const variantData = data.variant || {"id":"3bcc29e9-1eee-4aa1-b0a9-a758ae74b0d3","product_id":"e0adc82e-b499-4ee0-b176-ab35c2142284","title":"White-S","weight_unit":"kg","inventory_quantity":99999994,"sku":"10209363-White-S-A0014873","barcode":"","position":9,"option1":"White","option2":"S","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/0d4600cf023c9544b5cf2b0faf6dd6c9.jpeg","path":"0d4600cf023c9544b5cf2b0faf6dd6c9.jpeg","width":2000,"height":2000,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":15.98,"min_quantity":1}],"weight":"0","compare_at_price":"27.98","price":"15.98","retail_price":"27.98","available":true,"url":"\/products\/drown-out-the-noise-printed-mens-t-shirt?variant=3bcc29e9-1eee-4aa1-b0a9-a758ae74b0d3","available_quantity":999999999,"options":[{"name":"Color","value":"White"},{"name":"Size","value":"S"}],"off_ratio":43,"flashsale_info":[],"sales":203};
return `
`
}()}