Cotton linen casual pants home trousers
${function() {
const variantData = data.variant || {"id":"34db2e6b-6537-4e7c-a87a-dd08de6e873e","product_id":"e688e104-b902-44cd-bd47-302e81885ec0","title":"blue-S","weight_unit":"kg","inventory_quantity":0,"sku":"662302154359-blue-S","barcode":"","position":9,"option1":"blue","option2":"S","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/2109f5a84df538d38ed72cd6707391c4.jpeg","path":"2109f5a84df538d38ed72cd6707391c4.jpeg","width":1600,"height":1600,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":26.74,"min_quantity":1}],"weight":"0.3","compare_at_price":"39","price":"26.74","retail_price":"39","available":true,"url":"\/products\/cotton-linen-casual-pants-home-trousers?variant=34db2e6b-6537-4e7c-a87a-dd08de6e873e","available_quantity":999999999,"options":[{"name":"color","value":"blue"},{"name":"size","value":"S"}],"off_ratio":31,"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":"34db2e6b-6537-4e7c-a87a-dd08de6e873e","product_id":"e688e104-b902-44cd-bd47-302e81885ec0","title":"blue-S","weight_unit":"kg","inventory_quantity":0,"sku":"662302154359-blue-S","barcode":"","position":9,"option1":"blue","option2":"S","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/2109f5a84df538d38ed72cd6707391c4.jpeg","path":"2109f5a84df538d38ed72cd6707391c4.jpeg","width":1600,"height":1600,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":26.74,"min_quantity":1}],"weight":"0.3","compare_at_price":"39","price":"26.74","retail_price":"39","available":true,"url":"\/products\/cotton-linen-casual-pants-home-trousers?variant=34db2e6b-6537-4e7c-a87a-dd08de6e873e","available_quantity":999999999,"options":[{"name":"color","value":"blue"},{"name":"size","value":"S"}],"off_ratio":31,"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 `
`;
}()}