Casual Sayless Print Double Layer Mesh Shorts
${function() {
const variantData = data.variant || {"id":"3b0ea4a2-4afb-4c0e-96b6-0941e34a6bde","product_id":"103c71cc-6528-4013-9b7b-b465cf58fdd7","title":"Black-M","weight_unit":"g","inventory_quantity":999,"sku":"XHX0VAvoc-Black-M","barcode":"","position":1,"option1":"Black","option2":"M","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/745b35c378e3179a6444c5d3c2c4b4e7.jpeg","path":"745b35c378e3179a6444c5d3c2c4b4e7.jpeg","width":890,"height":890,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":24.89,"min_quantity":1}],"weight":"250","compare_at_price":"39","price":"24.89","retail_price":"39","available":true,"url":"\/products\/casual-sayless-print-double-layer-mesh-shorts?variant=3b0ea4a2-4afb-4c0e-96b6-0941e34a6bde","available_quantity":999999999,"options":[{"name":"Color","value":"Black"},{"name":"Size","value":"M"}],"off_ratio":36,"flashsale_info":[],"sales":1};
const saveType = "percentage";
const productLabelDiscountOn = false;
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.
Sku : XHX0VAvoc-Black-M
Weight : 250g
${function(){
const variantData = data.variant || {"id":"3b0ea4a2-4afb-4c0e-96b6-0941e34a6bde","product_id":"103c71cc-6528-4013-9b7b-b465cf58fdd7","title":"Black-M","weight_unit":"g","inventory_quantity":999,"sku":"XHX0VAvoc-Black-M","barcode":"","position":1,"option1":"Black","option2":"M","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/745b35c378e3179a6444c5d3c2c4b4e7.jpeg","path":"745b35c378e3179a6444c5d3c2c4b4e7.jpeg","width":890,"height":890,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":24.89,"min_quantity":1}],"weight":"250","compare_at_price":"39","price":"24.89","retail_price":"39","available":true,"url":"\/products\/casual-sayless-print-double-layer-mesh-shorts?variant=3b0ea4a2-4afb-4c0e-96b6-0941e34a6bde","available_quantity":999999999,"options":[{"name":"Color","value":"Black"},{"name":"Size","value":"M"}],"off_ratio":36,"flashsale_info":[],"sales":1};
return `
Sku : ${variantData && variantData.sku}
Weight : ${variantData && variantData.weight}${variantData && variantData.weight_unit}
Barcode : ${variantData && variantData.barcode}
`
}()}
${function() {
const postageFreeAmount = 79;
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 `
`;
}()}