Developer forum

Forum » Swift » Swift not showing product discounts?

Swift not showing product discounts?

Imar Spaanjaars Dynamicweb Employee
Imar Spaanjaars
Reply

Hi there,

I have a product discount that adds a product to the cart always; no further rules needed. When I view the cart in the frontend, the discount is not there:

Yet in the backend it is:

 

Is this a known issue? It's a somewhat older version of Swift (1.14).

Thanks!

Imar


Replies

 
Imar Spaanjaars Dynamicweb Employee
Imar Spaanjaars
Reply

In the mean time I found this in Helpers\OrderLineItem:

bool isProduct = orderline.GetBoolean("Ecom:Order:OrderLine.IsProduct");
if (isProduct) {
 
So it seem to be a deliberate choice to not display discounts. To me that doesn't make a lot of sense as a default. What's the rationale for this?
Imar
 
Nicolai Pedersen Dynamicweb Employee
Nicolai Pedersen
Reply
This post has been marked as an answer

Usually discounts are numeric and shown in the order summary - so I guess this is a scenario that was not covered in the implementation.

Send to QA

Votes for this answer: 1
 
Imar Spaanjaars Dynamicweb Employee
Imar Spaanjaars
Reply

Great, thank you!

 
Merethe Vrå Andersen Dynamicweb Employee
Merethe Vrå Andersen
Reply
This post has been marked as an answer

Hi Imar,

Yes, this scenario was not covered. I have created #11598.

BR
Merethe

Votes for this answer: 1

 

You must be logged in to post in the forum