Casual Fashion Printed Track Shorts
${function() {
const variantData = data.variant || {"id":"81789c55-12a7-46ac-afa0-c048389ce69c","product_id":"1c25d2c2-964c-49b5-9d1c-45e65f336fe6","title":"Black-S","weight_unit":"g","inventory_quantity":999,"sku":"XHtPBDJcq-Black-S","barcode":"","position":1,"option1":"Black","option2":"S","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/b92a1e3254061159259f802b8f167d60.jpeg","path":"b92a1e3254061159259f802b8f167d60.jpeg","width":942,"height":942,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":18.89,"min_quantity":1}],"weight":"200","compare_at_price":"31","price":"18.89","retail_price":"31","available":true,"url":"\/products\/casual-fashion-printed-track-shorts?variant=81789c55-12a7-46ac-afa0-c048389ce69c","available_quantity":999999999,"options":[{"name":"Color","value":"Black"},{"name":"Size","value":"S"}],"off_ratio":39,"flashsale_info":[],"sales":0};
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 : XHtPBDJcq-Black-S
Weight : 200g
${function(){
const variantData = data.variant || {"id":"81789c55-12a7-46ac-afa0-c048389ce69c","product_id":"1c25d2c2-964c-49b5-9d1c-45e65f336fe6","title":"Black-S","weight_unit":"g","inventory_quantity":999,"sku":"XHtPBDJcq-Black-S","barcode":"","position":1,"option1":"Black","option2":"S","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/b92a1e3254061159259f802b8f167d60.jpeg","path":"b92a1e3254061159259f802b8f167d60.jpeg","width":942,"height":942,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":18.89,"min_quantity":1}],"weight":"200","compare_at_price":"31","price":"18.89","retail_price":"31","available":true,"url":"\/products\/casual-fashion-printed-track-shorts?variant=81789c55-12a7-46ac-afa0-c048389ce69c","available_quantity":999999999,"options":[{"name":"Color","value":"Black"},{"name":"Size","value":"S"}],"off_ratio":39,"flashsale_info":[],"sales":0};
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 `
`;
}()}