${function() {
const variantData = data.variant || {"id":"bc1f9fd6-19fe-459b-9710-78f00ef87d4a","product_id":"8f3ded93-4d1e-4443-9dd7-f2c46c0cb7f9","title":"Black-S","weight_unit":"kg","inventory_quantity":999999995,"sku":"10210954-S-Black-A0015898","barcode":"","position":1,"option1":"Black","option2":"S","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/2b010328b96cdb1d9a6388e6177ab322.jpg","path":"2b010328b96cdb1d9a6388e6177ab322.jpg","width":1080,"height":1079,"alt":"","aspect_ratio":1.0009267840593141},"wholesale_price":[{"price":16.95,"min_quantity":1}],"weight":"0","compare_at_price":"27.98","price":"16.95","retail_price":"27.98","available":true,"url":"\/products\/coochie-muncher-printed-mens-t-shirt-26vg?variant=bc1f9fd6-19fe-459b-9710-78f00ef87d4a","available_quantity":999999999,"options":[{"name":"Color","value":"Black"},{"name":"Size","value":"S"}],"off_ratio":39,"flashsale_info":[],"sales":67};
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":"bc1f9fd6-19fe-459b-9710-78f00ef87d4a","product_id":"8f3ded93-4d1e-4443-9dd7-f2c46c0cb7f9","title":"Black-S","weight_unit":"kg","inventory_quantity":999999995,"sku":"10210954-S-Black-A0015898","barcode":"","position":1,"option1":"Black","option2":"S","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/2b010328b96cdb1d9a6388e6177ab322.jpg","path":"2b010328b96cdb1d9a6388e6177ab322.jpg","width":1080,"height":1079,"alt":"","aspect_ratio":1.0009267840593141},"wholesale_price":[{"price":16.95,"min_quantity":1}],"weight":"0","compare_at_price":"27.98","price":"16.95","retail_price":"27.98","available":true,"url":"\/products\/coochie-muncher-printed-mens-t-shirt-26vg?variant=bc1f9fd6-19fe-459b-9710-78f00ef87d4a","available_quantity":999999999,"options":[{"name":"Color","value":"Black"},{"name":"Size","value":"S"}],"off_ratio":39,"flashsale_info":[],"sales":67};
return `
`
}()}