${function() {
const variantData = data.variant || {"id":"47d9e9a2-e2a3-48d6-8484-528b8e41dc50","product_id":"6ebe9917-b3e1-460d-bea6-860989c162b6","title":"A","weight_unit":"kg","inventory_quantity":999,"sku":"CP61419-X4595","barcode":"","position":1,"option1":"A","option2":"","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/4045a0633e5897a376870adafaf3cab2.jpeg","path":"4045a0633e5897a376870adafaf3cab2.jpeg","width":688,"height":688,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":19.98,"min_quantity":1}],"weight":"0","compare_at_price":"24.99","price":"19.98","retail_price":"24.99","available":true,"url":"\/products\/butterfly-fridge-stickers-with-frame?variant=47d9e9a2-e2a3-48d6-8484-528b8e41dc50","available_quantity":999999999,"options":[{"name":"Style","value":"A"}],"off_ratio":20,"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.