Stylish Casual Plaid Blazer
${function() {
const variantData = data.variant || {"id":"29e5dcda-0da8-4006-97ab-8c3552c2c3ef","product_id":"0190b02c-076c-4932-8d12-c39efbc546d1","title":"red-2XL","weight_unit":"kg","inventory_quantity":0,"sku":"662110201054-red-2XL","barcode":"","position":1,"option1":"red","option2":"2XL","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/50be06fefcbff56053f4a227ff286cb8.png","path":"50be06fefcbff56053f4a227ff286cb8.png","width":810,"height":810,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":30.06,"min_quantity":1}],"weight":"0","compare_at_price":"35.36","price":"30.06","retail_price":"35.36","available":true,"url":"\/products\/stylish-casual-plaid-blazer?variant=29e5dcda-0da8-4006-97ab-8c3552c2c3ef","available_quantity":999999999,"options":[{"name":"color","value":"red"},{"name":"size","value":"2XL"}],"off_ratio":15,"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":"29e5dcda-0da8-4006-97ab-8c3552c2c3ef","product_id":"0190b02c-076c-4932-8d12-c39efbc546d1","title":"red-2XL","weight_unit":"kg","inventory_quantity":0,"sku":"662110201054-red-2XL","barcode":"","position":1,"option1":"red","option2":"2XL","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/50be06fefcbff56053f4a227ff286cb8.png","path":"50be06fefcbff56053f4a227ff286cb8.png","width":810,"height":810,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":30.06,"min_quantity":1}],"weight":"0","compare_at_price":"35.36","price":"30.06","retail_price":"35.36","available":true,"url":"\/products\/stylish-casual-plaid-blazer?variant=29e5dcda-0da8-4006-97ab-8c3552c2c3ef","available_quantity":999999999,"options":[{"name":"color","value":"red"},{"name":"size","value":"2XL"}],"off_ratio":15,"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 `
`;
}()}