Categories

Featured templates

OpenCart 1.5.x. How to add new layout and assign a module to a page using it

Mary Gilmore February 12, 2015
Rating: 5.0/5. From 1 vote.
Please wait...

This tutorial shows how to add a new layout and assign a module to a page using it in OpenCart.

OpenCart. How to add new layout and assign a module to a page using it

In order add a new layout and assign a module to a page, you should perform the following:

Step 1: Create a new layout.

Not all pages have layouts by default, f.e. the ‘Specials’ page. So, in order to assign any Module to the Specials page, the Layout has to be created.

To create the Layout (f.e. for the Specials page), please do the following:

  1. Navigate to System -> Design -> Layouts in your Opencart admin panel.

  2. Click the ‘Insert’ button at the top right.

  3. Specify the Layout Name’.

  4. Click the ‘Add Route’ button and add the route for the Layout (f.e.’product/special’ for the ‘Specials’ page).

  5. Click ‘Save’ at the top right:

    OpenCart. How to add a new layout and assign a module to a page using it1

Please refer to this link to learn more on managing Layouts in OpenCart.

Step 2: Assign the Module to the page Layout.

  1. Navigate to Extensions -> Modules.

  2. Select the Module you would like to assign and click ‘Edit’.

  3. In the Layout field please select the Layout for the page you would like to assign the module to.

  4. Click ‘Save’ at the top right:

    OpenCart. How to add a new layout and assign a module to a page using it2

Feel free to check the detailed video tutorial below:

OpenCart. How to add new layout and assign a module to a page using it

Responsive OpenCart Themes
This entry was posted in OpenCart Tutorials and tagged layout, module, opencart. Bookmark the permalink.

Submit a ticket

If you are still unable to find a sufficient tutorial regarding your issue please use the following link to submit a request to our technical support team. We'll provide you with our help and assistance within next 24 hours: Submit a ticket