${function() {
const variantData = data.variant || {"id":"5f7b3dc0-3eee-475e-a849-0c968e93cf33","product_id":"87e5e150-b004-4b06-aa2f-194d3b6e8317","title":"yellow","weight_unit":"kg","inventory_quantity":0,"sku":"662209192547-yellow","barcode":"","position":3,"option1":"yellow","option2":"","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/e5d5999666227ec66625dcc584d71e12.jpeg","path":"e5d5999666227ec66625dcc584d71e12.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=5f7b3dc0-3eee-475e-a849-0c968e93cf33","available_quantity":999999999,"options":[{"name":"color","value":"yellow"}],"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.