Multi-Shops - templates
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!
Always add your Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
Multi-Shops - templates
Hi Aimeos-Team,
is there a way to use different templates for multi-shop scenario?
Thank you!
is there a way to use different templates for multi-shop scenario?
Thank you!
Re: Multi-Shops - templates
Yes, in Laravel based Aimeos shops, you can assign different themes to the sites:
https://aimeos.org/docs/latest/laravel/themes/
In TYPO3, you add use TypoScript to the page tree to use a different settings for the fs-theme virtual filesystem:
https://github.com/aimeos/aimeos-typo3/ ... hp#L58-L63
https://aimeos.org/docs/latest/laravel/themes/
In TYPO3, you add use TypoScript to the page tree to use a different settings for the fs-theme virtual filesystem:
https://github.com/aimeos/aimeos-typo3/ ... hp#L58-L63
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos,
give us a star
If you like Aimeos,

- ЕвгенияСемихова(ИПСемиховаЕ.А.)
- Posts: 41
- Joined: 11 Jan 2025, 09:45
Re: Multi-Shops - templates
Code: Select all
is there a way to use different templates for multi-shop scenario?
You can add your own theme to each individual store (supplier) + separate settings (color and dimension of images)

life is full of many new and interesting things
Re: Multi-Shops - templates
Thank you both, but I expressed too imprecisely. I mean the php templates in templates/client/html.
Re: Multi-Shops - templates
This works when using several Aimeos theme packages for Laravel. Then, you can have different PHP templates too.
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos,
give us a star
If you like Aimeos,

Re: Multi-Shops - templates
But there is no way to do this for TYPO3?
Re: Multi-Shops - templates
Not at the moment but it would be possible if we add a configuration option for that and add the theme name as second argument to all getTemplatePaths() calls here:
https://github.com/aimeos/aimeos-typo3/ ... er/Classes
https://github.com/aimeos/aimeos-typo3/ ... er/Classes
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos,
give us a star
If you like Aimeos,

Re: Multi-Shops - templates
That would be very nice!
I have found a way (hack
) for frontend in Aimeos\Aimeos\Base\View.php before https://github.com/aimeos/aimeos-typo3/ ... ew.php#L51
I have a created my own View.php (like here: https://aimeos.org/docs/latest/typo3/ex ... se-classes)
and changed the template path for the specific extension and theme (shop1,shop2...):
I have found a way (hack

I have a created my own View.php (like here: https://aimeos.org/docs/latest/typo3/ex ... se-classes)
and changed the template path for the specific extension and theme (shop1,shop2...):
Code: Select all
foreach($templatePaths as $path => $templatePath) {
/* multi shop template
* $config['settings']['theme'] e.g. "shop1" or "shop2"
* (typoscript: plugin.tx_aimeos.settings.theme)
*/
if (stripos($path, 'aimeos_custom') !== false && isset($config['settings']['theme'])) {
$templatePaths[$path] = str_replace('templates/client/html', 'templates/'.$config['settings']['theme'].'/client/html', $templatePath);
}
}