${function() {
const variantData = data.variant || {"id":"6e881e66-7d90-4ec9-a10b-35ccd436e315","product_id":"1d4e0c99-385e-447b-a1bf-7027dfdaac2f","title":"black","weight_unit":"kg","inventory_quantity":0,"sku":"662211041410-black","barcode":"","position":2,"option1":"black","option2":"","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/3780a870b41381c126185ad6395a0599.jpeg","path":"3780a870b41381c126185ad6395a0599.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=6e881e66-7d90-4ec9-a10b-35ccd436e315","available_quantity":999999999,"options":[{"name":"color","value":"black"}],"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.