Change behaviour of ProductPrice->update

Help for integrating the Laravel package
Forum rules
Always add your Laravel, Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
MikaelNazarenko
Expert
Posts: 274
Joined: 27 Jun 2019, 16:19

Change behaviour of ProductPrice->update

Post by MikaelNazarenko » 10 Sep 2019, 15:38

I have problem with aimeos-core/lib/mshoplib/src/MShop/Plugin/Provider/Order/ProductPrice.php with update method. Seems it is fired when add product to basket,

Here I checked problematic the problematic line https://github.com/aimeos/aimeos-core/b ... e.php#L143

Code: Select all

$refPrices = $prodMap[$orderProduct->getProductCode()]->getRefItems( 'price', 'default', 'default' );
Here I need get filtered prices. I may overwrite getRefItems on my extended product but it is bad solution I think.

What can I do in such situation ?

MikaelNazarenko
Expert
Posts: 274
Joined: 27 Jun 2019, 16:19

Re: Change behaviour of ProductPrice->update

Post by MikaelNazarenko » 10 Sep 2019, 16:14

Is it possible to disable this plugin ?

MikaelNazarenko
Expert
Posts: 274
Joined: 27 Jun 2019, 16:19

Re: Change behaviour of ProductPrice->update

Post by MikaelNazarenko » 10 Sep 2019, 16:19

Sorry for stupid question, sure I can disable it in the admin panel )

Post Reply