How to setup layout position of module in OpenCart 2

Hey guys, OpenCart 2 has been officially released, So, Here, I have be pointing out for how to setup layout position of module in OpenCart 2.x. OpenCart supports various Modules which allows you to choose various features that best suit your needs.

Install and configure module

  1. Go to Extensions > Modulessetup layout position of module
  2. First of all you have to install the module. To do so, click on Install button. As one demonstration, let us install the bestsellers module.install modules
  3. When the module is installed, press “Edit” button, and you go to settings of module.enabled status of modulesClick on “Save” button in the top right corner when you have completed settings of bestsellers module.

Now, You need to ‘setup position for modules’. Then go to Layouts. You can access Layouts in some ways:

Setup layout position of module

  1. Go to System > Design > Layoutsset layout position
  2. Click on “Edit” button to set the modules position for Home page.edit layout home page
  3. Select the bestsellers modules from Modules option and then Select the Position for layout of bestsellers. Set the sort order to set the order of bestsellers module on the page when other modules are added on the same page.set module position
  4. Click on “Save” button in the top right corner when you have completed settings of layout of Home.
  5. Now you have enabled the bestsellers module and you will be able to view bestsellers module in Home page front End.

In the same way you can continue with “setup layout position” of other modules in Latest OpenCart 2.x version.

2017-06-21T09:36:24+00:00 By |Tutorials|12 Comments

About the Author:

We are create best Quality Responsive OpenCart Themes & Templates with powerful admin option. also Premium eCommerce HTML5 Web Templates with get support. and also Exclusive author of themeforest.

12 Comments

  1. balack October 15, 2014 at 7:05 am - Reply

    How to create module bestseller, i have enable is error
    Warning: Invalid argument supplied for foreach() in /home1/mcnffiys/public_html/opc20/admin/model/setting/setting.php on line 22Warning: Cannot modify header information – headers already sent by (output started at /home1/mcnffiys/public_html/opc20/admin/index.php:84) in /home1/mcnffiys/public_html/opc20/system/library/response.php on line 12

    Please help me

  2. benjamin March 19, 2015 at 7:22 am - Reply

    Hi!
    I tried uninstall and then reinstall module feature, it not appear and i got error: Warning: array_slice() expects parameter 1 to be array, string given in C:xampphtdocsdemocatalogcontrollermodulefeatured.php on line 24Warning: Invalid argument supplied for foreach() in C:xampphtdocsdemocatalogcontrollermodulefeatured.php on line 26
    please help me!
    thanks!

    • Harnish Design March 20, 2015 at 12:56 pm - Reply

      Hello, Some issue & error availalbe in OpenCart 2.0 version. So, Please use latest OpenCart version 2.0.1.1. though, if, will create any issue. So, You need to contact from OpenCart forum http://forum.opencart.com/ Thanks.

  3. pushpendrasingh April 3, 2015 at 6:22 am - Reply

    I just read through the entire article of yours and it was quite good. This is a great article thanks for sharing this informative information. I will visit your blog regularly for some latest post.

  4. Gr3nT April 18, 2015 at 11:29 pm - Reply

    Easy settings.
    Thx.

  5. Rajender Tewatia April 23, 2015 at 11:31 am - Reply

    Hi, how can i call any module anywhere on page like opencart 1.5.x as $this->data[‘featured_products’] = $module = $this->getChild(‘module/featured’, array(
    ‘limit’ => 18,
    ‘image_width’ => 175,
    ‘image_height’ => 239
    ));

  6. That a awesome post you have share here.
    And it really easy to understand with the help of images which you have shared with the post.
    Thanks for such a great post.
    Hope you will keep updating us on latest updates.

  7. Rashid March 31, 2017 at 12:13 pm - Reply

    Thank you alot for this simple and clear instruction i was searching all day but i found here finally…Thxxxx

Leave A Comment