${function() {
const variantData = data.variant || {"id":"f5fb3592-1e64-4ad5-9504-d0d98cb2180b","product_id":"053f6812-3771-4a39-afae-e69cdeaf4d97","title":"1","weight_unit":"kg","inventory_quantity":989,"sku":"X103-230510-06-48ZABCRXZG-1","barcode":"","position":1,"option1":"1","option2":"","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/2974137ebfc8c1f3549a0e44da837a0b.jpeg","path":"2974137ebfc8c1f3549a0e44da837a0b.jpeg","width":900,"height":1200,"alt":"","aspect_ratio":0.75},"wholesale_price":[{"price":2,"min_quantity":1}],"weight":"0.01","compare_at_price":"2","price":"2","retail_price":"2","available":true,"url":"\/products\/lgbt-rainbow-pride-metal-drip-pin-badge?variant=f5fb3592-1e64-4ad5-9504-d0d98cb2180b","available_quantity":999999999,"options":[{"name":"Color","value":"1"}],"off_ratio":0,"flashsale_info":[],"sales":8};
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}
`
}()}
Product was out of stock.
Product is unavailable.