Women's casual pants elastic pants
${function() {
const variantData = data.variant || {"id":"a9cb67dd-42d6-4958-b2a1-ac57b0cfdfb4","product_id":"3e418a50-0ebf-4256-8cc4-601116612b6b","title":"gray-S","weight_unit":"kg","inventory_quantity":0,"sku":"66302164372-gray-S","barcode":"","position":9,"option1":"gray","option2":"S","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/d2363813ba98fa22c6e096529bb8562d.jpeg","path":"d2363813ba98fa22c6e096529bb8562d.jpeg","width":600,"height":799,"alt":"","aspect_ratio":0.7509386733416771},"wholesale_price":[{"price":25.97,"min_quantity":1}],"weight":"0.3","compare_at_price":"35","price":"25.97","retail_price":"35","available":true,"url":"\/products\/womens-casual-pants-elastic-pants?variant=a9cb67dd-42d6-4958-b2a1-ac57b0cfdfb4","available_quantity":999999999,"options":[{"name":"color","value":"gray"},{"name":"size","value":"S"}],"off_ratio":26,"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":"a9cb67dd-42d6-4958-b2a1-ac57b0cfdfb4","product_id":"3e418a50-0ebf-4256-8cc4-601116612b6b","title":"gray-S","weight_unit":"kg","inventory_quantity":0,"sku":"66302164372-gray-S","barcode":"","position":9,"option1":"gray","option2":"S","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/d2363813ba98fa22c6e096529bb8562d.jpeg","path":"d2363813ba98fa22c6e096529bb8562d.jpeg","width":600,"height":799,"alt":"","aspect_ratio":0.7509386733416771},"wholesale_price":[{"price":25.97,"min_quantity":1}],"weight":"0.3","compare_at_price":"35","price":"25.97","retail_price":"35","available":true,"url":"\/products\/womens-casual-pants-elastic-pants?variant=a9cb67dd-42d6-4958-b2a1-ac57b0cfdfb4","available_quantity":999999999,"options":[{"name":"color","value":"gray"},{"name":"size","value":"S"}],"off_ratio":26,"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 `
`;
}()}