${function() {
const variantData = data.variant || {"id":"f9152a22-7198-4da5-b84e-889e1c652a6a","product_id":"8764a559-0c02-4890-a3be-ecdc976fbc4e","title":"Black-S","weight_unit":"kg","inventory_quantity":0,"sku":"-Black-S-A001605","barcode":"","position":1,"option1":"Black","option2":"S","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/bc3016369161c9be112088c46eea9e1f.jpeg","path":"bc3016369161c9be112088c46eea9e1f.jpeg","width":800,"height":800,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":16.98,"min_quantity":1}],"weight":"0","compare_at_price":"27","price":"16.98","retail_price":"27","available":true,"url":"\/products\/unholy-nuns-printed-mens-t-shirt?variant=f9152a22-7198-4da5-b84e-889e1c652a6a","available_quantity":999999999,"options":[{"name":"Color","value":"Black"},{"name":"Size","value":"S"}],"off_ratio":37,"flashsale_info":[],"sales":22};
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":"f9152a22-7198-4da5-b84e-889e1c652a6a","product_id":"8764a559-0c02-4890-a3be-ecdc976fbc4e","title":"Black-S","weight_unit":"kg","inventory_quantity":0,"sku":"-Black-S-A001605","barcode":"","position":1,"option1":"Black","option2":"S","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/bc3016369161c9be112088c46eea9e1f.jpeg","path":"bc3016369161c9be112088c46eea9e1f.jpeg","width":800,"height":800,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":16.98,"min_quantity":1}],"weight":"0","compare_at_price":"27","price":"16.98","retail_price":"27","available":true,"url":"\/products\/unholy-nuns-printed-mens-t-shirt?variant=f9152a22-7198-4da5-b84e-889e1c652a6a","available_quantity":999999999,"options":[{"name":"Color","value":"Black"},{"name":"Size","value":"S"}],"off_ratio":37,"flashsale_info":[],"sales":22};
return `
`
}()}