Tuesday, April 8, 2014

Configuring the Featured module in OpenCart 1.5.5.1 [Describing The Code of Extensions]

In this section, you will see how to configure the Featured module in OpenCart and likewise you can configure other modules as per the requirements:
1.       Log in to the Administrator dashboard, hover over the Extensions tab, and then click on Modules to see a list of modules. If the Featured module is not already installed, click on [Install].
2.       In order to configure a featured product, click on [Edit]. On clicking, the following screen is seen:


3.       Now start typing the name of the products, and it will auto complete and pop-out the list of the name of the products that matches the words with the product name. Choose the product that you want to show at the featured products, and it will show in the list.
4.       Now, to add another product, just type again and choose the right product. By doing this, make the list of featured products. If you do not want the products on the featured list, just click on the red minus sign to the right of the product and the product will be removed from the list.
5.       Now click on the Add Module button and provide the setting for the appearance of the module. Some setting columns are:
°     Limit: This indicates the number of products to show. Although we insert many products, only a limited number of products are shown.
°     Image (W x H) and Resize Type: This option is used to insert the width and height of the image to be shown for the respective layout and position.
                        °    Layout: This is the page where the featured products will be shown.
°     Position: This option indicates the place where the module will be shown.
                        °   Status: This option is shown at the frontend only if it is enabled.
°     Sort Order: This option indicates the order in which it will be displayed at the frontend.
6. Add as many modules as you wish in different layouts and positions and then click on Save.

Exploring the code used in the Featured module

When you click on [Edit] of the installed Featured module, the route module/ featured is called. It means that there are files named featured.php in the module folder in controller. So let's start with listing the files used by the Featured module:
• admin/controller/module/featured.php • admin/language/english/module/featured.php • admin/view/template/module/featured.tpl catalog/controller/module/featured.php • catalog/language/english/module/featured.php • catalog/view/theme/default/template/module/featured.tpl

No comments:

Post a Comment