Developer forum

Forum » Ecommerce - Standard features » Use product in total price calculation but not in discount

Use product in total price calculation but not in discount

Imar Spaanjaars Dynamicweb Employee
Imar Spaanjaars
Reply

Hi there,

I have a discount of 10% for orders over 1000 euro. For legal reasons, some products are excluded from the discount. However, it seems that these products are also skipped when working out the total of the order when determining if the discount is triggered. Is there a way to include them on the sum (for the qualifier) but exclude them on the discount?

For example:

Product 1            100 euro
Product 2           1000 euro 

Discount:

10% off for orders over 1000. Product2 is excluded

When I add Product 1 to the basket, I get no discount. This is expected as the order is only worth 100
When I then add Product 2 to the basket, I still get no discount. This is not expected as the order is now worth 1100, even though the discount value is not calculated over product 2, the order still reaches the 1000 threshold.

Does this make sense? And can it be done? Or does exclude really mean exclude everywhere?

Thanks!


Replies

 
Nicolai Pedersen
Reply

Maybe this upcoming feature will enable you to achieve it.

https://doc.dynamicweb.com/forum/feature-requests?ThreadID=74287

You will need to implement an extender that returns ValidForOrder when the total is met, and implement the order calculation interface that calculates the discount for the entire order. 

BR Nicolai

 
Nicolai Pedersen
Reply

You will get 2 new interfaces to implement on an extender:

 

You must be logged in to post in the forum