${function() {
const variantData = data.variant || {"id":"a9c39423-6dc0-4253-a3d4-06022d35cac0","product_id":"2e768c38-1a0e-48a9-a2fc-7d5bac6b91e5","title":"Purple-S","weight_unit":"g","inventory_quantity":999,"sku":"XH7vRU2Rx-Purple-S","barcode":"","position":1,"option1":"Purple","option2":"S","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/d502b922a225f0dfcff7094829102f3d.jpeg","path":"d502b922a225f0dfcff7094829102f3d.jpeg","width":1576,"height":1576,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":20.89,"min_quantity":1}],"weight":"200","compare_at_price":"28","price":"20.89","retail_price":"28","available":true,"url":"\/products\/trendy-brand-hip-hop-basketball-zipper-pocket-shorts?variant=a9c39423-6dc0-4253-a3d4-06022d35cac0","available_quantity":999999999,"options":[{"name":"Color","value":"Purple"},{"name":"Size","value":"S"}],"off_ratio":25,"flashsale_info":[],"sales":1};
const saveType = "percentage";
const saveText = "Save {{saved_amount}}";
const productLabelDiscountOn = true;
return `
-
${saveText.replace('\{\{saved_amount\}\}',
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 : XH7vRU2Rx-Purple-S
Weight : 200g
${function(){
const variantData = data.variant || {"id":"a9c39423-6dc0-4253-a3d4-06022d35cac0","product_id":"2e768c38-1a0e-48a9-a2fc-7d5bac6b91e5","title":"Purple-S","weight_unit":"g","inventory_quantity":999,"sku":"XH7vRU2Rx-Purple-S","barcode":"","position":1,"option1":"Purple","option2":"S","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/d502b922a225f0dfcff7094829102f3d.jpeg","path":"d502b922a225f0dfcff7094829102f3d.jpeg","width":1576,"height":1576,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":20.89,"min_quantity":1}],"weight":"200","compare_at_price":"28","price":"20.89","retail_price":"28","available":true,"url":"\/products\/trendy-brand-hip-hop-basketball-zipper-pocket-shorts?variant=a9c39423-6dc0-4253-a3d4-06022d35cac0","available_quantity":999999999,"options":[{"name":"Color","value":"Purple"},{"name":"Size","value":"S"}],"off_ratio":25,"flashsale_info":[],"sales":1};
return `
Sku : ${variantData && variantData.sku}
Weight : ${variantData && variantData.weight}${variantData && variantData.weight_unit}
Barcode : ${variantData && variantData.barcode}
`
}()}