${function() {
const variantData = data.variant || {"id":"e6e8f536-fe10-4fc1-872a-d442ea7a272c","product_id":"b3cb67c4-312b-4dea-bbd2-0ca8311f5a3e","title":"Black","weight_unit":"kg","inventory_quantity":998,"sku":"PSGT-Black","barcode":"","position":2,"option1":"Black","option2":"","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/79772983455f0375d9058dc32c839e0a.jpeg","path":"79772983455f0375d9058dc32c839e0a.jpeg","width":1000,"height":1000,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":13.99,"min_quantity":1}],"weight":"0","compare_at_price":"0","price":"13.99","retail_price":"0","available":true,"url":"\/products\/pet-smart-gps-tracker?variant=e6e8f536-fe10-4fc1-872a-d442ea7a272c","available_quantity":999999999,"options":[{"name":"Color","value":"Black"}],"off_ratio":0,"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.