Mesh breathable running sports five-point shorts
${function() {
const variantData = data.variant || {"id":"a901360c-8e28-46eb-a241-3cdc124e7b9c","product_id":"b52d0916-1ba5-4d11-809f-5d36ac09e07d","title":"Black-M","weight_unit":"g","inventory_quantity":588,"sku":"100308670001","barcode":"","position":1,"option1":"Black","option2":"M","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/98de997173a795d6bf326cc9228116cf.png","path":"98de997173a795d6bf326cc9228116cf.png","width":800,"height":800,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":29,"min_quantity":1}],"weight":"208","compare_at_price":"0","price":"29","retail_price":"0","available":true,"url":"\/products\/mesh-breathable-running-sports-five-point-shorts?variant=a901360c-8e28-46eb-a241-3cdc124e7b9c","available_quantity":999999999,"options":[{"name":"Color","value":"Black"},{"name":"Size","value":"M"}],"off_ratio":0,"flashsale_info":[],"sales":28};
const saveType = "percentage";
const productLabelDiscountOn = false;
return `
-
${saveType == 'percentage'
? `-${variantData.off_ratio}%`
: `-`
}
`;
}()}
${function() {
const postageFreeAmount = 70;
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 `
`;
}()}
${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.