m2.Price icon indicating copy to clipboard operation
m2.Price copied to clipboard

Decimal's rounding

Open bdqe opened this issue 3 years ago • 3 comments

Hi,

I can't round decimals to 1 decimal precision:

rounding 12,44 € to 12,40 € or to 12,4 € – like Excel's function ROUND(12,44;1)

and

rounding 12,45 € to 12,50 € or to 12,5 € – like Excel's function ROUND(12,45;1)

The module's settings are:

Enabled Rounding: Yes Rounding Base Price: Yes Rounding Discount: Yes Rounding Type: Excel Round Precision: 1 Subtract Amount: No Show decimal zeros: No Replace zero price: No

bdqe avatar Jan 29 '21 06:01 bdqe

Hi, its work module configuration config product list in admin section admin product of category page front

karliuka avatar Jan 31 '21 19:01 karliuka

Hi,

thank you for the hint, I tried your combination too, but without success. I'm using:

Magento 2.4.1 Elasticsearch 7.10.2 Smile Elasticsuite 2.10.1 Faonni Price 2.4.2

After each combination of module's settings tried, I reindexed Magento and refreshed all caches. For some combinations the prices were rounded, but I still can't achieve your result and round the prices to 1 decimal in frontend nor backend. I have no special prices set or price rules applied.

bdqe avatar Feb 05 '21 09:02 bdqe

thanks for more accurate data, I will try to check under your conditions

karliuka avatar Feb 10 '21 00:02 karliuka