Developer forum

Forum » Ecommerce - Standard features » Negative values on discounts

Negative values on discounts

Imar Spaanjaars Dynamicweb Employee
Imar Spaanjaars
Reply

Hi there,

I just noticed that you can no longer assign a negative value to an order discount. Is that a deliberate choice? We used that in the past to add a fee to the cart. If it is on purpose, what's the recommended approach for adding fees? I could use a FeeProvider but find it a bit invisible / hard to configure. Would a discount extender returning a negative value make sense?

Thanks!

Imar


Replies

 
Nicolai Pedersen Dynamicweb Employee
Nicolai Pedersen
Reply

According to the code base, that has not changed for at least 2 years...

But what about taxes - that will add additional cost on an order.

I am not sure what would happen if a discount provider returns a negative number.

 
Imar Spaanjaars Dynamicweb Employee
Imar Spaanjaars
Reply

OK, good points, thanks! I'll reconsider my options.

Imar

 

You must be logged in to post in the forum