${function() {
const variantData = data.variant || {"id":"659b2fbe-e1d9-4902-8168-851e506a624c","product_id":"3583b015-d2c0-423b-85c9-e947684ac0b1","title":"Yellow-M","weight_unit":"g","inventory_quantity":998,"sku":"X131-230718-01-HKPNX4VY72-Yellow-M","barcode":"","position":6,"option1":"Yellow","option2":"M","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/232b3eb9b46cb2ba8c660775548bbb7c.jpeg","path":"232b3eb9b46cb2ba8c660775548bbb7c.jpeg","width":900,"height":1200,"alt":"","aspect_ratio":0.75},"wholesale_price":[{"price":27.99,"min_quantity":1}],"weight":"200","compare_at_price":"27.99","price":"27.99","retail_price":"27.99","available":true,"url":"\/products\/mens-short-sleeved-sweater-summer-thin-loose-polo-shirt?variant=659b2fbe-e1d9-4902-8168-851e506a624c","available_quantity":999999999,"options":[{"name":"Color","value":"Yellow"},{"name":"Size","value":"M"}],"off_ratio":0,"flashsale_info":[],"sales":6};
const saveType = "amount";
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.