${function() {
const variantData = data.variant || {"id":"5d4e488e-3822-48d9-8f2a-5362d5d3848a","product_id":"d2097a66-d322-4a17-b158-659be87f8be7","title":"Golden","weight_unit":"kg","inventory_quantity":9849,"sku":"FXHE2208171094-Golden","barcode":"","position":1,"option1":"Golden","option2":"","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/aec145f4341ded86073aecce88f626a2.jpeg","path":"aec145f4341ded86073aecce88f626a2.jpeg","width":800,"height":800,"alt":"Vintage Sun Moon Star Sun Diamond Long Earrings","aspect_ratio":1},"wholesale_price":[{"price":14,"min_quantity":1}],"weight":"0.02","compare_at_price":"24.56","price":"14","retail_price":"24.56","available":true,"url":"\/products\/vintage-sun-moon-star-sun-diamond-long-earrings?variant=5d4e488e-3822-48d9-8f2a-5362d5d3848a","available_quantity":999999999,"options":[{"name":"color","value":"Golden"}],"off_ratio":43,"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.