${function() {
const variantData = data.variant || {"id":"99e70c9c-9cc4-4f10-9c09-aeed6d846c2d","product_id":"14dff51b-e7d0-489f-bdb2-9f4bb1544d36","title":"As shown","weight_unit":"kg","inventory_quantity":990,"sku":"WSC92444-ASS","barcode":"","position":1,"option1":"As shown","option2":"","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/f8b797af38df0bfcc908db1b190dc809.jpeg","path":"f8b797af38df0bfcc908db1b190dc809.jpeg","width":1500,"height":2000,"alt":"","aspect_ratio":0.75},"wholesale_price":[{"price":6.99,"min_quantity":1}],"weight":"0","compare_at_price":"11.18","price":"6.99","retail_price":"11.18","available":true,"url":"\/products\/rainbow-square-scarf-outdoor-variety-square-scarf-head-scarf?variant=99e70c9c-9cc4-4f10-9c09-aeed6d846c2d","available_quantity":999999999,"options":[{"name":"Color","value":"As shown"}],"off_ratio":37,"flashsale_info":[],"sales":5};
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.