Developer forum

Forum » Dynamicweb 10 » Rounding prices in DW10

Rounding prices in DW10

Adrian Ursu Dynamicweb Employee
Adrian Ursu
Reply

Hi guys,
Is it just me or Rounding is not available in DW10?
I see a page in the manual: https://doc.dynamicweb.dev/manual/dynamicweb10/settings/areas/commerce/advanced/rounding.html?q=rounding

But it also states that: Rounding as a feature is not available in DynamicWeb10
Is there an alternative method for rounding prices other than adjusting the template?

Thank you,
Adrian


Replies

 
Adrian Ursu Dynamicweb Employee
Adrian Ursu
Reply

Hi guys,
I really need a solution for rounding prices not to show the decimals:

There should be a standard option for handling this, don't you think?
Thank you,
Adrian

 
Nicolai Pedersen Dynamicweb Employee
Nicolai Pedersen
Reply

Hi Adrian

You want to get rid of ,00? 

DW uses currency number formatting of the culture specified on the currency.

But you want to control the amount of decimals and set it to e.g. 0 meaning there will never be anything else than whole numbers?

 

 
Adrian Ursu Dynamicweb Employee
Adrian Ursu
Reply

Hi Nicolai,
Exactly!

In the meantime, I have found out that the rounding setting (the old DW9 rounding) is still working if you fill the data in the table. But I don't understand if there is an interface for it and I have missed it somehow.
Thank you,
Adrian

 
Nicolai Pedersen Dynamicweb Employee
Nicolai Pedersen
Reply

I think we silently removed it from UI because the people we asked never used it :-).

But here was a use case. But you only use for getting rid of decimal places?

We could consider a more simple approach with a setting on the currency it self.

 
Andrejs Zavorotnijs
Reply

Hello Adrian and Nicolai

We also need rounding functionality in Dynamicweb 10. One of our clients actively used price rounding in DW9(multiply languages, currencies and currency rates), but after upgrading to DW10 the rounding no longer works.

Would be nice to have it, or similar workaround, otherwise I can see only one possible solution - custom price provider

 

 

 
Adrian Ursu Dynamicweb Employee
Adrian Ursu
Reply

Hi Andrejs,

In my case, the logic worked after making the changes directly in the database.
I am not sure if the table structure changed between DW9 and DW10.

Adrian

 
Andrejs Zavorotnijs
Reply

Hi Adrian

In my case we didn't touched records in EcomRounding and EcomCurrencies tables so they are still there from DW9


But rounding seems like doesn't work or work differently compare with DW9

Same configuration in database


DW9

DW10


 

Seems like rounded backend price without VAT in DW10, and end price in DW9


 

DW9 and DW10

 
Andrejs Zavorotnijs
Reply

Hi Adrian and Nicolai

In my case, the issue was caused by rounding the price without VAT. After that, VAT was added to the already rounded price in the frontend, which resulted in discrepancies.

There is a configuration in the global settings that controls this behavior.

 

You must be logged in to post in the forum