${function() {
const variantData = data.variant || {"id":"4018339b-6e30-4a6a-92a7-68d353bba7c2","product_id":"d1bbf819-94a9-4293-9c1e-fc4f93ec5117","title":"White","weight_unit":"kg","inventory_quantity":0,"sku":"Lin2111091136-White","barcode":"","position":1,"option1":"White","option2":"","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/b5680e051fcdd8fd5b7a4cfa456875cc.jpeg","path":"b5680e051fcdd8fd5b7a4cfa456875cc.jpeg","width":800,"height":800,"alt":"Pearl Beaded Grape Necklace Sweater Chain","aspect_ratio":1},"wholesale_price":[{"price":36.31,"min_quantity":1}],"weight":"0","compare_at_price":"56.12","price":"36.31","retail_price":"56.12","available":true,"url":"\/products\/pearl-beaded-grape-necklace-sweater-chain-lj7i?variant=4018339b-6e30-4a6a-92a7-68d353bba7c2","available_quantity":999999999,"options":[{"name":"Color","value":"White"}],"off_ratio":35,"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.