${function() {
const variantData = data.variant || {"id":"c6041828-b707-4b9f-93c2-a8e20f773f12","product_id":"9769a9d2-0712-4e40-8a13-81d488ecfb0c","title":"Green","weight_unit":"kg","inventory_quantity":1000,"sku":"AHFTM-Green","barcode":"","position":1,"option1":"Green","option2":"","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/f40432cb54eaae9f43df5882514f4e17.jpg","path":"f40432cb54eaae9f43df5882514f4e17.jpg","width":790,"height":790,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":16.99,"min_quantity":1}],"weight":"0","compare_at_price":"0","price":"16.99","retail_price":"0","available":true,"url":"\/products\/air-horn-for-12v-truck-motorcycle?variant=c6041828-b707-4b9f-93c2-a8e20f773f12","available_quantity":999999999,"options":[{"name":"Color","value":"Green"}],"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.