Change behaviour of ProductPrice->update
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!
Always add your Laravel, Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
-
- Expert
- Posts: 274
- Joined: 27 Jun 2019, 16:19
Change behaviour of ProductPrice->update
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
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 ?
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' );
What can I do in such situation ?
-
- Expert
- Posts: 274
- Joined: 27 Jun 2019, 16:19
Re: Change behaviour of ProductPrice->update
Is it possible to disable this plugin ?
-
- Expert
- Posts: 274
- Joined: 27 Jun 2019, 16:19
Re: Change behaviour of ProductPrice->update
Sorry for stupid question, sure I can disable it in the admin panel )