overwrite default data setup/site

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
WladimirAvila
Posts: 2
Joined: 18 Mar 2024, 05:51

overwrite default data setup/site

Post by WladimirAvila » 05 May 2024, 17:31

Hi everyone, I´m trying to setup a Spanish multishop site with Aimeos.

When creating a user/site, the file https://github.com/aimeos/aimeos/blob/m ... er.php#L72 calls the ai-core and this extension runs https://github.com/aimeos/aimeos-core/t ... fault/data

I need to populate the database with the same "data" folder, but with my custom folder in Spanish.

How will it be possible to change only this path or do I've to overwrite the whole aimeos-core instead?

Thanks for any help or suggestion, I'm new in Aimeos, and all the detailed answers will be welcome.

I'm using aimeos/aimeos in the latest version over PHP 8.2

Wlad

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

Re: overwrite default data setup/site

Post by aimeos » 06 May 2024, 09:11

You can add own data by creating setup tasks in your own Aimeos extension:
https://aimeos.org/docs/latest/infrastr ... migrations

The default demo data is only added to the first "default" site and only if you use "--option=setup/default/demo:1" when executing the "artisan aimeos:setup" command.
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

Post Reply