${function() {
const variantData = data.variant || {"id":"c1965784-c9c1-4415-abf1-a0c28041de43","product_id":"3b635559-bad9-4fc4-9be3-faf424643266","title":"Random","weight_unit":"kg","inventory_quantity":1000,"sku":"RPTL-Random-1PC","barcode":"","position":1,"option1":"Random","option2":"","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/4f7b6d54a1bf127c1f35118a2e4fab69.jpg","path":"4f7b6d54a1bf127c1f35118a2e4fab69.jpg","width":800,"height":800,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":19.99,"min_quantity":1}],"weight":"0","compare_at_price":"0","price":"19.99","retail_price":"0","available":true,"url":"\/products\/rubber-pet-toy-leakage-dog-toys-ball-bone-puzzle-feeder-toys?variant=c1965784-c9c1-4415-abf1-a0c28041de43","available_quantity":999999999,"options":[{"name":"Color","value":"Random"}],"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.