Cotton Linen Loose Casual Cropped Pants
${function() {
const variantData = data.variant || {"id":"b5e5748c-34c1-49c9-92e0-da029dcfa029","product_id":"ab7ae181-98c9-4fcf-af54-cc43985e337a","title":"red-S","weight_unit":"kg","inventory_quantity":0,"sku":"66230428444-red-S","barcode":"","position":13,"option1":"red","option2":"S","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/fe445e73e4733b955654e26b3a272554.jpeg","path":"fe445e73e4733b955654e26b3a272554.jpeg","width":990,"height":990,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":33.57,"min_quantity":1}],"weight":"0.3","compare_at_price":"42","price":"33.57","retail_price":"42","available":true,"url":"\/products\/cotton-linen-loose-casual-cropped-pants?variant=b5e5748c-34c1-49c9-92e0-da029dcfa029","available_quantity":999999999,"options":[{"name":"color","value":"red"},{"name":"size","value":"S"}],"off_ratio":20,"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":"b5e5748c-34c1-49c9-92e0-da029dcfa029","product_id":"ab7ae181-98c9-4fcf-af54-cc43985e337a","title":"red-S","weight_unit":"kg","inventory_quantity":0,"sku":"66230428444-red-S","barcode":"","position":13,"option1":"red","option2":"S","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/fe445e73e4733b955654e26b3a272554.jpeg","path":"fe445e73e4733b955654e26b3a272554.jpeg","width":990,"height":990,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":33.57,"min_quantity":1}],"weight":"0.3","compare_at_price":"42","price":"33.57","retail_price":"42","available":true,"url":"\/products\/cotton-linen-loose-casual-cropped-pants?variant=b5e5748c-34c1-49c9-92e0-da029dcfa029","available_quantity":999999999,"options":[{"name":"color","value":"red"},{"name":"size","value":"S"}],"off_ratio":20,"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 `
`;
}()}