${function() {
const variantData = data.variant || {"id":"bb6461d0-bae2-43e5-80e2-3232a6513293","product_id":"a6ba963e-91ed-4dbd-af01-d25c67d0d4b9","title":"Black-M","weight_unit":"kg","inventory_quantity":999999999,"sku":"10215145-Black-M-A0015940","barcode":"","position":1,"option1":"Black","option2":"M","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/6c4892733b256666b8db989b5331e8a1.jpg","path":"6c4892733b256666b8db989b5331e8a1.jpg","width":800,"height":800,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":32.98,"min_quantity":1}],"weight":"0","compare_at_price":"44.98","price":"32.98","retail_price":"44.98","available":true,"url":"\/products\/f-ks-i-give-nun-print-casual-mens-sweatpants?variant=bb6461d0-bae2-43e5-80e2-3232a6513293","available_quantity":999999999,"options":[{"name":"Color","value":"Black"},{"name":"Size","value":"M"}],"off_ratio":27,"flashsale_info":[],"sales":2};
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":"bb6461d0-bae2-43e5-80e2-3232a6513293","product_id":"a6ba963e-91ed-4dbd-af01-d25c67d0d4b9","title":"Black-M","weight_unit":"kg","inventory_quantity":999999999,"sku":"10215145-Black-M-A0015940","barcode":"","position":1,"option1":"Black","option2":"M","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/6c4892733b256666b8db989b5331e8a1.jpg","path":"6c4892733b256666b8db989b5331e8a1.jpg","width":800,"height":800,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":32.98,"min_quantity":1}],"weight":"0","compare_at_price":"44.98","price":"32.98","retail_price":"44.98","available":true,"url":"\/products\/f-ks-i-give-nun-print-casual-mens-sweatpants?variant=bb6461d0-bae2-43e5-80e2-3232a6513293","available_quantity":999999999,"options":[{"name":"Color","value":"Black"},{"name":"Size","value":"M"}],"off_ratio":27,"flashsale_info":[],"sales":2};
return `
`
}()}