Override checkout template-header

Questions around the TYPO3 integration and plugins
Forum rules
Always add your TYPO3, Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
Frosti85
Posts: 1
Joined: 15 Nov 2022, 10:27

Override checkout template-header

Post by Frosti85 » 15 Nov 2022, 10:41

Hello, i would like to style my checkout and basket UI.
I followed the instructions in the documentation, but i am struggeling to get any result.
The standard functionallity is working, but the override is not.

Environment: Typo3 11.5.17, PHP 7.4

Steps done:
  • Created and installed an extension, according to the documentation
  • Created subfolder structure and copied the original checkout source files from vendor/aimeos/ai-client-html into

Code: Select all

./aimeos_ext/Resources/Private/Extensions/aimeos_ext/templates/client/html/checkout/standard
  • Renamed the header.php to header-ext.php
  • Inserted config in the pi_flexform of the checkout-plugin

Code: Select all

client.html.checkout.standard.template-header = checkout/standard/header-ext
  • Commented out the link-tags in the file to prevent css loading
  • added a html comment to be displayed
It seems like it is not possible to create and switch a frontend-theme in Typo3, so this approach with overriding and referencing in the pi_flexform is necessary.

I just want to override the css (prevent the aimeos standard css) in the frontend. What am i doing wrong?
Es kann auch in Deutsch geantwortet werden :-)

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

Re: Override checkout template-header

Post by aimeos » 16 Nov 2022, 10:08

As your path in the template directory of your extension is "templates/client/html/checkout/standard", the correct configuration is relative to this directory:

Code: Select all

client.html.checkout.standard.template-header = client/html/checkout/standard/header-ext
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

Post Reply