Latest Articles
So far this was never an issue, there were problems with uploading modules via the installer because of the ftp connection but you could allways install ocmods without any issue. However, some .. Read More
People had this issue so many times I thought I would write a bit about it. The  types of issues with opencart's 2.x modification system that I identified so far are: 1. Old Vqmod .. Read More
This small tutorial will show you how to manually add custom links to the default top menu in opencart. If you dont want to go trough all the hustle and would like to be able to completly customize.. Read More
To enable seo urls in opencart navigate in admin to system > settings , edit the store and on the server tab of the store settings you will find "Use SEO urls", set it to yes. So far e.. Read More
All Articles

The new module system in opencart 2.x

In this article I am reffering to the module system present in opencart 2.0.1.0 and up.

Initially opencart 2.0 came with a changed module system, where you added module instances on the module page but to assign the modules to layouts you had to go on the layouts page , edit a layout and add modules to it (unlike opencart 1.5.x where you also selected the layout and position on the module page). While I like this ideea, on the layouts page it was kind of difficult to identify and remember the module instances you created.

Fortunately the new opencart 2.0.1.x came with a new module system, one that I personally like very much. Now instead of adding module instances on the same page, when you edit the main module you get a single form without an add module button. After you fill in the settings and save, a new module instance is created and displayed in the modules list (at extension > modules) as a new module below the parent(main module).

And now you can set a module title for each added module so you can easily find it and remember its instance purpose.You can think of the main module as a template from which you create actual modules to be used on the layouts.

To output the modules to pages you must go in admin to system > design > layouts , edit the layout you want the module to display on. Click add module and in the new form select the module you created , the position and the sort order.

Now it will be easier to manage the modules on a layout because all modules are added on the same page and you dont need to edit more modules to change a layout's structure.

Posted by Flo

Related Articles

Go in admin > extension > modules and you will find listed all the modules installed on your opencart store.  If you want to edit a certain module , you click edit and you will be redirected to the module edit page.  We will take as an example the latest products module:  1. Click edit on latest module.  2. Now you will probably view few rows if you allready added the module to layouts(lets concentrate on adding modules though), so lets say that you want to add the module latest to the information pages.  3. Below the table is a button..
0 comments on this article - view comments

0 Comments To "The new module system in opencart 2.x"

Write a comment

Your Name:


Enter the code in the box below:

Your Comment:
Note: HTML is not translated!