${function() {
const variantData = data.variant || {"id":"8e931470-871e-4691-9c15-7e6b175675f2","product_id":"f2c996c7-a4e4-4c09-82ad-5fdab5ca7d18","title":"NavyBlue-M","weight_unit":"kg","inventory_quantity":1000,"sku":"X103-240407-05-PXKJRCQ6H6-NavyBlue-M","barcode":"","position":1,"option1":"NavyBlue","option2":"M","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/69783326c862c7f0df7d7f4b9b7c668e.jpeg","path":"69783326c862c7f0df7d7f4b9b7c668e.jpeg","width":900,"height":1200,"alt":"","aspect_ratio":0.75},"wholesale_price":[{"price":27.99,"min_quantity":1}],"weight":"0","compare_at_price":"23.99","price":"27.99","retail_price":"23.99","available":true,"url":"\/products\/mens-casual-v-neck-short-sleeved-polo-shirt?variant=8e931470-871e-4691-9c15-7e6b175675f2","available_quantity":999999999,"options":[{"name":"Color","value":"NavyBlue"},{"name":"Size","value":"M"}],"off_ratio":0,"flashsale_info":[],"sales":2};
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.