Issue with vendor:publish
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: 10
- Joined: 08 Sep 2023, 08:52
Issue with vendor:publish
Hi,
when I created my custom extension I added it ext folded, so the template overrides, but when running composer update (and within this command run vendor:publish) I got an error:. How I could fix this?
when I created my custom extension I added it ext folded, so the template overrides, but when running composer update (and within this command run vendor:publish) I got an error:
Code: Select all
Can't locate path: <\ai-shop\ext\ai-client-htmlthemes/client/html/>
Re: Issue with vendor:publish
Which Aimeos Version do you use?
The package you've created by the extension generator should be unzipped in this directory of your application (since 2021.07):
The package you've created by the extension generator should be unzipped in this directory of your application (since 2021.07):
Code: Select all
./packages/<mytheme>/
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: 10
- Joined: 08 Sep 2023, 08:52
Re: Issue with vendor:publish
I use 2023.x version. When I unzipped the extension into /packages/<mytheme>/ according to this https://aimeos.org/docs/2023.x/developer/extensions/ my extension not working, so I put this in /ext/<mytheme>/ and I was and this works. Do I need to have an extension in 2 folders?aimeos wrote: ↑10 Sep 2023, 08:07 Which Aimeos Version do you use?
The package you've created by the extension generator should be unzipped in this directory of your application (since 2021.07):Code: Select all
./packages/<mytheme>/
- мужыковмужыков
- Posts: 10
- Joined: 08 Sep 2023, 08:52
Re: Issue with vendor:publish
I've tried to unzip extensions into /packages/ folder, but when I run vendor:publish it uses a theme from \vendor\aimeos\ai-client-html\themes\client\htmlaimeos wrote: ↑10 Sep 2023, 08:07 Which Aimeos Version do you use?
The package you've created by the extension generator should be unzipped in this directory of your application (since 2021.07):Code: Select all
./packages/<mytheme>/
Re: Issue with vendor:publish
No, ./ext/ is old and shouldn't be used any more as it doesn't support e.g. views.мужыковмужыков wrote: ↑10 Sep 2023, 09:38 I use 2023.x version. When I unzipped the extension into /packages/<mytheme>/ according to this https://aimeos.org/docs/2023.x/developer/extensions/ my extension not working, so I put this in /ext/<mytheme>/ and I was and this works. Do I need to have an extension in 2 folders?
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
Re: Issue with vendor:publish
Don't forget to run (or however your package is named in its composer.json):мужыковмужыков wrote: ↑10 Sep 2023, 09:45 I've tried to unzip extensions into /packages/ folder, but when I run vendor:publish it uses a theme from \vendor\aimeos\ai-client-html\themes\client\html
Code: Select all
composer req aimeos-themes/mytheme
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: 10
- Joined: 08 Sep 2023, 08:52
Re: Issue with vendor:publish
Thanks for the help, it works now. Have a good dayaimeos wrote: ↑10 Sep 2023, 10:12Don't forget to run (or however your package is named in its composer.json):мужыковмужыков wrote: ↑10 Sep 2023, 09:45 I've tried to unzip extensions into /packages/ folder, but when I run vendor:publish it uses a theme from \vendor\aimeos\ai-client-html\themes\client\htmlAfterwards, go the Settings panel of the admin backend and select your theme.Code: Select all
composer req aimeos-themes/mytheme