${function() {
const variantData = data.variant || {"id":"07fb62e3-ca30-4867-a0b6-6a41fff17756","product_id":"216f7c96-fbfc-4307-a4c7-6ca2b8def4b3","title":"1","weight_unit":"kg","inventory_quantity":998,"sku":"X103-230510-09-U9XX657HVG-1","barcode":"","position":1,"option1":"1","option2":"","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/5184717ae3abcfad8c81b8c079fc485e.jpeg","path":"5184717ae3abcfad8c81b8c079fc485e.jpeg","width":900,"height":1200,"alt":"","aspect_ratio":0.75},"wholesale_price":[{"price":2,"min_quantity":1}],"weight":"0.02","compare_at_price":"2","price":"2","retail_price":"2","available":true,"url":"\/products\/lgbt-rainbow-pride-metal-pin-badge?variant=07fb62e3-ca30-4867-a0b6-6a41fff17756","available_quantity":999999999,"options":[{"name":"Color","value":"1"}],"off_ratio":0,"flashsale_info":[],"sales":24};
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.