Stuck at installing aimeos

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!
grumpygamer
Posts: 5
Joined: 16 Mar 2025, 21:42

Stuck at installing aimeos

Post by grumpygamer » 16 Mar 2025, 21:49

Hello as I install laravel via composer it installs version 12.1.1
Then I have a problem when I follow your instructions to install aimeos, because it stops with an error that says my composer requires 12 and it won't work with aimeos.
How do I correct this please?

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

Re: Stuck at installing aimeos

Post by aimeos » 17 Mar 2025, 08:23

The dev-master branch of Aimeos is already prepared for and works with Laravel 12. We will merge that into 2024.10 branch with is currently the stable one this week. At the moment, you can either install Laravel 11 or Aimeos dev-master:

Laravel 11:
composer create-project laravel/laravel:~11.0

Aimeos dev-master for Laravel 12:
composer req aimeos/aimeos-laravel:dev-master
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

grumpygamer
Posts: 5
Joined: 16 Mar 2025, 21:42

Re: Stuck at installing aimeos

Post by grumpygamer » 17 Mar 2025, 12:28

Thank you so much, I'll wait patiently.

I have a couple of more questions to ask.

1. I would like to use aimeos for a multi-tenant mall where we sell digital goods.
Each tenant produces different software.
The tenants should have the ability to upload "sellable items" under one software, so there's one basic software, then they decide to create diverse add-ons (lets call them sellable items again) for that specific software only.
They can make bundles of these sellable items or sell them singularly, but they all appear under one software.
Can aimeos allow to do that?

2. Do you offer paid consultancy?

grumpygamer
Posts: 5
Joined: 16 Mar 2025, 21:42

Re: Stuck at installing aimeos

Post by grumpygamer » 17 Mar 2025, 14:38

Ah this is my composer.json

Code: Select all

"$schema": "https://getcomposer.org/schema.json",
    "name": "laravel/laravel",
    "type": "project",
    "description": "The skeleton application for the Laravel framework.",
    "keywords": [
        "laravel",
        "framework"
    ],
    "license": "MIT",
    "require": {
        "php": "^8.2",
        "laravel/framework": "^12.0",
        "laravel/tinker": "^2.10.1",
        "aimeos/aimeos-laravel": "~2024.10"
    },
    "require-dev": {
        "fakerphp/faker": "^1.23",
        "laravel/pail": "^1.2.2",
        "laravel/pint": "^1.13",
        "laravel/sail": "^1.41",
        "mockery/mockery": "^1.6",
        "nunomaduro/collision": "^8.6",
        "phpunit/phpunit": "^11.5.3"
    },
    "autoload": {
        "psr-4": {
            "App\\": "app/",
            "Database\\Factories\\": "database/factories/",
            "Database\\Seeders\\": "database/seeders/"
        }
    },
    "autoload-dev": {
        "psr-4": {
            "Tests\\": "tests/"
        }
    },
    "scripts": {
        "post-autoload-dump": [
            "Illuminate\\Foundation\\ComposerScripts::postAutoloadDump",
            "@php artisan package:discover --ansi"
        ],
        "post-update-cmd": [
            "@php artisan vendor:publish --tag=laravel-assets --ansi --force",
            "@php artisan vendor:publish --tag=public --ansi",
            "\\Aimeos\\Shop\\Composer::join"
        ],
        "post-root-package-install": [
            "@php -r \"file_exists('.env') || copy('.env.example', '.env');\""
        ],
        "post-create-project-cmd": [
            "@php artisan key:generate --ansi",
            "@php -r \"file_exists('database/database.sqlite') || touch('databa$
            "@php artisan migrate --graceful --ansi"
        ],
        "dev": [
            "Composer\\Config::disableProcessTimeout",
            "npx concurrently -c \"#93c5fd,#c4b5fd,#fb7185,#fdba74\" \"php arti$
        ]
    },
    "extra": {
        "laravel": {
            "dont-discover": []
        }
    },
    "config": {
        "optimize-autoloader": true,
        "preferred-install": "dist",
        "sort-packages": true,
        "allow-plugins": {
            "pestphp/pest-plugin": true,
            "php-http/discovery": true
        }
    },
    "minimum-stability": "dev",
    "prefer-stable": true
}

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

Re: Stuck at installing aimeos

Post by aimeos » 17 Mar 2025, 17:28

grumpygamer wrote: 17 Mar 2025, 12:28 1. I would like to use aimeos for a multi-tenant mall where we sell digital goods.
Each tenant produces different software.
The tenants should have the ability to upload "sellable items" under one software, so there's one basic software, then they decide to create diverse add-ons (lets call them sellable items again) for that specific software only.
They can make bundles of these sellable items or sell them singularly, but they all appear under one software.
Can aimeos allow to do that?
If I understand your requirements correctly, that should be no problem. Is that some sort of marketplace or does each vendor manage all of his products (so no shared products between vendors).
grumpygamer wrote: 17 Mar 2025, 12:28 2. Do you offer paid consultancy?
The Aimeos company offers that: https://aimeos.com/support
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

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

Re: Stuck at installing aimeos

Post by aimeos » 17 Mar 2025, 17:33

grumpygamer wrote: 17 Mar 2025, 12:28 Thank you so much, I'll wait patiently.
Done. You should now be able to install Aimeos 2024.10.4 in an Laravel 12 application.
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

grumpygamer
Posts: 5
Joined: 16 Mar 2025, 21:42

Re: Stuck at installing aimeos

Post by grumpygamer » 21 Mar 2025, 15:59

Thank you very much I tried today and works, however it still hangs just at the end when I run the aimeos setup and it gets to the npm install && npm run dev.

I get this (I did not install livewire):

Code: Select all

ite v6.2.2 building for production...
✓ 1 modules transformed.
✗ Build failed in 12ms
error during build:
[vite:css] Failed to load PostCSS config (searchPath: /Users/andy/Local Sites/aimeos/app): [Error] Loading PostCSS Plugin failed: Cannot find module 'tailwindcss'
Require stack:
- /Users/andy/Local Sites/aimeos/app/postcss.config.js

(@/Users/andy/Local Sites/aimeos/app/postcss.config.js)
Error: Loading PostCSS Plugin failed: Cannot find module 'tailwindcss'
Require stack:
- /Users/andy/Local Sites/aimeos/app/postcss.config.js

(@/Users/andy/Local Sites/aimeos/app/postcss.config.js)
    at load (file:///Users/andy/Local%20Sites/aimeos/app/node_modules/vite/dist/node/chunks/dep-B0fRCRkQ.js:14869:11)
    at async Promise.all (index 0)
    at async plugins (file:///Users/andy/Local%20Sites/aimeos/app/node_modules/vite/dist/node/chunks/dep-B0fRCRkQ.js:14898:12)
    at async processResult (file:///Users/andy/Local%20Sites/aimeos/app/node_modules/vite/dist/node/chunks/dep-B0fRCRkQ.js:14969:14)
file: /Users/andy/Local Sites/aimeos/app/resources/css/app.css
Edit: sorted by running

Code: Select all

npm install -D tailwindcss postcss autoprefixer vite
Edit: there are still some errors, one about Alpine.js not being found, but the store works.

Where can I find a guide on how to install multi-tenancy? Or I can try and sign up as an external mall owner?
Thank you

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

Re: Stuck at installing aimeos

Post by aimeos » 24 Mar 2025, 14:15

grumpygamer wrote: 21 Mar 2025, 15:59 Where can I find a guide on how to install multi-tenancy? Or I can try and sign up as an external mall owner?
If you need a setup with multi-tenancy/multi-vendor pre-configured, install the Aimeos standalone application instead:
https://github.com/aimeos#standalone-application

There are option for enabling multi-vendor features available:
https://github.com/aimeos#multi-vendor
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

grumpygamer
Posts: 5
Joined: 16 Mar 2025, 21:42

Re: Stuck at installing aimeos

Post by grumpygamer » 24 Mar 2025, 18:07

Thanks for that, it worked out of the box.

- Do I have to do something when I have enabled the multi-shop option in the .env file or just refresh the page?
- After disabling locale and allowing users to register for their shop I now get:

Code: Select all

SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry 'en-USD-3' for key 'mshop_locale.unq_msloc_lang_curr_sid'
upon trying to register a new user.

- Does theming change with multishop?

for the record this is my .env file:

Code: Select all

APP_NAME=Aimeos
APP_ENV=local
APP_KEY=base64:1/or4V+QP4dWDRpPg+mSddzk2UbzWLyEdwKLWa+ApiI=
APP_DEBUG=1
APP_VERSION=1
APP_URL=http://localhost:8000
#ASSET_URL=http://localhost:8000
SHOP_MULTILOCALE=
SHOP_MULTISHOP=true
SHOP_REGISTRATION=true
SHOP_PERMISSION=admin
LOG_CHANNEL=stack
DB_CONNECTION=mysql
DB_HOST=localhost
DB_PORT=3306
DB_DATABASE=local
DB_USERNAME=root
DB_PASSWORD=root
BROADCAST_DRIVER=log
CACHE_DRIVER=file
QUEUE_CONNECTION=sync
SESSION_DRIVER=file
SESSION_LIFETIME=120
REDIS_HOST=127.0.0.1
REDIS_PASSWORD=
REDIS_PORT=6379
MAIL_MAILER=smtp
MAIL_HOST=smtp.mailtrap.io
MAIL_PORT=2525
MAIL_USERNAME=
MAIL_PASSWORD=
MAIL_ENCRYPTION=
MAIL_FROM_ADDRESS=
AWS_ACCESS_KEY_ID=
AWS_SECRET_ACCESS_KEY=
AWS_DEFAULT_REGION=us-east-1
AWS_BUCKET=
PUSHER_APP_ID=
PUSHER_APP_KEY=
PUSHER_APP_SECRET=
PUSHER_APP_CLUSTER=mt1
MIX_PUSHER_APP_KEY=
MIX_PUSHER_APP_CLUSTER=
I can't seem to find a guide on multi-tenancy and how to set it up.

Edit: Ok I think it just works out of the box when I switch vendors, but when I register as a new user it sort-of crashes.
I'm not sure if I want to limit this, but can then all regular users just start a shop? I was just thinking it might be better if they requested to open a shop.




I tried adding a payment method as it doesn't seem to have one by default so used the aimeos ai-payments and tried the tips provided.

so after adding:

Code: Select all

"aimeos/ai-payments": "dev-master"

I ran

Code: Select all

omposer update
Loading composer repositories with package information
Updating dependencies
Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - aimeos/aimeos-laravel[2024.10.1, ..., 2024.10.x-dev] require aimeos/aimeos-core 2024.10.* -> satisfiable by aimeos/aimeos-core[2024.10.1, ..., 2024.10.x-dev].
    - You can only install one version of a package, so only one of these can be installed: aimeos/aimeos-core[dev-master, 2024.10.1, ..., 2024.10.x-dev].
    - aimeos/ai-payments dev-master requires aimeos/aimeos-core dev-master -> satisfiable by aimeos/aimeos-core[dev-master].
    - Root composer.json requires aimeos/ai-payments dev-master -> satisfiable by aimeos/ai-payments[dev-master].
    - Root composer.json requires aimeos/aimeos-laravel ~2024.10 -> satisfiable by aimeos/aimeos-laravel[2024.10.1, ..., 2024.10.x-dev].
but it doesn't work

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

Re: Stuck at installing aimeos

Post by aimeos » 25 Mar 2025, 12:51

grumpygamer wrote: 24 Mar 2025, 18:07 - Do I have to do something when I have enabled the multi-shop option in the .env file or just refresh the page?
You may need to run "php artisan aimeos:clear" to clear the Aimeos content cache.
grumpygamer wrote: 24 Mar 2025, 18:07 - After disabling locale and allowing users to register for their shop I now get:

Code: Select all

SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry 'en-USD-3' for key 'mshop_locale.unq_msloc_lang_curr_sid'
upon trying to register a new user.
We can't reproduce that issue. Can you please provide a step by step guide of what you did to reproduce the behavior you've observed?
grumpygamer wrote: 24 Mar 2025, 18:07 - Does theming change with multishop?
No, if you don't install additional themes which can be chosen from in the Settings panel of the admin backend, there's only the default theme.
grumpygamer wrote: 24 Mar 2025, 18:07 for the record this is my .env file:
Seems to be OK.
grumpygamer wrote: 24 Mar 2025, 18:07 Ok I think it just works out of the box when I switch vendors, but when I register as a new user it sort-of crashes.
I'm not sure if I want to limit this, but can then all regular users just start a shop? I was just thinking it might be better if they requested to open a shop.
If SHOP_REGISTRATION is enabled, the shop allows new vendors to register. Customers don't need to register at all and can't do so. Instead, they are asked if they want to get a new account during checkout.
grumpygamer wrote: 24 Mar 2025, 18:07

Code: Select all

"aimeos/ai-payments": "dev-master"
That doesn't work because you need the suitable version for you installed Aimeos version:

Code: Select all

"aimeos/ai-payments": "~2024.10"
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

Post Reply