${function() {
const variantData = data.variant || {"id":"b7d761ff-fbec-422b-b1eb-2e2a776da0a9","product_id":"47f44cd5-5bd1-4cbb-a442-e5ef3bb44e01","title":"1","weight_unit":"kg","inventory_quantity":1000,"sku":"AWLC-1","barcode":"","position":1,"option1":"1","option2":"","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/8d475e6708c6c0584d8744dc0f6afe0b.jpeg","path":"8d475e6708c6c0584d8744dc0f6afe0b.jpeg","width":800,"height":800,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":27.99,"min_quantity":1}],"weight":"0","compare_at_price":"0","price":"27.99","retail_price":"0","available":true,"url":"\/products\/automatic-water-level-control-valve-2ike?variant=b7d761ff-fbec-422b-b1eb-2e2a776da0a9","available_quantity":999999999,"options":[{"name":"Type","value":"1"}],"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.