${function() {
const variantData = data.variant || {"id":"1edd9375-a3b2-4221-a32c-c28e0a0ec525","product_id":"1498e590-d5c7-4abc-af5e-02417479612d","title":"black","weight_unit":"kg","inventory_quantity":0,"sku":"662209192531-black","barcode":"","position":2,"option1":"black","option2":"","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/f2eba313737970017c656287223294b1.jpeg","path":"f2eba313737970017c656287223294b1.jpeg","width":1920,"height":1920,"alt":"Love Knitted Fashion Retro Women's Bag","aspect_ratio":1},"wholesale_price":[{"price":28.65,"min_quantity":1}],"weight":"0.2","compare_at_price":"32.41","price":"28.65","retail_price":"32.41","available":true,"url":"\/products\/love-knitted-fashion-retro-womens-bag?variant=1edd9375-a3b2-4221-a32c-c28e0a0ec525","available_quantity":999999999,"options":[{"name":"color","value":"black"}],"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.