Articles Menu
Headlines

Article Search

Search
Latest News
Change the lenght of the product description in opencart listing
I have noticed a lot of people enquiring about this so Ill post  an easy and short solution to it. Just for clarificat... read more
Font Size and Font color missing in opencart 1.5.5 html editor
If you updated your opencart store to latest version 1.5.5 or 1.5.5.1 you might have noticed that in the admin Html Editor (for produc... read more
Adefault2 opencart free template
There is a template design competition going on in the opencart forum. I also created a theme for this competition and subm... read more
Opencart 1.5.5 products filters - How it works
As you can all see , in the new opencart 1.5.5 a new module was added called 'Filter' and can be seen in admin by navigating t... read more
Headlines

Set up Layouts on Multi-Store - for opencart 1.5.x

Set up Layouts on Multi-Store - for opencart 1.5.x

Many people are confused about layouts and specially how to set them up when they are using multi-store.

A layout reffers to a page or a group of pages in your opencart store, for which you can controll the display of your opencart modules.

Layouts can be added and edited in your opencart admin by navigating to system > design > layouts.

The pages that belong to a layout are controlled by routes per store. Example: The 'Home' layout has the route 'common/home' added for the default store.(this home layout exists by default, since you installed/upgraded opencart).The only page that has the route 'common/home' is obviously the homepage, meaning that whatever modules you add to the home layout will only display on homepage of the default store. Another example of a preseted layout is the 'Account' which has the route 'account' for the default store, which as you notice is a one word route(which is actually the first part of more routes like: account/login > for login page, account/register > for the register page, account/account > for the actual account page). In this case the account layout applies to a group of pages, because as explained, more pages have the account route, which means that whatever modules you added to the account layout will display on login page, register page, accoun page, newsletter pages and others > all on the default store.

As mentioned above, all the presetted layouts have routes added for the default store. So if you allready added a new store, the system wont automaticaly set the layouts for it, you have to do it.

You have 2 choices when it comes to setting layouts for multistore, edit the existing layouts and add new route for the new store or create new layouts for the new store.

If you want your new store, to display on its layouts the same modules as the default store does, you need to edit all presetted layouts from in system > design > layouts , and on each layout edit store, click on add route. At store select the new store you added and at route, insert the same route as above is for default store. Example: After you did the mentioned edit for the home layout, if you were to add the module featured to the home layout, the featured module would appear on the both stores on the homepage in the exact same position(of course, each featured module, would only display the products that are assigned to the store it displays on).

If you want your new store to look different that the default one, to have a different configuration for modules than the default one, then you would have to create new layouts for it. Basically , you would duplicate all the existing layouts, only that you would modifies their name (Ex: Home would become Home-Store2 - so you can diferentiate the laayouts per store when you edit the module) and add the same routes as the default ones, only that in the store selector you would select the new store. Why do this? Because in the default store you would be able to set the featured module to homepage while in the new store , you could set only the latest module to homepage. This of course would apply for all modules and all positions.


8 Comments To "Set up Layouts on Multi-Store - for opencart 1.5.x"
Adrian - 30/04/2013

Foarte bun tutorialul, chiar m-a ajutat mult. Acum ma lupt cu un modul de vizitatori caruia nu-i dau de cap ca fiecare magazin sa-mi arate nr.de vizitatori propriu. Acum imi arata aceeasi cifra peste tot. Cum as putea face ca sa am cosul acelasi in toate magazinele, sa nu ma loghez iar daca am trecut in alt magazin? Cu stima!
Sgh77 - 21/11/2012

Be great if you did a youtube clip to show this... Its all quite mind numbing
Flo - 11/11/2012

That has nothing to do with the layouts system. For that you would need to edit the extension's files.
Ali - 11/11/2012

This is really nice information. How can I setup different PayPal information for new/2nd store.
Flo - 13/10/2012

You dont need a plugin, opencart allready has the multistore system.
Ariella - 13/10/2012

Im looking for a OpenCart has multi-store plugin for 1.5 x? Do you have any ?
ariella - 13/10/2012

OpenCart has multi-store for 1.5 x version? I need a plugin for my store to allow multi stores. Please email me palmbeachstar@gmail.com
Jack Jones - 17/09/2012

Thanks Flo, about time someone explains this correctly. Regards

Write a comment

Your Name:


Your Comment: Note: HTML is not translated!

Enter the code in the box below:



Opencart templates © 2013