${function() {
const variantData = data.variant || {"id":"66db648f-abe4-44fa-b175-66370273c5a4","product_id":"277799c2-5253-45b0-9788-766a192cb390","title":"Red","weight_unit":"kg","inventory_quantity":4781,"sku":"66211026312-Red","barcode":"","position":2,"option1":"Red","option2":"","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/7b9dae283eca97a5cb9c10201c59c989.jpeg","path":"7b9dae283eca97a5cb9c10201c59c989.jpeg","width":800,"height":800,"alt":"Christmas Ball And Striped Earrings","aspect_ratio":1},"wholesale_price":[{"price":4.05,"min_quantity":1}],"weight":"0.01","compare_at_price":"6.75","price":"4.05","retail_price":"6.75","available":true,"url":"\/products\/christmas-ball-and-striped-earrings?variant=66db648f-abe4-44fa-b175-66370273c5a4","available_quantity":999999999,"options":[{"name":"Color","value":"Red"}],"off_ratio":40,"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.