${function() {
const variantData = data.variant || {"id":"dc27da8c-f8c7-40d4-adf4-dcdf53e3eec4","product_id":"1ebc4a97-1f9b-49d6-b4f9-d32f97db3fac","title":"Gold","weight_unit":"kg","inventory_quantity":0,"sku":"Lin211203865-Gold","barcode":"","position":1,"option1":"Gold","option2":"","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/5bd63841e3907ed4a7554c96b6ee3dff.jpeg","path":"5bd63841e3907ed4a7554c96b6ee3dff.jpeg","width":1200,"height":1200,"alt":"Metal Geometric O-chain Necklace","aspect_ratio":1},"wholesale_price":[{"price":30.58,"min_quantity":1}],"weight":"0.1","compare_at_price":"52.72","price":"30.58","retail_price":"52.72","available":true,"url":"\/products\/metal-geometric-o-chain-necklace-31rg?variant=dc27da8c-f8c7-40d4-adf4-dcdf53e3eec4","available_quantity":999999999,"options":[{"name":"Color","value":"Gold"}],"off_ratio":42,"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.