[Solved] Challenges with Overriding Aimeos Product Controller
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!
Always add your Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
-
- Posts: 48
- Joined: 30 Apr 2023, 12:46
[Solved] Challenges with Overriding Aimeos Product Controller
How can I override vendor : ?
I tried to override it by creating :
, but it didn't work out
I follow up https://aimeos.org/docs/2023.x/admin/jq ... hop%20site.
Also clean up cache
Php8.1 , Ubuntu
Code: Select all
vendor/aimeos/ai-admin-jqadm/src/Admin/JQAdm/Product/Standard.php
I tried to override it by creating :
Code: Select all
./packages/myext/src/Admin/JQAdm/Product/Standard.php
I follow up https://aimeos.org/docs/2023.x/admin/jq ... hop%20site.
Also clean up cache
Php8.1 , Ubuntu
Last edited by unknow76616 on 20 Nov 2023, 21:07, edited 1 time in total.
Re: Challenges with Overriding Aimeos Product Controller
You can't create a new class with the same name because composer will choose the first one (whichever that is). Instead, you have to give your class a new name (e.g. "Myproject") and configure your new class name to be used by the factory, i.e.:
See here how to use the configuration:
https://aimeos.org/docs/latest/laravel/customize/
Code: Select all
admin/jqadm/product/name = Myproject
https://aimeos.org/docs/latest/laravel/customize/
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
-
- Posts: 48
- Joined: 30 Apr 2023, 12:46