High waist cotton and linen casual pants
${function() {
const variantData = data.variant || {"id":"bbb5f0ff-3d24-42da-a8b7-5976ebd16f8a","product_id":"804d2113-c945-42fc-a39e-978597a2ea29","title":"gray-S","weight_unit":"kg","inventory_quantity":0,"sku":"662302164376-gray-S","barcode":"","position":1,"option1":"gray","option2":"S","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/34e7d96e8c6024cd9004585f165235c6.jpeg","path":"34e7d96e8c6024cd9004585f165235c6.jpeg","width":800,"height":800,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":25.89,"min_quantity":1}],"weight":"0.2","compare_at_price":"37","price":"25.89","retail_price":"37","available":true,"url":"\/products\/high-waist-cotton-and-linen-casual-pants?variant=bbb5f0ff-3d24-42da-a8b7-5976ebd16f8a","available_quantity":999999999,"options":[{"name":"color","value":"gray"},{"name":"size","value":"S"}],"off_ratio":30,"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":"bbb5f0ff-3d24-42da-a8b7-5976ebd16f8a","product_id":"804d2113-c945-42fc-a39e-978597a2ea29","title":"gray-S","weight_unit":"kg","inventory_quantity":0,"sku":"662302164376-gray-S","barcode":"","position":1,"option1":"gray","option2":"S","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/34e7d96e8c6024cd9004585f165235c6.jpeg","path":"34e7d96e8c6024cd9004585f165235c6.jpeg","width":800,"height":800,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":25.89,"min_quantity":1}],"weight":"0.2","compare_at_price":"37","price":"25.89","retail_price":"37","available":true,"url":"\/products\/high-waist-cotton-and-linen-casual-pants?variant=bbb5f0ff-3d24-42da-a8b7-5976ebd16f8a","available_quantity":999999999,"options":[{"name":"color","value":"gray"},{"name":"size","value":"S"}],"off_ratio":30,"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 `
`;
}()}