Plaid Set Jacket
${function() {
const variantData = data.variant || {"id":"b5a3d465-0b47-4126-98aa-6f42563e08cc","product_id":"f6f5b69f-e3f0-4bd0-bf9f-de133da3392e","title":"Houndstooth-2XL","weight_unit":"kg","inventory_quantity":242,"sku":"2110201168-Houndstooth-2XL","barcode":"","position":11,"option1":"Houndstooth","option2":"2XL","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/27eacd7286b89e4737ac127ccfcf1813.jpeg","path":"27eacd7286b89e4737ac127ccfcf1813.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=b5a3d465-0b47-4126-98aa-6f42563e08cc","available_quantity":999999999,"options":[{"name":"Color","value":"Houndstooth"},{"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":"b5a3d465-0b47-4126-98aa-6f42563e08cc","product_id":"f6f5b69f-e3f0-4bd0-bf9f-de133da3392e","title":"Houndstooth-2XL","weight_unit":"kg","inventory_quantity":242,"sku":"2110201168-Houndstooth-2XL","barcode":"","position":11,"option1":"Houndstooth","option2":"2XL","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/27eacd7286b89e4737ac127ccfcf1813.jpeg","path":"27eacd7286b89e4737ac127ccfcf1813.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=b5a3d465-0b47-4126-98aa-6f42563e08cc","available_quantity":999999999,"options":[{"name":"Color","value":"Houndstooth"},{"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 `
`;
}()}