Check if a product can be discounted

Check if a product can be discounted before showing the discount options
via the template.