${function() {
const variantData = data.variant || {"id":"e6697374-cb6b-43ab-bfd2-3296a1001455","product_id":"a99c8be4-f220-43ac-8b68-4167b6ffcc8d","title":"Black","weight_unit":"kg","inventory_quantity":0,"sku":"20101029-black","barcode":"","position":1,"option1":"Black","option2":"","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/fe40422959f05b45eb698190e7897cd3.jpeg","path":"fe40422959f05b45eb698190e7897cd3.jpeg","width":800,"height":800,"alt":"Fashion Tree Necklace","aspect_ratio":1},"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=e6697374-cb6b-43ab-bfd2-3296a1001455","available_quantity":999999999,"options":[{"name":"Color","value":"Black"}],"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.