${function() {
const variantData = data.variant || {"id":"e7a966bc-42cf-4242-80e4-a6838d87989a","product_id":"5f0fc6e4-6b38-44d4-97b9-287b10aceb92","title":"As shown-One-Size","weight_unit":"kg","inventory_quantity":995,"sku":"WER93044-ASSONE","barcode":"","position":1,"option1":"As shown","option2":"One-Size","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/b8d8d77092e4b654af0bc461867afd36.jpeg","path":"b8d8d77092e4b654af0bc461867afd36.jpeg","width":675,"height":900,"alt":"","aspect_ratio":0.75},"wholesale_price":[{"price":6.99,"min_quantity":1}],"weight":"0","compare_at_price":"11.99","price":"6.99","retail_price":"11.99","available":true,"url":"\/products\/womens-rainbow-heart-earrings?variant=e7a966bc-42cf-4242-80e4-a6838d87989a","available_quantity":999999999,"options":[{"name":"Color","value":"As shown"},{"name":"Size","value":"One-Size"}],"off_ratio":42,"flashsale_info":[],"sales":0};
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}
`
}()}
${function(){
const tipText = "Please select a {{ name }}".replace(/\{\{\s+name\s+\}\}/g, data);
return `${tipText}
`
}()}
Product was out of stock.
Product is unavailable.