${function() {
const variantData = data.variant || {"id":"bae7b661-5a2c-48fc-9cd9-e03344e4ffaf","product_id":"a99c8be4-f220-43ac-8b68-4167b6ffcc8d","title":"Copper","weight_unit":"kg","inventory_quantity":0,"sku":"20101029-copper","barcode":"","position":2,"option1":"Copper","option2":"","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/1d73d869e5d018f6deb5eed711de67a3.jpeg","path":"1d73d869e5d018f6deb5eed711de67a3.jpeg","width":1200,"height":1600,"alt":"Fashion Tree Necklace","aspect_ratio":0.75},"wholesale_price":[{"price":4.68,"min_quantity":1}],"weight":"0.02","compare_at_price":"5.29","price":"4.68","retail_price":"5.29","available":true,"url":"\/products\/fashion-tree-necklace-9c3e-aji4?variant=bae7b661-5a2c-48fc-9cd9-e03344e4ffaf","available_quantity":999999999,"options":[{"name":"Color","value":"Copper"}],"off_ratio":12,"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.