Fashionable slim fit suit jacket
${function() {
const variantData = data.variant || {"id":"196cae00-33dd-40ce-840f-2b3b7f71f9d2","product_id":"c3a90c8c-1df2-4bfd-a8d8-127f07716989","title":"black-2XL","weight_unit":"kg","inventory_quantity":0,"sku":"66220802238-black-2XL","barcode":"","position":9,"option1":"black","option2":"2XL","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/c36955b341911f24fd13920145d0526b.jpeg","path":"c36955b341911f24fd13920145d0526b.jpeg","width":750,"height":999,"alt":"","aspect_ratio":0.7507507507507507},"wholesale_price":[{"price":32.45,"min_quantity":1}],"weight":"0","compare_at_price":"40.56","price":"32.45","retail_price":"40.56","available":true,"url":"\/products\/fashionable-slim-fit-suit-jacket?variant=196cae00-33dd-40ce-840f-2b3b7f71f9d2","available_quantity":999999999,"options":[{"name":"color","value":"black"},{"name":"size","value":"2XL"}],"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":"196cae00-33dd-40ce-840f-2b3b7f71f9d2","product_id":"c3a90c8c-1df2-4bfd-a8d8-127f07716989","title":"black-2XL","weight_unit":"kg","inventory_quantity":0,"sku":"66220802238-black-2XL","barcode":"","position":9,"option1":"black","option2":"2XL","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/c36955b341911f24fd13920145d0526b.jpeg","path":"c36955b341911f24fd13920145d0526b.jpeg","width":750,"height":999,"alt":"","aspect_ratio":0.7507507507507507},"wholesale_price":[{"price":32.45,"min_quantity":1}],"weight":"0","compare_at_price":"40.56","price":"32.45","retail_price":"40.56","available":true,"url":"\/products\/fashionable-slim-fit-suit-jacket?variant=196cae00-33dd-40ce-840f-2b3b7f71f9d2","available_quantity":999999999,"options":[{"name":"color","value":"black"},{"name":"size","value":"2XL"}],"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 `
`;
}()}