Cotton linen draped semi-elastic lounge pants
${function() {
const variantData = data.variant || {"id":"02b96d78-942f-4c46-a6ed-2874d6b8d1cd","product_id":"17dc7ae8-dc8e-4564-8f09-4205df1e2e1c","title":"green-S","weight_unit":"kg","inventory_quantity":0,"sku":"662303241688-green-S","barcode":"","position":1,"option1":"green","option2":"S","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/6e4a09751e03c35e92220ee731982677.jpeg","path":"6e4a09751e03c35e92220ee731982677.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=02b96d78-942f-4c46-a6ed-2874d6b8d1cd","available_quantity":999999999,"options":[{"name":"color","value":"green"},{"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":"02b96d78-942f-4c46-a6ed-2874d6b8d1cd","product_id":"17dc7ae8-dc8e-4564-8f09-4205df1e2e1c","title":"green-S","weight_unit":"kg","inventory_quantity":0,"sku":"662303241688-green-S","barcode":"","position":1,"option1":"green","option2":"S","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/6e4a09751e03c35e92220ee731982677.jpeg","path":"6e4a09751e03c35e92220ee731982677.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=02b96d78-942f-4c46-a6ed-2874d6b8d1cd","available_quantity":999999999,"options":[{"name":"color","value":"green"},{"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 `
`;
}()}