Issue with vendor:publish

How to configure and adapt Aimeos based shops as developer
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!
User avatar
мужыковмужыков
Posts: 10
Joined: 08 Sep 2023, 08:52

Issue with vendor:publish

Post by мужыковмужыков » 09 Sep 2023, 13:50

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:

Code: Select all

Can't locate path: <\ai-shop\ext\ai-client-htmlthemes/client/html/>
. How I could fix this?

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

Re: Issue with vendor:publish

Post by aimeos » 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>/
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

User avatar
мужыковмужыков
Posts: 10
Joined: 08 Sep 2023, 08:52

Re: Issue with vendor:publish

Post by мужыковмужыков » 10 Sep 2023, 09:38

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>/
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?

User avatar
мужыковмужыков
Posts: 10
Joined: 08 Sep 2023, 08:52

Re: Issue with vendor:publish

Post by мужыковмужыков » 10 Sep 2023, 09:45

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>/
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

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

Re: Issue with vendor:publish

Post by aimeos » 10 Sep 2023, 10:10

мужыковмужыков 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?
No, ./ext/ is old and shouldn't be used any more as it doesn't support e.g. views.
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

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

Re: Issue with vendor:publish

Post by aimeos » 10 Sep 2023, 10:12

мужыковмужыков 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
Don't forget to run (or however your package is named in its composer.json):

Code: Select all

composer req aimeos-themes/mytheme
Afterwards, go the Settings panel of the admin backend and select your theme.
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

User avatar
мужыковмужыков
Posts: 10
Joined: 08 Sep 2023, 08:52

Re: Issue with vendor:publish

Post by мужыковмужыков » 10 Sep 2023, 10:36

aimeos wrote: 10 Sep 2023, 10:12
мужыковмужыков 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
Don't forget to run (or however your package is named in its composer.json):

Code: Select all

composer req aimeos-themes/mytheme
Afterwards, go the Settings panel of the admin backend and select your theme.
Thanks for the help, it works now. Have a good day

Post Reply