Decorators / Components for selected themes

Help for integrating the Laravel package
Forum rules
Always add your Laravel, Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
krzysiekp
Posts: 85
Joined: 05 Nov 2021, 16:19

Decorators / Components for selected themes

Post by krzysiekp » 09 May 2022, 17:04

How to do to create different decorators for different shops. It is a multishop application.
For example. For one shop I have one decorator:

Code: Select all

client/html/catalog/lists/decorators/global = ['Mydecorator']
but for another shop I have:

Code: Select all

client/html/catalog/lists/decorators/global = ['MydecoratorNew']
How to configure it ?

And for example

Code: Select all

packages\new-theme\client\html\templates\checkout\confirm\body-standard.blade.php
will change in the second store.
Is it possible to set one theme for two stores, but in one of them the layout

Code: Select all

packages\new-theme\client\html\templates\checkout\confirm\body-standard.blade.php
will change ?

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

Re: Decorators / Components for selected themes

Post by aimeos » 11 May 2022, 06:28

krzysiekp wrote: 09 May 2022, 17:04 How to do to create different decorators for different shops. It is a multishop application.
For example. For one shop I have one decorator:

Code: Select all

client/html/catalog/lists/decorators/global = ['Mydecorator']
but for another shop I have:

Code: Select all

client/html/catalog/lists/decorators/global = ['MydecoratorNew']
How to configure it ?
You can use the Option/Value table for setting different configuration options per site in the Locale > Site panel, e.g.:

Code: Select all

client/html/catalog/lists/decorators/global/MydecoratorNew : MydecoratorNew
krzysiekp wrote: 09 May 2022, 17:04 And for example

Code: Select all

packages\new-theme\client\html\templates\checkout\confirm\body-standard.blade.php
will change in the second store.
Is it possible to set one theme for two stores, but in one of them the layout

Code: Select all

packages\new-theme\client\html\templates\checkout\confirm\body-standard.blade.php
will change ?
If the templates should be different, the best option is to use two different themes. If it's only one template, you can use the Option/Value table for the site to set an alternative template, e.g. for a "body-custom.blade.php":

Code: Select all

client/html/templates/checkout/confirm/template-body : checkout/confirm/body-custom
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

Post Reply