New cotton and linen casual loose pencil pants
${function() {
const variantData = data.variant || {"id":"1b041bc9-cb1e-4078-bdf5-4fd60bcac271","product_id":"b7af06ef-3773-4351-9704-948f940a2deb","title":"gray-S","weight_unit":"kg","inventory_quantity":0,"sku":"66230313531-gray-S","barcode":"","position":9,"option1":"gray","option2":"S","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/160b1ca1ba681f99d63bbc21dc999183.jpeg","path":"160b1ca1ba681f99d63bbc21dc999183.jpeg","width":1276,"height":1920,"alt":"","aspect_ratio":0.6645833333333333},"wholesale_price":[{"price":25.89,"min_quantity":1}],"weight":"0.25","compare_at_price":"33","price":"25.89","retail_price":"33","available":true,"url":"\/products\/new-cotton-and-linen-casual-loose-pencil-pants?variant=1b041bc9-cb1e-4078-bdf5-4fd60bcac271","available_quantity":999999999,"options":[{"name":"color","value":"gray"},{"name":"size","value":"S"}],"off_ratio":22,"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":"1b041bc9-cb1e-4078-bdf5-4fd60bcac271","product_id":"b7af06ef-3773-4351-9704-948f940a2deb","title":"gray-S","weight_unit":"kg","inventory_quantity":0,"sku":"66230313531-gray-S","barcode":"","position":9,"option1":"gray","option2":"S","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/160b1ca1ba681f99d63bbc21dc999183.jpeg","path":"160b1ca1ba681f99d63bbc21dc999183.jpeg","width":1276,"height":1920,"alt":"","aspect_ratio":0.6645833333333333},"wholesale_price":[{"price":25.89,"min_quantity":1}],"weight":"0.25","compare_at_price":"33","price":"25.89","retail_price":"33","available":true,"url":"\/products\/new-cotton-and-linen-casual-loose-pencil-pants?variant=1b041bc9-cb1e-4078-bdf5-4fd60bcac271","available_quantity":999999999,"options":[{"name":"color","value":"gray"},{"name":"size","value":"S"}],"off_ratio":22,"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 `
`;
}()}