Plaid Set Jacket
${function() {
const variantData = data.variant || {"id":"f5e3bb45-ee40-4354-a8b2-e904271a068d","product_id":"f6f5b69f-e3f0-4bd0-bf9f-de133da3392e","title":"Blue-2XL","weight_unit":"kg","inventory_quantity":331,"sku":"2110201168-Blue-2XL","barcode":"","position":6,"option1":"Blue","option2":"2XL","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/9e43f5a5a2383940d5f9febda3b57616.jpeg","path":"9e43f5a5a2383940d5f9febda3b57616.jpeg","width":640,"height":853,"alt":"","aspect_ratio":0.7502930832356389},"wholesale_price":[{"price":34.55,"min_quantity":1}],"weight":"0.5","compare_at_price":"42.13","price":"34.55","retail_price":"42.13","available":true,"url":"\/products\/plaid-suit-jacket?variant=f5e3bb45-ee40-4354-a8b2-e904271a068d","available_quantity":999999999,"options":[{"name":"Color","value":"Blue"},{"name":"Size","value":"2XL"}],"off_ratio":18,"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":"f5e3bb45-ee40-4354-a8b2-e904271a068d","product_id":"f6f5b69f-e3f0-4bd0-bf9f-de133da3392e","title":"Blue-2XL","weight_unit":"kg","inventory_quantity":331,"sku":"2110201168-Blue-2XL","barcode":"","position":6,"option1":"Blue","option2":"2XL","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/9e43f5a5a2383940d5f9febda3b57616.jpeg","path":"9e43f5a5a2383940d5f9febda3b57616.jpeg","width":640,"height":853,"alt":"","aspect_ratio":0.7502930832356389},"wholesale_price":[{"price":34.55,"min_quantity":1}],"weight":"0.5","compare_at_price":"42.13","price":"34.55","retail_price":"42.13","available":true,"url":"\/products\/plaid-suit-jacket?variant=f5e3bb45-ee40-4354-a8b2-e904271a068d","available_quantity":999999999,"options":[{"name":"Color","value":"Blue"},{"name":"Size","value":"2XL"}],"off_ratio":18,"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 `
`;
}()}