${function() {
const variantData = data.variant || {"id":"4eba8c39-7a2c-40ba-a2a2-106709d0ea1e","product_id":"7d0fa906-bbd7-46ee-8fde-f7c19b05a20a","title":"snowman","weight_unit":"kg","inventory_quantity":0,"sku":"662210291000-snowman","barcode":"","position":1,"option1":"snowman","option2":"","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/0ad0fb55905deee9798d0b7e79fdcef4.jpeg","path":"0ad0fb55905deee9798d0b7e79fdcef4.jpeg","width":800,"height":800,"alt":"Christmas decorations old man wine bottle set","aspect_ratio":1},"wholesale_price":[{"price":6.99,"min_quantity":1}],"weight":"0.03","compare_at_price":"13.19","price":"6.99","retail_price":"13.19","available":true,"url":"\/products\/christmas-decorations-old-man-wine-bottle-set?variant=4eba8c39-7a2c-40ba-a2a2-106709d0ea1e","available_quantity":999999999,"options":[{"name":"color","value":"snowman"}],"off_ratio":47,"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.