Casual loose lace-up shorts
${function() {
const variantData = data.variant || {"id":"b06f7087-883d-4108-b95f-a76619011204","product_id":"eb5d9305-b432-4989-b38d-b402e8676a6d","title":"green-3XL","weight_unit":"kg","inventory_quantity":0,"sku":"Lin662204251521-green-3XL","barcode":"","position":17,"option1":"green","option2":"3XL","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/711559f73900854bca44e1e0222aecee.jpeg","path":"711559f73900854bca44e1e0222aecee.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=b06f7087-883d-4108-b95f-a76619011204","available_quantity":999999999,"options":[{"name":"color","value":"green"},{"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":"b06f7087-883d-4108-b95f-a76619011204","product_id":"eb5d9305-b432-4989-b38d-b402e8676a6d","title":"green-3XL","weight_unit":"kg","inventory_quantity":0,"sku":"Lin662204251521-green-3XL","barcode":"","position":17,"option1":"green","option2":"3XL","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/711559f73900854bca44e1e0222aecee.jpeg","path":"711559f73900854bca44e1e0222aecee.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=b06f7087-883d-4108-b95f-a76619011204","available_quantity":999999999,"options":[{"name":"color","value":"green"},{"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 `
`;
}()}