Cotton linen draped semi-elastic lounge pants
${function() {
const variantData = data.variant || {"id":"fc17f798-71df-4b7a-8986-9e49448dbb88","product_id":"17dc7ae8-dc8e-4564-8f09-4205df1e2e1c","title":"wine red-S","weight_unit":"kg","inventory_quantity":0,"sku":"662303241688-wine red-S","barcode":"","position":13,"option1":"wine red","option2":"S","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/f4110c044058a5e6cf324ec0442f2cc0.jpeg","path":"f4110c044058a5e6cf324ec0442f2cc0.jpeg","width":800,"height":800,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":27.89,"min_quantity":1}],"weight":"0.3","compare_at_price":"38","price":"27.89","retail_price":"38","available":true,"url":"\/products\/cotton-linen-draped-semi-elastic-lounge-pants?variant=fc17f798-71df-4b7a-8986-9e49448dbb88","available_quantity":999999999,"options":[{"name":"color","value":"wine red"},{"name":"Size","value":"S"}],"off_ratio":27,"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":"fc17f798-71df-4b7a-8986-9e49448dbb88","product_id":"17dc7ae8-dc8e-4564-8f09-4205df1e2e1c","title":"wine red-S","weight_unit":"kg","inventory_quantity":0,"sku":"662303241688-wine red-S","barcode":"","position":13,"option1":"wine red","option2":"S","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/f4110c044058a5e6cf324ec0442f2cc0.jpeg","path":"f4110c044058a5e6cf324ec0442f2cc0.jpeg","width":800,"height":800,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":27.89,"min_quantity":1}],"weight":"0.3","compare_at_price":"38","price":"27.89","retail_price":"38","available":true,"url":"\/products\/cotton-linen-draped-semi-elastic-lounge-pants?variant=fc17f798-71df-4b7a-8986-9e49448dbb88","available_quantity":999999999,"options":[{"name":"color","value":"wine red"},{"name":"Size","value":"S"}],"off_ratio":27,"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 `
`;
}()}