${function() {
const variantData = data.variant || {"id":"83310e09-b137-499e-9af1-0e5a737d12f4","product_id":"841bb3ea-d05c-4c4b-b922-618aefc99fa3","title":"brown","weight_unit":"kg","inventory_quantity":0,"sku":"662209192529-brown","barcode":"","position":3,"option1":"brown","option2":"","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/322aa8e361d85dbb825888620e3ce8d1.jpeg","path":"322aa8e361d85dbb825888620e3ce8d1.jpeg","width":800,"height":800,"alt":"Simple and sweet retro knitted bag","aspect_ratio":1},"wholesale_price":[{"price":28.42,"min_quantity":1}],"weight":"0.2","compare_at_price":"32.93","price":"28.42","retail_price":"32.93","available":true,"url":"\/products\/simple-and-sweet-retro-knitted-bag?variant=83310e09-b137-499e-9af1-0e5a737d12f4","available_quantity":999999999,"options":[{"name":"color","value":"brown"}],"off_ratio":14,"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.