Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Decimal's rounding #21

Open
bdqe opened this issue Jan 29, 2021 · 3 comments
Open

Decimal's rounding #21

bdqe opened this issue Jan 29, 2021 · 3 comments

Comments

@bdqe
Copy link

bdqe commented Jan 29, 2021

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

@karliuka
Copy link
Owner

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

@bdqe
Copy link
Author

bdqe commented Feb 5, 2021

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.

@karliuka
Copy link
Owner

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants