${function() {
const variantData = data.variant || {"id":"5e7451af-1671-4c31-8648-c869cd8fb043","product_id":"20ac92e7-d675-4dc2-adb8-0758876e8a7a","title":"Gold color","weight_unit":"kg","inventory_quantity":0,"sku":"lx20230810062-Gold color","barcode":"","position":1,"option1":"Gold color","option2":"","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/8f7a37bdba7e573cae87b2aa84587461.jpeg","path":"8f7a37bdba7e573cae87b2aa84587461.jpeg","width":1000,"height":1000,"alt":"\"Rio\" Boho Layered Necklace","aspect_ratio":1},"wholesale_price":[{"price":39.99,"min_quantity":1}],"weight":"0","compare_at_price":"0","price":"39.99","retail_price":"0","available":true,"url":"\/products\/rio-boho-layered-necklace?variant=5e7451af-1671-4c31-8648-c869cd8fb043","available_quantity":999999999,"options":[{"name":"Color","value":"Gold color"}],"off_ratio":0,"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.