support

Author Topic: Prices with tax  (Read 2765 times)

Offline Nuno Neff

  • Full Member
  • ***
  • Posts: 246
  • Karma: +28/-10
    • View Profile
Prices with tax
« on: October 25, 2024, 08:47:02 AM »
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€.

Offline Basara

  • Administrator
  • Hero Member
  • *****
  • Posts: 6071
  • Karma: +284/-2
    • View Profile
Re: Prices with tax
« Reply #1 on: October 25, 2024, 09:19:19 AM »
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.

Offline Nuno Neff

  • Full Member
  • ***
  • Posts: 246
  • Karma: +28/-10
    • View Profile
Re: Prices with tax
« Reply #2 on: October 25, 2024, 09:33:05 AM »
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...
« Last Edit: October 25, 2024, 09:34:52 AM by Nuno Neff »

Offline Basara

  • Administrator
  • Hero Member
  • *****
  • Posts: 6071
  • Karma: +284/-2
    • View Profile
Re: Prices with tax
« Reply #3 on: October 25, 2024, 09:41:27 AM »
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

 

Powered by SMFPacks Social Login Mod