${function() {
const variantData = data.variant || {"id":"d0730b5a-8a1b-42bb-8e6a-75b86381d12f","product_id":"1d4e0c99-385e-447b-a1bf-7027dfdaac2f","title":"white","weight_unit":"kg","inventory_quantity":0,"sku":"662211041410-white","barcode":"","position":1,"option1":"white","option2":"","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/3b8ba4bc063eccbcb666b03c8601d4c5.jpeg","path":"3b8ba4bc063eccbcb666b03c8601d4c5.jpeg","width":800,"height":800,"alt":"Knit Sleeve Warmer Half Sleeve","aspect_ratio":1},"wholesale_price":[{"price":9.7,"min_quantity":1}],"weight":"0.05","compare_at_price":"16.72","price":"9.7","retail_price":"16.72","available":true,"url":"\/products\/knit-sleeve-warmer-half-sleeve?variant=d0730b5a-8a1b-42bb-8e6a-75b86381d12f","available_quantity":999999999,"options":[{"name":"color","value":"white"}],"off_ratio":42,"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.