The Aimeos Flow web shop package is a composer based library that can be installed easiest by using Composer.
Make sure that the database is set up and it is configured. For TYPO3 Flow, this is done in your Configuration/Settings.yaml file and must at least include these settings:
host: '<host name or IP address>'
dbname: '<database name'
user: '<database user name>'
password: '<secret password>'
Important: The configuration file format requires each additional indention to be two spaces. Not more, not less and no tabs at all! Otherwise, you will get an error about an invalid configuration file format.
Then add these lines to your composer.json of your Flow project:
Afterwards, install the Aimeos shop package using
To create all required tables and to add the demo data, you need to execute a Flow console command in the base directory of your Flow application:
./flow aimeos:setup --option=setup/default/demo:1
In a production environment or if you don't want that the demo data gets installed, leave out the --option=setup/default/demo:1 option.
You need to import the routes from the Aimeos web shop package into your Configuration/Routes.yaml nice looking URLs. Insert the lines below to the beginning of the Routes.yaml file:
It's important to import the routes from the Aimeos web shop package before the FlowSubroutes lines. If you add it afterwards, the default Flow routes will match first and you will get an error that the requested package/action wasn't found.