Developer forum

Forum » Ecommerce - Standard features » How do I create pretty prices without decimals

How do I create pretty prices without decimals

Filip L.
Reply

I want prices without decimals, for example: 580,- 

Some prices are difficult to get right after VAT is added. In DynamicWeb 487,39 + 19% VAT becomes 579,99 - and if I modify the price in backend to 487,40 it becomes 580,01 in frontend.

I've added a rounding method just like example #1 in the documentation, but it doesn't have any effect on the product price. Am I missing something?

Another solution might be to have move decimals in backend. Is it possible to have more than 2 decimals?


Replies

 
Imar Spaanjaars Dynamicweb Employee
Imar Spaanjaars
Reply

Did you associate the rounding with the currency for the site?

Imar

 

 
Filip L.
Reply

Right, thanks Imar!

 
Filip L.
Reply

I'm still having some trouble. The rounding seems inconsistent:

Product #1
407,56 + 19% VAT = 484,9964 =
Desired result: 485
Backend test: 484 
Frontend result: 484 

Product #2
487,39 + 19% VAT = 579,9941 = 
Desired result: 580
Backend test: 579 
Frontend result: 580 

 

These are my settings:

Method: Up
Integer - Factor: 1
Integer - Addition: 0
Decimal - Factor: 0
Decimal - Addition: 0
Decimal: Decimal places: 0

 

Also I'm getting odd behavior: When I save the rounding method I get one kind of rounding in frontend, then without changing any setting and just save the currency I get another rounding result.

 

 
Morten Buhl Dynamicweb Employee
Morten Buhl
Reply

Hi Filip

I can't reproduce that. What version are you on? Do you have an example on a site?

/Morten Buhl, DW

 
Filip L.
Reply

Version 8.8.1.6

I can't post a link here, but if I get the time I'll send a mail to the support. 

 
Morten Buhl Dynamicweb Employee
Morten Buhl
Reply

Hi Filip

In 8.8.1.6 we had a bug regarding rounding (28789). This was fixed in 8.9.1.2 so try upgrading

/Morten

 

You must be logged in to post in the forum