${function() {
const variantData = data.variant || {"id":"5b22d6e2-852d-444f-8dce-c6fa97947191","product_id":"216f7c96-fbfc-4307-a4c7-6ca2b8def4b3","title":"2","weight_unit":"kg","inventory_quantity":997,"sku":"X103-230510-09-U9XX657HVG-2","barcode":"","position":2,"option1":"2","option2":"","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/e0d64fcb05d3476ea32eaa43137d0f18.jpeg","path":"e0d64fcb05d3476ea32eaa43137d0f18.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=5b22d6e2-852d-444f-8dce-c6fa97947191","available_quantity":999999999,"options":[{"name":"Color","value":"2"}],"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.