Extend Price Item to create Price Lists
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!
-
- Posts: 2
- Joined: 03 Aug 2018, 14:01
Extend Price Item to create Price Lists
Hi there!
I need to extend Price Item from \vendor\aimeos\aimeos-core\lib\mshoplib\src\MShop\Price\Item\Standard because I want to show different prices for a specific user. How could I do that ? My solution is to override the getValue() method from the Price\Standard class and check the user before return the price value, but how ?
Thank you in advance!
I need to extend Price Item from \vendor\aimeos\aimeos-core\lib\mshoplib\src\MShop\Price\Item\Standard because I want to show different prices for a specific user. How could I do that ? My solution is to override the getValue() method from the Price\Standard class and check the user before return the price value, but how ?
Thank you in advance!
Re: Extend Price Item to create Price Lists
The customer group extension allows you to show products/prices/etc. to specific customers or customer groups:
https://aimeos.com/extensions/#c823
https://aimeos.com/extensions/#c823
-
- Posts: 2
- Joined: 03 Aug 2018, 14:01
Re: Extend Price Item to create Price Lists
Thank you for you response, but I just need to override a simple method. There is no need of full extention.nos3 wrote:The customer group extension allows you to show products/prices/etc. to specific customers or customer groups:
https://aimeos.com/extensions/#c823
Is there any other solution ?
Re: Extend Price Item to create Price Lists
Like always, you can extend the item to overwrite the methods you need and extend the manager to create your new own item in createItemBase() method.
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, give us a star
If you like Aimeos, give us a star