${function() {
const variantData = data.variant || {"id":"b049659c-ab8a-4fd1-b112-b4eb44ef06a3","product_id":"216f7c96-fbfc-4307-a4c7-6ca2b8def4b3","title":"3","weight_unit":"kg","inventory_quantity":990,"sku":"X103-230510-09-U9XX657HVG-3","barcode":"","position":3,"option1":"3","option2":"","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/ecd17de829539898380537a7c175024d.jpeg","path":"ecd17de829539898380537a7c175024d.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=b049659c-ab8a-4fd1-b112-b4eb44ef06a3","available_quantity":999999999,"options":[{"name":"Color","value":"3"}],"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.