Categories

Featured templates

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

Harry Baker August 29, 2016
Rating: 5.0/5. From 2 votes.
Please wait...

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

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 the pages have layouts by default, f.e. the “Search” 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 Search page), please, do the following:

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

  2. Click the Add new button at the top right. Specify the Layout Name.

  3. Click the Add Route button and add the route for the Layout (f.e.’product/search’ for the ‘Search’ page).

  4. Click Save at the top right:

    OpenCart_2.x._How_to_add_new_layout_and_assign_a_module_to_a_page_using_it1

Step 2: Assign the Module to the page’s Layout.

  1. Click on the Add module button.

  2. Select the module you would like to assign and choose its position.

  3. Click Save at the top right:

    OpenCart_2.x._How_to_add_new_layout_and_assign_a_module_to_a_page_using_it2

This is the end of the tutorial. Feel free to check the detailed video tutorial below:

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

You may be looking for more website building options, so view Best OpenCart Themes 2017.

OpenCart Templates
This entry was posted in OpenCart Tutorials and tagged getModule, layout, module, Opencart2. 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