I would like to do two things in my Craft commerce templates:
In my product template:
Check if there are any discounts available to a specific product.
I have a way to output discounts but need to be able to check if there are any at all because the pricing table would look entirely different for either one of the two cases.
In my shopping cart template:
I would like to check (1) if there are any discounts applied to a line item in the shopping cart and, if there are, (2) I would like to display the discount amount for that line item.
This way, I can avoid showing a zero discount like this: "Your discount: $0.00"
Thank you for your help.