${function() {
const variantData = data.variant || {"id":"1550a4f4-62dd-4c08-bcd6-3a27ca6b7ad3","product_id":"841bb3ea-d05c-4c4b-b922-618aefc99fa3","title":"yellow","weight_unit":"kg","inventory_quantity":0,"sku":"662209192529-yellow","barcode":"","position":2,"option1":"yellow","option2":"","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/2653df5e31116088e9bdbc798e3364f7.jpeg","path":"2653df5e31116088e9bdbc798e3364f7.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=1550a4f4-62dd-4c08-bcd6-3a27ca6b7ad3","available_quantity":999999999,"options":[{"name":"color","value":"yellow"}],"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.