${function() {
const variantData = data.variant || {"id":"7bf5ad1b-0bad-44e4-bb59-0e4c370ee4a7","product_id":"a93a2a31-79d0-4851-a70a-e121f1ab569d","title":"gray","weight_unit":"kg","inventory_quantity":0,"sku":"662209192547-gray","barcode":"","position":1,"option1":"gray","option2":"","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/bb3966f164a88a4caaf68a41ba00bf4a.jpeg","path":"bb3966f164a88a4caaf68a41ba00bf4a.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=7bf5ad1b-0bad-44e4-bb59-0e4c370ee4a7","available_quantity":999999999,"options":[{"name":"color","value":"gray"}],"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.