News:

AbanteCart v1.4.2 is released.

Main Menu

Do you like AbanteCart? Please rate AbanteCart or share your experience with other eCommerce entrepreneurs. Go to Softaculous rating page to add your rating or write a review

Prices with tax

Started by Nuno Neff, October 25, 2024, 08:47:02 AM

Previous topic - Next topic

Nuno Neff

I've mentioned this I don't know how many times and I've updated my site to the new version because I thought I wouldn't have the problem with the prices on my site anymore, but it's still the same.

I'm from Portugal, here VAT is 23%

I have a product on my site that I want to sell for €350.90

And it's not possible, it only lets me sell it for 350.89 or 350.91€.

Basara

Hello
This is a known issue related to rounding and currency decimal numbers. Unfortunately, there isn't an easy fix because altering the rounding could affect all payment calculations, and some payment methods, like PayPal, might reject the order.

Nuno Neff

#2
The problem is that your calculation isn't right.

For example, when you put 350.90€ in your calculator, the price excluding VAT is 285.28

and it should be 285.284553, I show you an example of the demo in Prestashop

And it works fine there and they don't have any problems with Paypal etc...

Basara

Hello.

As the owner of your AbanteCart installation, you have full rights to all the source code. This means you are free to modify any aspect of the code, including calculations, to suit your specific requirements.

We encourage you to share any improvements by submitting a pull request to our official GitHub repository. This way, the entire AbanteCart community can benefit from your contributions, in the true spirit of open-source collaboration. Before submitting, please ensure that the solution is thoroughly tested with several popular payment providers and covers various scenarios, including cases with multiple items in the cart. This helps to avoid rounding issues, such as 1 cent discrepancies that can occur with quantities like 11 or 333.

Thank you for being a part of our community

Forum Rules Code of conduct
AbanteCart.com 2010 -