Vest & Pants Cotton Leisure Suit
${function() {
const variantData = data.variant || {"id":"8632e0f9-47f1-47ae-b250-c89f56acf301","product_id":"42420e40-4190-454f-87ab-5fd6a14ff1c2","title":"Black-S","weight_unit":"kg","inventory_quantity":0,"sku":"BL2308091919-Black-S","barcode":"","position":11,"option1":"Black","option2":"S","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/d63fd669eef869ede65609458f4138dc.jpeg","path":"d63fd669eef869ede65609458f4138dc.jpeg","width":1080,"height":1440,"alt":"","aspect_ratio":0.75},"wholesale_price":[{"price":53.69,"min_quantity":1}],"weight":"0.5","compare_at_price":"89.6","price":"53.69","retail_price":"89.6","available":true,"url":"\/products\/vest-pants-cotton-leisure-suit-uo1a?variant=8632e0f9-47f1-47ae-b250-c89f56acf301","available_quantity":999999999,"options":[{"name":"Color","value":"Black"},{"name":"Size","value":"S"}],"off_ratio":40,"flashsale_info":[],"sales":19};
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":"8632e0f9-47f1-47ae-b250-c89f56acf301","product_id":"42420e40-4190-454f-87ab-5fd6a14ff1c2","title":"Black-S","weight_unit":"kg","inventory_quantity":0,"sku":"BL2308091919-Black-S","barcode":"","position":11,"option1":"Black","option2":"S","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/d63fd669eef869ede65609458f4138dc.jpeg","path":"d63fd669eef869ede65609458f4138dc.jpeg","width":1080,"height":1440,"alt":"","aspect_ratio":0.75},"wholesale_price":[{"price":53.69,"min_quantity":1}],"weight":"0.5","compare_at_price":"89.6","price":"53.69","retail_price":"89.6","available":true,"url":"\/products\/vest-pants-cotton-leisure-suit-uo1a?variant=8632e0f9-47f1-47ae-b250-c89f56acf301","available_quantity":999999999,"options":[{"name":"Color","value":"Black"},{"name":"Size","value":"S"}],"off_ratio":40,"flashsale_info":[],"sales":19};
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 `
`;
}()}