HomeTutorialsHow to set layout position of module in OpenCart 2

How to set layout position of module in OpenCart 2

How to set layout position of module in OpenCart 2

Hey guys, OpenCart 2 has been officially released, So, Here, I have be pointing out differences between OpenCart 1.5 and 2.0 for select module layout position feature.

OpenCart supports various Modules which allows you to choose various features that best suit your needs.

Go to Extensions > Modules

modules

First of all you have to install the module. To do so, click on Install button.

install-modules

As one demonstration, let us install the bestsellers module. Click on “Install” button.

When the module is installed, press “edit” button, and you go to settings of module.

enabled-status-of-modules

Click on “Save” button in the top right corner when you have completed settings of bestsellers module.

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

Go to System > Design > Layouts

set-layout-postion

Click on “Edit” button to set the modules position for Home page.

edit-layout-page

Select the bestsellers modules from Modules option.

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-postion

Click on “Save” button in the top right corner when you have completed settings of layout of  Home.

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 installation and setting of other modules in Latest OpenCart 2.0 version.

Harnish Design

I make Clean, smooth and Creative Theme & Template Web Designer. and also Exclusive author of themeforest.

10 comments

  1. 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. 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:\xampp\htdocs\demo\catalog\controller\module\featured.php on line 24Warning: Invalid argument supplied for foreach() in C:\xampp\htdocs\demo\catalog\controller\module\featured.php on line 26
    please help me!
    thanks!

  3. 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. Rajender Tewatia

    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
    ));

  5. 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.

Leave a Reply

Your email address will not be published. Required fields are marked *

*

Please type the characters of this captcha image in the input box

Please type the characters of this captcha image in the input box

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Back To Top