${function() {
const variantData = data.variant || {"id":"716052f3-a499-4aa4-b4a6-2f15e95342b0","product_id":"4984ae86-343f-4a7a-97b7-8bcc8e9f351c","title":"Gold","weight_unit":"kg","inventory_quantity":181,"sku":"Lin211203867-Gold","barcode":"","position":1,"option1":"Gold","option2":"","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/e88e06c3977ad46208b2eddb5254ab7c.jpeg","path":"e88e06c3977ad46208b2eddb5254ab7c.jpeg","width":1200,"height":1200,"alt":"Twist Chain Bracelet","aspect_ratio":1},"wholesale_price":[{"price":14.57,"min_quantity":1}],"weight":"0.03","compare_at_price":"25.12","price":"14.57","retail_price":"25.12","available":true,"url":"\/products\/twist-chain-bracelet-rprn?variant=716052f3-a499-4aa4-b4a6-2f15e95342b0","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.