${function() {
const variantData = data.variant || {"id":"10b0beae-e2fb-4e9a-a949-146028f3815d","product_id":"a93a2a31-79d0-4851-a70a-e121f1ab569d","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":26.99,"min_quantity":1}],"weight":"0.25","compare_at_price":"45.88","price":"26.99","retail_price":"45.88","available":true,"url":"\/products\/knitted-bag-fashion-all-match-one-shoulder-woolen-bag?variant=10b0beae-e2fb-4e9a-a949-146028f3815d","available_quantity":999999999,"options":[{"name":"color","value":"khaki"}],"off_ratio":41,"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.