Casual loose lace-up shorts
${function() {
const variantData = data.variant || {"id":"735461ab-61cc-4128-ab8f-681cf513dd47","product_id":"eb5d9305-b432-4989-b38d-b402e8676a6d","title":"gray-3XL","weight_unit":"kg","inventory_quantity":0,"sku":"Lin662204251521-gray-3XL","barcode":"","position":9,"option1":"gray","option2":"3XL","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/3defcdcbd349cb81cbda947dcfe28b48.jpeg","path":"3defcdcbd349cb81cbda947dcfe28b48.jpeg","width":750,"height":750,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":22.84,"min_quantity":1}],"weight":"0","compare_at_price":"27.19","price":"22.84","retail_price":"27.19","available":true,"url":"\/products\/casual-loose-lace-up-shorts?variant=735461ab-61cc-4128-ab8f-681cf513dd47","available_quantity":999999999,"options":[{"name":"color","value":"gray"},{"name":"size","value":"3XL"}],"off_ratio":16,"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":"735461ab-61cc-4128-ab8f-681cf513dd47","product_id":"eb5d9305-b432-4989-b38d-b402e8676a6d","title":"gray-3XL","weight_unit":"kg","inventory_quantity":0,"sku":"Lin662204251521-gray-3XL","barcode":"","position":9,"option1":"gray","option2":"3XL","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/3defcdcbd349cb81cbda947dcfe28b48.jpeg","path":"3defcdcbd349cb81cbda947dcfe28b48.jpeg","width":750,"height":750,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":22.84,"min_quantity":1}],"weight":"0","compare_at_price":"27.19","price":"22.84","retail_price":"27.19","available":true,"url":"\/products\/casual-loose-lace-up-shorts?variant=735461ab-61cc-4128-ab8f-681cf513dd47","available_quantity":999999999,"options":[{"name":"color","value":"gray"},{"name":"size","value":"3XL"}],"off_ratio":16,"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 `
`;
}()}