Vest & Pants Cotton Leisure Suit
${function() {
const variantData = data.variant || {"id":"e80e72ae-14be-4e73-9410-2abe12718821","product_id":"266614b9-e99c-476a-b810-82133b486a03","title":"Olive-S","weight_unit":"kg","inventory_quantity":0,"sku":"BL2308091919-Olive-S","barcode":"","position":6,"option1":"Olive","option2":"S","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/e83b4447e8cf1a9bf170272926067f66.jpeg","path":"e83b4447e8cf1a9bf170272926067f66.jpeg","width":1200,"height":1600,"alt":"","aspect_ratio":0.75},"wholesale_price":[{"price":56.91,"min_quantity":1}],"weight":"0.5","compare_at_price":"88","price":"56.91","retail_price":"88","available":true,"url":"\/products\/vest-pants-cotton-leisure-suit?variant=e80e72ae-14be-4e73-9410-2abe12718821","available_quantity":999999999,"options":[{"name":"Color","value":"Olive"},{"name":"Size","value":"S"}],"off_ratio":35,"flashsale_info":[],"sales":1};
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":"e80e72ae-14be-4e73-9410-2abe12718821","product_id":"266614b9-e99c-476a-b810-82133b486a03","title":"Olive-S","weight_unit":"kg","inventory_quantity":0,"sku":"BL2308091919-Olive-S","barcode":"","position":6,"option1":"Olive","option2":"S","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/e83b4447e8cf1a9bf170272926067f66.jpeg","path":"e83b4447e8cf1a9bf170272926067f66.jpeg","width":1200,"height":1600,"alt":"","aspect_ratio":0.75},"wholesale_price":[{"price":56.91,"min_quantity":1}],"weight":"0.5","compare_at_price":"88","price":"56.91","retail_price":"88","available":true,"url":"\/products\/vest-pants-cotton-leisure-suit?variant=e80e72ae-14be-4e73-9410-2abe12718821","available_quantity":999999999,"options":[{"name":"Color","value":"Olive"},{"name":"Size","value":"S"}],"off_ratio":35,"flashsale_info":[],"sales":1};
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 `
`;
}()}