Posted on 04/10/2017 14:25:08
Perhaps that does the trick? Just to make sure I understand this correctly:
We say that both Product 1 and Product 2 has a price of 100,- a piece, and there is a 50% discount active for product 1.
Customer adds 2 x Product 1 and 2 x Product 2 in the cart. The orderlines will be:
- Orderline for Product 1 (amount = 100,-)
- Orderline for discount for Product 1 (amount = 100,-)
- Orderline for Product 2 (amount = 200,-)
The tag you mention above does this:
"Returns the total price of the orderline - without currency symbol."
Wouldn't that just render the amount stated above (100,- for Orderline 1)? Or am I misunderstanding the output from this tag?
Because then we would have to compare values in different tags to see if one number is higher than the other, and then conclude that there is a discount.
But that just seem like a lot of unnecessary template logic to conclude a true/false for an orderline.
Or maybe I just misunderstand the whole thing regarding the tag mentioned above :-)