${function() {
const variantData = data.variant || {"id":"58718a31-a47a-47b5-94f0-45bbab0df87c","product_id":"87e5e150-b004-4b06-aa2f-194d3b6e8317","title":"khaki","weight_unit":"kg","inventory_quantity":0,"sku":"662209192547-khaki","barcode":"","position":2,"option1":"khaki","option2":"","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/5026e7dc3d4a059d4228b69baf6d5cf1.jpeg","path":"5026e7dc3d4a059d4228b69baf6d5cf1.jpeg","width":800,"height":800,"alt":"Knitted bag fashion all-match one shoulder woolen bag","aspect_ratio":1},"wholesale_price":[{"price":28.34,"min_quantity":1}],"weight":"0.25","compare_at_price":"32.13","price":"28.34","retail_price":"32.13","available":true,"url":"\/products\/knitted-bag-fashion-all-match-one-shoulder-woolen-bag-lad9?variant=58718a31-a47a-47b5-94f0-45bbab0df87c","available_quantity":999999999,"options":[{"name":"color","value":"khaki"}],"off_ratio":12,"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.