${function() {
const variantData = data.variant || {"id":"fc75a384-4d91-4524-a39c-c2f254d7aa08","product_id":"b3cb67c4-312b-4dea-bbd2-0ca8311f5a3e","title":"White","weight_unit":"kg","inventory_quantity":1000,"sku":"PSGT-White","barcode":"","position":1,"option1":"White","option2":"","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/2ba81b039cc8efaaeea7b2b1e80cc681.jpeg","path":"2ba81b039cc8efaaeea7b2b1e80cc681.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=fc75a384-4d91-4524-a39c-c2f254d7aa08","available_quantity":999999999,"options":[{"name":"Color","value":"White"}],"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.