${function() {
const variantData = data.variant || {"id":"41342cfd-f976-4b27-a3b3-6924432fcf1e","product_id":"00e65b95-2137-452b-a2e1-f13f9f00b164","title":"coffee","weight_unit":"kg","inventory_quantity":1000,"sku":"SMLS_coffee","barcode":"","position":1,"option1":"coffee","option2":"","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/e30267354d72aa2b8c1dcb10dc649edf.jpeg","path":"e30267354d72aa2b8c1dcb10dc649edf.jpeg","width":800,"height":800,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":39.99,"min_quantity":1}],"weight":"0","compare_at_price":"0","price":"39.99","retail_price":"0","available":true,"url":"\/products\/steampunk-medieval-leather-shoulder-bag-vintage-phone-case-wallet-double-pocket-holster-festival-viking-pirate-costume-purse-men?variant=41342cfd-f976-4b27-a3b3-6924432fcf1e","available_quantity":999999999,"options":[{"name":"Color","value":"coffee"}],"off_ratio":0,"flashsale_info":[],"sales":0};
const saveType = "percentage";
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.