${function() {
const variantData = data.variant || {"id":"3098c9cd-d696-4cda-b873-45adb5bfb361","product_id":"c57edc44-5dc1-4d07-83d8-c750d503abe2","title":"3","weight_unit":"kg","inventory_quantity":1000,"sku":"X103-231023-01-RC3FEMDHDX-3","barcode":"","position":3,"option1":"3","option2":"","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/e6ccebff8cceb20f556cf4a4478ab2db.jpeg","path":"e6ccebff8cceb20f556cf4a4478ab2db.jpeg","width":900,"height":1200,"alt":"","aspect_ratio":0.75},"wholesale_price":[{"price":9.99,"min_quantity":1}],"weight":"0.02","compare_at_price":"9.99","price":"9.99","retail_price":"9.99","available":true,"url":"\/products\/christmas-cute-kitten-flat-creative-gift-decorative-pendant?variant=3098c9cd-d696-4cda-b873-45adb5bfb361","available_quantity":999999999,"options":[{"name":"Color","value":"3"}],"off_ratio":0,"flashsale_info":[],"sales":5};
const saveType = "amount";
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.