If this tutorial is not what you were looking for, you still have any questions, suggestions or concerns - feel free to let us know. Please help us to serve you better!

Your Name

Your Email

Your Message (required)

captcha

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

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.