${function() {
const variantData = data.variant || {"id":"3f446cca-b07d-4d0d-8af9-eb03e0e04e24","product_id":"1c43aa95-44bb-4242-8b8e-7914f452a631","title":"white","weight_unit":"kg","inventory_quantity":0,"sku":"662209192546-white","barcode":"","position":1,"option1":"white","option2":"","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/2686e8469c3a978ad9ff69a0212f6dc8.jpeg","path":"2686e8469c3a978ad9ff69a0212f6dc8.jpeg","width":800,"height":800,"alt":"Women's autumn knitted handbag","aspect_ratio":1},"wholesale_price":[{"price":29.79,"min_quantity":1}],"weight":"0.43","compare_at_price":"49.65","price":"29.79","retail_price":"49.65","available":true,"url":"\/products\/womens-autumn-knitted-handbag?variant=3f446cca-b07d-4d0d-8af9-eb03e0e04e24","available_quantity":999999999,"options":[{"name":"color","value":"white"}],"off_ratio":40,"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.