Wrong price send to payment provider when using NoVat?

How to configure and adapt Aimeos based shops as developer
Forum rules
Always add your Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
danielsiepmann
Posts: 11
Joined: 12 Jun 2023, 06:49

Wrong price send to payment provider when using NoVat?

Post by danielsiepmann » 20 Apr 2026, 11:55

We updated a customer project using the paid aimeoscom/ai-vatcheck package from 2021.04 to 2025.04.3.

It looks like there was some internal refactoring within aimeos regarding the recalculation logic of the basket/invoice price.
The packege called

Code: Select all

$basket->setModified()
in the past. It now misses any call leading to no properly applying the NoVat logic to the final price send to the payment provider.

We could fix it by adding the following line instead:

Code: Select all

$basket->getPrice()->setModified();
I'm not 100% sure I got everything right. So it would be cool to know if this fix is correct or what we should do instead.
I'd opened an issue instead of this help post, but get a 404 as the source code, for obvious reasons, is not public.

nos3
Posts: 92
Joined: 01 Sep 2015, 13:26

Re: Wrong price send to payment provider when using NoVat?

Post by nos3 » 20 Apr 2026, 13:12

Hi Daniel
danielsiepmann wrote: 20 Apr 2026, 11:55 It looks like there was some internal refactoring within aimeos regarding the recalculation logic of the basket/invoice price.
The packege called

Code: Select all

$basket->setModified()
in the past. It now misses any call leading to no properly applying the NoVat logic to the final price send to the payment provider.

We could fix it by adding the following line instead:

Code: Select all

$basket->getPrice()->setModified();
Using $basket->getPrice()->setModified() looks good to me. Where is that missing in the 2025.10 version?

Post Reply