Configure /ext extension to be recognized by Aimeos

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!
User avatar
IvanIgniter
Posts: 58
Joined: 01 Dec 2021, 07:41

Configure /ext extension to be recognized by Aimeos

Post by IvanIgniter » 14 Dec 2021, 05:06

I am using laravel 6.x, PHP 7.4, Docker desktop/Ubuntu and the Aimeos 2021

I would like to ask how to configure the aimeos not to cause issue like this if I already have a modified aimeos codes in /ext?
Everything in composer install aimeos to php artisan vendor:publish --all works fine. But after running php artisan aimeos:setup encounter the same issue the same like checking the page.

But if I removed the /ext folder our aimeos modified codes the php artisan aimeos:setup works fine.
Please help how to configure aimeos to recognized the /ext folder in the project.
aimeos issue 2.jpg
aimeos issue 2.jpg (186.59 KiB) Viewed 1680 times

User avatar
aimeos
Administrator
Posts: 7873
Joined: 01 Jan 1970, 00:00

Re: Configure /ext extension to be recognized by Aimeos

Post by aimeos » 15 Dec 2021, 09:48

When you upgrade from a version before 2021.07, you need to remove the ./ext/ai-* folders because they are now installed in ./vendor/aimeos/. Your own extension can still be in ./ext/

https://aimeos.org/docs/latest/laravel/ ... -to-202107
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

User avatar
IvanIgniter
Posts: 58
Joined: 01 Dec 2021, 07:41

Re: Configure /ext extension to be recognized by Aimeos

Post by IvanIgniter » 22 Dec 2021, 01:57

I am not upgrading. I just want to know what to do or configuration to recognized the modification we made in /ext once we install a theme because it is overwriting the existing /ext. Please help what should I need to know or configure to avoid it.

Thank you.

User avatar
aimeos
Administrator
Posts: 7873
Joined: 01 Jan 1970, 00:00

Re: Configure /ext extension to be recognized by Aimeos

Post by aimeos » 22 Dec 2021, 12:22

The best solution is to merge your code from your extension located in ./ext/ into the theme extension you've created. Both have the same structure and this prevents you from having to look at two different places.
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

User avatar
IvanIgniter
Posts: 58
Joined: 01 Dec 2021, 07:41

Re: Configure /ext extension to be recognized by Aimeos

Post by IvanIgniter » 18 Jan 2022, 08:35

Yes that's what I did but why am I seeing that error after installing the extension?

User avatar
aimeos
Administrator
Posts: 7873
Joined: 01 Jan 1970, 00:00

Re: Configure /ext extension to be recognized by Aimeos

Post by aimeos » 18 Jan 2022, 08:37

No extensions with ai- prefix must be in the ./ext/ folder after 2021.07.
Please remove them using:

Code: Select all

rm -rf ext/ai-*
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

User avatar
IvanIgniter
Posts: 58
Joined: 01 Dec 2021, 07:41

Re: Configure /ext extension to be recognized by Aimeos

Post by IvanIgniter » 03 Feb 2022, 02:36

If I do the remove the prefix ai- inside ext folder then this will happen?
b4.jpg
b4.jpg (68.78 KiB) Viewed 1434 times

But if I removed this created file after composer update then I won't get any issues of Extension exists twice?
b3.jpg
b3.jpg (64.44 KiB) Viewed 1434 times

Does it need to be like this that we need to remove that file or I did something wrong?

User avatar
aimeos
Administrator
Posts: 7873
Joined: 01 Jan 1970, 00:00

Re: Configure /ext extension to be recognized by Aimeos

Post by aimeos » 04 Feb 2022, 09:25

Execute this after you've removed the "ai-*" extensions from the ./ext/ folder:

Code: Select all

composer up
Furthermore, install your theme using composer too like described here:
https://aimeos.org/docs/latest/laravel/ ... stallation
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

Post Reply