Women's Retro trousers
${function() {
const variantData = data.variant || {"id":"b17c3836-e1a2-4644-b5b2-9a2c27b65be8","product_id":"385a173a-ba49-4590-a35a-33a38246dbda","title":"Khaki-S","weight_unit":"kg","inventory_quantity":999,"sku":"Lin21011817-khaki-s","barcode":"","position":1,"option1":"Khaki","option2":"S","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/55d8449abf7a70c4df8fa8423d15a1e0.jpeg","path":"55d8449abf7a70c4df8fa8423d15a1e0.jpeg","width":600,"height":800,"alt":"","aspect_ratio":0.75},"wholesale_price":[{"price":25.69,"min_quantity":1}],"weight":"0.24","compare_at_price":"31.1","price":"25.69","retail_price":"31.1","available":true,"url":"\/products\/womens-retro-trousers?variant=b17c3836-e1a2-4644-b5b2-9a2c27b65be8","available_quantity":999999999,"options":[{"name":"Color","value":"Khaki"},{"name":"Size","value":"S"}],"off_ratio":17,"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":"b17c3836-e1a2-4644-b5b2-9a2c27b65be8","product_id":"385a173a-ba49-4590-a35a-33a38246dbda","title":"Khaki-S","weight_unit":"kg","inventory_quantity":999,"sku":"Lin21011817-khaki-s","barcode":"","position":1,"option1":"Khaki","option2":"S","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/55d8449abf7a70c4df8fa8423d15a1e0.jpeg","path":"55d8449abf7a70c4df8fa8423d15a1e0.jpeg","width":600,"height":800,"alt":"","aspect_ratio":0.75},"wholesale_price":[{"price":25.69,"min_quantity":1}],"weight":"0.24","compare_at_price":"31.1","price":"25.69","retail_price":"31.1","available":true,"url":"\/products\/womens-retro-trousers?variant=b17c3836-e1a2-4644-b5b2-9a2c27b65be8","available_quantity":999999999,"options":[{"name":"Color","value":"Khaki"},{"name":"Size","value":"S"}],"off_ratio":17,"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 `
`;
}()}