${function() {
const variantData = data.variant || {"id":"79daf2ac-8be7-43b1-97c2-a2470fba4021","product_id":"8c61f87b-97b6-4537-85c2-5df65058d86d","title":"Photo Color-S","weight_unit":"kg","inventory_quantity":996,"sku":"PH1-220502-13-PhotoColor-S","barcode":"","position":1,"option1":"Photo Color","option2":"S","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/e98122bc205a61e7f1572a98f3952492.png","path":"e98122bc205a61e7f1572a98f3952492.png","width":900,"height":1200,"alt":"","aspect_ratio":0.75},"wholesale_price":[{"price":28.22,"min_quantity":1}],"weight":"0","compare_at_price":"28.22","price":"28.22","retail_price":"28.22","available":true,"url":"\/products\/mens-casual-printed-polo-shirt-wzrs?variant=79daf2ac-8be7-43b1-97c2-a2470fba4021","available_quantity":996,"options":[{"name":"Color","value":"Photo Color"},{"name":"Size","value":"S"}],"off_ratio":0,"flashsale_info":[],"sales":0};
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.