Developer forum

Forum » Ecommerce - Standard features » Order of product discounts applied

Order of product discounts applied

Lars Hejgaard Sørensen Dynamicweb Employee
Lars Hejgaard Sørensen
Reply

Hi :)

On a DW9 solution, I imported some discounts from Business Central. In BC for an item we may have a 25% discount clean, and we may have a 25% discount valide from a date in the past and with no ending date. So the item will be added to two discounts that grant the same deduction.

These discounts are added as product discounts, so they aggregate, so I have checked the "Stop further rules processing" option on all discounts. It works fine, and only one discount is added. But then this question pops up. How does DW select the discount? Is it the one with lowest id, is it the one with most matching parameters (both condifions apply for the discount applied in my scenario). Or is it something third? I'm not using discount priority in this scenario.

Br.
Lars


Replies

 
Nicolai Pedersen Dynamicweb Employee
Nicolai Pedersen
Reply

Hi Lars

You can choose the behavor in settings - to sum the discounts or to choose the lowest or highest:

https://doc.dynamicweb.com/documentation-9/platform/advanced-settings/ecommerce-advanced-configuration#sideNavTitle1-6

 
Lars Hejgaard Sørensen Dynamicweb Employee
Lars Hejgaard Sørensen
Reply

Hi Nicolai,

My apologies, should have mentioned, I had read up on the documentation ;-) But when they are the same, will it just pick the first one from the database?

Br.
Lars

 

You must be logged in to post in the forum