[solved] new extension not working

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!
ai-otheriz
Posts: 3
Joined: 27 Apr 2020, 06:08

[solved] new extension not working

Post by ai-otheriz » 27 Apr 2020, 06:38

Dear aimeos,

i already create my own extension, then registering it on composer.json

Code: Select all

"autoload": {
        "classmap": [
            "ext/<yourext>/lib/custom/src",
            "ext/<yourext>/controller/common/src",
            "ext/<yourext>/controller/frontend/src",
            "ext/<yourext>/controller/jobs/src",
            "ext/<yourext>/client/html/src",
            "ext/<yourext>/client/jsonapi/src",
            "ext/<yourext>/admin/html/src",
            "ext/<yourext>/admin/jsonadm/src"
        ]
    },
    
execute "composer dump-autoload"
execute "php artisan aimeos:cache"

copy from "ai-client-html/client/html/templates/" to "myExt/client/html/templates"

but the website still referring to original template..am i missing some step ?

this is my setup

Code: Select all


    "require": {
        "php": "^7.2",
        "fideloper/proxy": "^4.0",
        "laravel/framework": "^6.0",
        "laravel/tinker": "^1.0",
        "laravel/ui": "^1.0",
        "aimeos/aimeos-laravel": "~2019.10",
        "aimeos/ai-container": "dev-master"
    }
    
Last edited by ai-otheriz on 28 Apr 2020, 06:47, edited 1 time in total.

ai-otheriz
Posts: 3
Joined: 27 Apr 2020, 06:08

[solved] new extension not working

Post by ai-otheriz » 28 Apr 2020, 06:46

I already solved it,

Unclear documentation should be trouble for the newbie user of this framework.(i also found it on other aimeos documentation)
I follow the document here https://aimeos.org/docs/Developers/Create_an_extension

at the first time i thought some of the text was just "explanation" not "how to instruction"
so the step is..
1. Create your own extension here https://aimeos.org/extensions/
2. Place your downloaded extension into folder "./ext/<your Ext>"
3. Copy all needed folder from original folder ai-****..to your extension folder(not all folder...folder list and location is on documentation)..
4. Copy manifest.php from any original folder(pick any)
5. Change all value on your copied manifest.php using the value on the documentation(depend, config, include,..etc)
Done..

I hope this help....

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

Re: [solved] new extension not working

Post by aimeos » 28 Apr 2020, 07:06

Usually, you don't have to copy and adapt the manifest.php file.
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

ai-otheriz
Posts: 3
Joined: 27 Apr 2020, 06:08

Re: [solved] new extension not working

Post by ai-otheriz » 28 Apr 2020, 08:31

I want to try to install aimeos "2020.4"

but the extension creator max version only "2019.x"

is it OK to use that extension version ?

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

Re: [solved] new extension not working

Post by aimeos » 28 Apr 2020, 22:12

We've updated our web site so you can create 2020 versions now:
https://aimeos.org/extensions
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

mahmoud
Posts: 27
Joined: 27 Mar 2020, 22:01

Re: [solved] new extension not working

Post by mahmoud » 11 Jun 2020, 01:02

Hello
the content of the folder: devoext (new extension created https://aimeos.org/extensions 11/06/2020)
extension.JPG
extension.JPG (12.28 KiB) Viewed 10664 times
the folder html does not exist in the admin folder
composer.json

Code: Select all

   "classmap": [
            "database/seeds",
            "database/factories",
            "ext/devoext/lib/custom/src",
            "ext/devoext/controller/common/src",
            "ext/devoext/controller/frontend/src",
            "ext/devoext/controller/jobs/src",
            "ext/devoext/client/html/src",
            "ext/devoext/client/jsonapi/src",
            "ext/devoext/admin/html/src",
            "ext/devoext/admin/jsonadm/src"
        ]

Code: Select all

composer dump-autoload

Code: Select all

[RuntimeException]
  Could not scan for classes inside "ext/devoext/admin/html/src" which does not appear to be a file nor a folder
.

thank you

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

Re: [solved] new extension not working

Post by aimeos » 11 Jun 2020, 07:23

No, it's "admin/jqadm/src"
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

User avatar
parmonov98
Posts: 33
Joined: 24 Sep 2020, 12:12

Re: [solved] new extension not working

Post by parmonov98 » 06 Oct 2020, 13:05

aimeos wrote: 11 Jun 2020, 07:23 No, it's "admin/jqadm/src"
please, fix this in extenstion generator too.

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

Re: [solved] new extension not working

Post by aimeos » 06 Oct 2020, 13:43

That's not a problem of the generated extensions.
The composer.json shipped with the generated extensions are fine.
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

Oscar
Posts: 13
Joined: 16 Jul 2021, 14:51

Re: [solved] new extension not working

Post by Oscar » 17 Jul 2021, 10:34

ai-otheriz wrote: 28 Apr 2020, 06:46 I already solved it,

Unclear documentation should be trouble for the newbie user of this framework.(i also found it on other aimeos documentation)
I follow the document here https://aimeos.org/docs/Developers/Create_an_extension

at the first time i thought some of the text was just "explanation" not "how to instruction"
so the step is..
1. Create your own extension here https://aimeos.org/extensions/
2. Place your downloaded extension into folder "./ext/<your Ext>"
3. Copy all needed folder from original folder ai-****..to your extension folder(not all folder...folder list and location is on documentation)..
4. Copy manifest.php from any original folder(pick any)
5. Change all value on your copied manifest.php using the value on the documentation(depend, config, include,..etc)
Done..

I hope this help....
Thanks ai-otheriz!!!
i had same problem and solved with your tips!! :)

Post Reply