Wide Cargo Shorts
${function() {
const variantData = data.variant || {"id":"5edbe089-1594-45c5-98fd-676d9dd08703","product_id":"3938aab4-86a8-491f-811d-9dfdedae0004","title":"black-M","weight_unit":"g","inventory_quantity":999,"sku":"34e48ec1-ef3e-4f89-b4f7-307b5120d879","barcode":"","position":1,"option1":"black","option2":"M","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/357d3ef292694c1a478363bcafa5ed8e.jpg","path":"357d3ef292694c1a478363bcafa5ed8e.jpg","width":600,"height":600,"alt":"Wide Cargo Shorts Techwear Shop","aspect_ratio":1},"wholesale_price":[{"price":39.95,"min_quantity":1}],"weight":"0","compare_at_price":"48.95","price":"39.95","retail_price":"48.95","available":true,"url":"\/products\/button-knit-wide-loose-five-point-pants-pocket-cargo-shorts?variant=5edbe089-1594-45c5-98fd-676d9dd08703","available_quantity":999999999,"options":[{"name":"Color","value":"black"},{"name":"Size","value":"M"}],"off_ratio":18,"flashsale_info":[],"sales":7};
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":"5edbe089-1594-45c5-98fd-676d9dd08703","product_id":"3938aab4-86a8-491f-811d-9dfdedae0004","title":"black-M","weight_unit":"g","inventory_quantity":999,"sku":"34e48ec1-ef3e-4f89-b4f7-307b5120d879","barcode":"","position":1,"option1":"black","option2":"M","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/357d3ef292694c1a478363bcafa5ed8e.jpg","path":"357d3ef292694c1a478363bcafa5ed8e.jpg","width":600,"height":600,"alt":"Wide Cargo Shorts Techwear Shop","aspect_ratio":1},"wholesale_price":[{"price":39.95,"min_quantity":1}],"weight":"0","compare_at_price":"48.95","price":"39.95","retail_price":"48.95","available":true,"url":"\/products\/button-knit-wide-loose-five-point-pants-pocket-cargo-shorts?variant=5edbe089-1594-45c5-98fd-676d9dd08703","available_quantity":999999999,"options":[{"name":"Color","value":"black"},{"name":"Size","value":"M"}],"off_ratio":18,"flashsale_info":[],"sales":7};
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 `
`;
}()}