Developer forum

Forum » Development » Discount in cart total

Discount in cart total


Reply

I'm trying to create a shopping cart which diplays the numer of items in there. Something simple like this:

Shopping cart (3 items)

It works just fine but when we add a discount it is counted as an item. So 2 productsand 2 discounts will show up as:

Shopping cart (4 items)

Off course i would like this to be just 2 items. Our customer only added 2 items. If we take this a step further you do want to add product discounts such as a free product as an item to your total.

 

 


Replies

 
Nicolai Høeg Pedersen
Reply
Use the template tag Ecom:Order.OrderLines.TotalProductQuantity instead.
 
Reply
Thanks, sometimes so it's simple.

 

You must be logged in to post in the forum