2017 © Pedro Peláez
 

typo3-cms-extension aimeos-typo3

image

aimeos/aimeos-typo3

  • Saturday, July 28, 2018
  • by aimeos
  • Repository
  • 7 Watchers
  • 31 Stars
  • 3,000 Installations
  • PHP
  • 2 Dependents
  • 0 Suggesters
  • 130 Forks
  • 2 Open issues
  • 55 Versions
  • 43 % Grown

The README.md

Aimeos logo , (*1)

Aimeos TYPO3 extension

Total Downloads Scrutinizer Code Quality License, (*2)

:star: Star us on GitHub — it motivates us a lot!, (*3)

Aimeos is THE professional, full-featured and high performance e-commerce extension for TYPO3! You can install it in your existing TYPO3 web site within 5 minutes and can adapt, extend, overwrite and customize anything to your needs., (*4)

aimeos-frontend, (*5)

Table Of Content

Installation

This document is for the latest Aimeos TYPO3 22.10 release and later., (*6)

  • LTS release: 23.10 (TYPO3 12 LTS)
  • Old LTS release: 22.10 (TYPO3 11 LTS)

Composer

Note: composer 2.1+ is required!, (*7)

The latest TYPO3 version can be installed via composer. This is especially useful, if you want to create new TYPO3 installations automatically or play with the latest code. You need to install the composer package first, if it isn't already available:, (*8)

php -r "readfile('https://getcomposer.org/installer');" | php -- --filename=composer

To install the TYPO3 base distribution first, execute this command:, (*9)

composer create-project typo3/cms-base-distribution myshop
# or install a specific TYPO3 version:
composer create-project "typo3/cms-base-distribution:^12" myshop

It will install TYPO3 into the ./myshop/ directory. Change into the directory and install TYPO3 as usual:, (*10)

cd ./myshop
touch public/FIRST_INSTALL

Open the TYPO3 URL in your browser and follow the setup steps. Afterwards, install the Aimeos extension using:, (*11)

composer req -W aimeos/aimeos-typo3:~23.7

If composer complains that one or more packages can't be installed because the required minimum stability isn't met, add this to your composer.json:, (*12)

"minimum-stability": "dev",
"prefer-stable": true,

If you want a more or less working installation out of the box for new installations, you can install the Bootstrap package too:, (*13)

composer req bk2k/bootstrap-package

Note: Remember to create a root page and a root template, which includes the Bootstrap package templates! (See also below.), (*14)

Finally, depending on your TYPO3 version, run the following commands from your installation directory:, (*15)

For TYPO3 11+:, (*16)

php ./vendor/bin/typo3 extension:setup
php ./vendor/bin/typo3 aimeos:setup --option=setup/default/demo:1

If you don't want to add the Aimeos demo data, you should remove --option=setup/default/demo:1 from the Aimeos setup command., (*17)

For TYPO3 10:, (*18)

php ./vendor/bin/typo3 extension:activate scheduler
php ./vendor/bin/typo3 extension:activate aimeos

If you experience any errors with the database, please check the Database Setup section below., (*19)

Please keep on reading below the "TER Extension" installation section!, (*20)

DDev

Note: Installation instructions for TYPO3 with ddev or Colima can be found here: TYPO3 with ddev or colima, (*21)

TER Extension

If you want to install Aimeos into a traditionally installed TYPO3 ("legacy installation"), the Aimeos extension from the TER is recommended. You can download and install it directly from the Extension Manager of your TYPO3 instance., (*22)

  • Log into the TYPO3 backend
  • Click on "Admin Tools::Extensions" in the left navigation
  • Click the icon with the little plus sign left from the Aimeos list entry

Install Aimeos TYPO3 extension, (*23)

Afterwards, you have to execute the update script of the extension to create the required database structure:, (*24)

  • Click on "Admin Tools::Upgrade"
  • Click "Run Upgrade Wizard" in the "Upgrade Wizard" tile
  • Click "Execute"

Execute update script, (*25)

Aimeos Distribution

For new TYPO3 installations, there is a 1-click Aimeos distribution available, too. Choose the Aimeos distribution from the list of available distributions in the Extension Manager and you will get a completely set up shop system including demo data for a quick start., (*26)

TYPO3 Setup

Setup TYPO3 by creating a FIRST_INSTALL file in the ./public directory:, (*27)

touch public/FIRST_INSTALL

Open the URL of your installation in the browser and follow the steps in the TYPO3 setup scripts., (*28)

Database Setup

If you use MySQL < 5.7.8, you have to use utf8 and utf8_unicode_ci instead because those MySQL versions can't handle the long indexes created by utf8mb4 (up to four bytes per character) and you will get errors like, (*29)

1071 Specified key was too long; max key length is 767 bytes

To avoid that, change your database settings in your ./typo3conf/LocalConfiguration.php to:, (*30)

    'DB' => [
        'Connections' => [
            'Default' => [
                'tableoptions' => [
                    'charset' => 'utf8',
                    'collate' => 'utf8_unicode_ci',
                ],
                // ...
            ],
        ],
    ],

Security

Since TYPO3 9.5.14+ implements SameSite cookie handling and restricts when browsers send cookies to your site. This is a problem when customers are redirected from external payment provider domain. Then, there's no session available on the confirmation page. To circumvent that problem, you need to set the configuration option cookieSameSite to none in your ./typo3conf/LocalConfiguration.php:, (*31)

    'FE' => [
        'cookieSameSite' => 'none'
    ]

Site Setup

TYPO3 10+ requires a site configuration which you have to add in "Site Management" > "Sites" available in the left navigation. When creating a root page (a page with a globe icon), a basic site configuration is automatically created (see below at Go to the Import View)., (*32)

Page Setup

Download the Aimeos Page Tree t3d file

The page setup for an Aimeos web shop is easy, if you import the example page tree for TYPO3 10/11. You can download the version you need from here:, (*33)

Note: The Aimeos layout expects Bootstrap providing the grid layout!, (*34)

In order to upload and install the file, follow the following steps:, (*35)

Go to the Import View

Note: It is recommended to import the Aimeos page tree to a page that is defined as "root page". To create a root page, simply create a new page and, in the "Edit page properties", activate the "Use as Root Page" option under "Behaviour". The icon of the root page will change to a globe. This will also create a basic site configuration. Don't forget to also create a typoscript root template and include the bootstrap templates with it!, (*36)

Create a root page, (*37)

  • In "Web::Page", right-click on the root page (the one with the globe)
  • Click on "More options..."
  • Click on "Import"

Go to the import view, (*38)

Upload the page tree file

  • In the page import dialog
  • Select the "Upload" tab (2nd one)
  • Click on the "Select" dialog
  • Choose the T3D file you've downloaded
  • Press the "Upload files" button

Upload the page tree file, (*39)

Import the page tree

  • In Import / Export view
  • Select the uploaded file from the drop-down menu
  • Click on the "Preview" button
  • The pages that will be imported are shown below
  • Click on the "Import" button that has appeared
  • Confirm to import the pages

Import the uploaded page tree file, (*40)

Now you have a new page "Shop" in your page tree including all required sub-pages., (*41)

SEO-friendly URLs

TYPO3 9.5 and later can create SEO friendly URLs if you add the rules to the site config: https://aimeos.org/docs/latest/typo3/setup/#seo-urls, (*42)

License

The Aimeos TYPO3 extension is licensed under the terms of the GPL Open Source license and is available for free., (*43)

The Versions

28/07 2018

1.x-dev

1.9999999.9999999.9999999-dev

  Sources   Download

28/07 2018

2016.03.x-dev

2016.03.9999999.9999999-dev

  Sources   Download

28/07 2018

2016.04.x-dev

2016.04.9999999.9999999-dev

  Sources   Download

28/07 2018

2.4.x-dev

2.4.9999999.9999999-dev

  Sources   Download

28/07 2018

2016.01.x-dev

2016.01.9999999.9999999-dev

  Sources   Download

28/07 2018

dev-2.2-LTS

dev-2.2-LTS

  Sources   Download

28/07 2018

2.3.x-dev

2.3.9999999.9999999-dev

  Sources   Download

03/03 2018

2.4.3

2.4.3.0

  Sources   Download

03/03 2018

2.4.5

2.4.5.0

  Sources   Download

03/03 2018

2.3.0

2.3.0.0

  Sources   Download

03/03 2018

16.4.2

16.4.2.0

  Sources   Download

03/03 2018

16.4.3

16.4.3.0

  Sources   Download

03/03 2018

2.4.7

2.4.7.0

  Sources   Download

03/03 2018

16.4.1

16.4.1.0

  Sources   Download

03/03 2018

2.4.6

2.4.6.0

  Sources   Download