${function() {
const variantData = data.variant || {"id":"38d379ba-7ed9-4d42-9983-b54878c61cd3","product_id":"c2c3071f-ba9b-4ed6-9fa9-3a4fb04df36b","title":"Black","weight_unit":"kg","inventory_quantity":1000,"sku":"HSR-Black","barcode":"","position":1,"option1":"Black","option2":"","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/6297e0b73a292e89b2863fd918c34966.jpg","path":"6297e0b73a292e89b2863fd918c34966.jpg","width":750,"height":750,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":39.99,"min_quantity":1}],"weight":"0","compare_at_price":"0","price":"39.99","retail_price":"0","available":true,"url":"\/products\/homemade-spring-rolls-crust-pancake-pan?variant=38d379ba-7ed9-4d42-9983-b54878c61cd3","available_quantity":999999999,"options":[{"name":"Color","value":"Black"}],"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.