Check Loose Pants Pocket Cargo Shorts
${function() {
const variantData = data.variant || {"id":"13178472-75b3-408d-8d46-95c58d88e894","product_id":"0ffcf044-6e6c-4b97-8b50-773b997bd8dd","title":"black-M","weight_unit":"g","inventory_quantity":0,"sku":"c2f37515-7d0d-471c-b94e-555705f6202f","barcode":"","position":1,"option1":"black","option2":"M","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/e92ca56011825d5036eb5de01ea20ea1.jpeg","path":"e92ca56011825d5036eb5de01ea20ea1.jpeg","width":1294,"height":1294,"alt":"Check Loose Pants Pocket Cargo Shorts Techwear Shop","aspect_ratio":1},"wholesale_price":[{"price":36.95,"min_quantity":1}],"weight":"0","compare_at_price":"44.95","price":"36.95","retail_price":"44.95","available":true,"url":"\/products\/check-loose-pants-pocket-cargo-shorts_4zgs?variant=13178472-75b3-408d-8d46-95c58d88e894","available_quantity":999999999,"options":[{"name":"Color","value":"black"},{"name":"US Size","value":"M"}],"off_ratio":18,"flashsale_info":[],"sales":1};
const saveType = "percentage";
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":"13178472-75b3-408d-8d46-95c58d88e894","product_id":"0ffcf044-6e6c-4b97-8b50-773b997bd8dd","title":"black-M","weight_unit":"g","inventory_quantity":0,"sku":"c2f37515-7d0d-471c-b94e-555705f6202f","barcode":"","position":1,"option1":"black","option2":"M","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/e92ca56011825d5036eb5de01ea20ea1.jpeg","path":"e92ca56011825d5036eb5de01ea20ea1.jpeg","width":1294,"height":1294,"alt":"Check Loose Pants Pocket Cargo Shorts Techwear Shop","aspect_ratio":1},"wholesale_price":[{"price":36.95,"min_quantity":1}],"weight":"0","compare_at_price":"44.95","price":"36.95","retail_price":"44.95","available":true,"url":"\/products\/check-loose-pants-pocket-cargo-shorts_4zgs?variant=13178472-75b3-408d-8d46-95c58d88e894","available_quantity":999999999,"options":[{"name":"Color","value":"black"},{"name":"US Size","value":"M"}],"off_ratio":18,"flashsale_info":[],"sales":1};
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 `
`;
}()}