Fashionable slim fit suit jacket
${function() {
const variantData = data.variant || {"id":"1f148a29-4014-402c-b523-3f89e1481b6a","product_id":"c3a90c8c-1df2-4bfd-a8d8-127f07716989","title":"blue-2XL","weight_unit":"kg","inventory_quantity":0,"sku":"66220802238-blue-2XL","barcode":"","position":17,"option1":"blue","option2":"2XL","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/65b2578c8be4b6beea653dd9da92a6bc.jpeg","path":"65b2578c8be4b6beea653dd9da92a6bc.jpeg","width":750,"height":1000,"alt":"","aspect_ratio":0.75},"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=1f148a29-4014-402c-b523-3f89e1481b6a","available_quantity":999999999,"options":[{"name":"color","value":"blue"},{"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":"1f148a29-4014-402c-b523-3f89e1481b6a","product_id":"c3a90c8c-1df2-4bfd-a8d8-127f07716989","title":"blue-2XL","weight_unit":"kg","inventory_quantity":0,"sku":"66220802238-blue-2XL","barcode":"","position":17,"option1":"blue","option2":"2XL","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/65b2578c8be4b6beea653dd9da92a6bc.jpeg","path":"65b2578c8be4b6beea653dd9da92a6bc.jpeg","width":750,"height":1000,"alt":"","aspect_ratio":0.75},"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=1f148a29-4014-402c-b523-3f89e1481b6a","available_quantity":999999999,"options":[{"name":"color","value":"blue"},{"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 `
`;
}()}