Simple hooded sweatshirt sports three piece set
${function() {
const variantData = data.variant || {"id":"801b353d-66eb-4e7c-a104-a074c2350d3b","product_id":"a6370fa2-8258-426b-9cfe-aa01ce073a29","title":"camel-S","weight_unit":"kg","inventory_quantity":0,"sku":"66221025739-camel-S","barcode":"","position":7,"option1":"camel","option2":"S","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/ba2c6d314040bc7df25b74031d75b051.jpeg","path":"ba2c6d314040bc7df25b74031d75b051.jpeg","width":800,"height":800,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":52.75,"min_quantity":1}],"weight":"0.48","compare_at_price":"65.94","price":"52.75","retail_price":"65.94","available":true,"url":"\/products\/simple-hooded-sweatshirt-sports-three-piece-set?variant=801b353d-66eb-4e7c-a104-a074c2350d3b","available_quantity":999999999,"options":[{"name":"color","value":"camel"},{"name":"size","value":"S"}],"off_ratio":20,"flashsale_info":[],"sales":0};
const saveType = "amount";
const productLabelDiscountOn = true;
return `
-
${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 variantData = data.variant || {"id":"801b353d-66eb-4e7c-a104-a074c2350d3b","product_id":"a6370fa2-8258-426b-9cfe-aa01ce073a29","title":"camel-S","weight_unit":"kg","inventory_quantity":0,"sku":"66221025739-camel-S","barcode":"","position":7,"option1":"camel","option2":"S","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/ba2c6d314040bc7df25b74031d75b051.jpeg","path":"ba2c6d314040bc7df25b74031d75b051.jpeg","width":800,"height":800,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":52.75,"min_quantity":1}],"weight":"0.48","compare_at_price":"65.94","price":"52.75","retail_price":"65.94","available":true,"url":"\/products\/simple-hooded-sweatshirt-sports-three-piece-set?variant=801b353d-66eb-4e7c-a104-a074c2350d3b","available_quantity":999999999,"options":[{"name":"color","value":"camel"},{"name":"size","value":"S"}],"off_ratio":20,"flashsale_info":[],"sales":0};
return `
`
}()}
${function() {
const postageFreeAmount = 69;
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 `
`;
}()}