CoreShop Stores Theming
CoreShop Stores are designed to allow different Themes. Therefore you can have a true Multi-Store Environment with different Themes.
Example
Let's create a new theme called sports
:
- Create a store and type
sports
into thetemplate
field - Create a folder called
themes
in theapp/Resources
directory - Inside the
themes
directory create a new folder and name itsports
- Finally add a folder called
CoreShopFrontendBundle
inside your new theme directory
Every view request inside the given store context will search for a view file in the app/Resources/themes/sports/CoreShopFrontendBundle/*
directory.
So for example you want to have a different homepage you will need to create a file: app/Resources/themes/sports/CoreShopFrontendBundle/Index/index.html.twig
.
When the customer then visits your website on store sports
, CoreShop will load the new index.html.twig file.