Module Adjustment in OpenCart: Placing featured block at middle

We have seen the featured block on the left column. It will have the same attributes if we place it on the right column also. Featured block can also be placed in the middle column. But then, the layout of the featured block will be different.

1.  Getting started

In the backend of OpenCart, we can change the module position. We need to log in to the admin panel:

Use our stored credentials for admin login. Then, we will change the position of the featured block to the middle section.

2. How to do it…

  1. In the admin panel, go to Extensions | Modules. All the available modules will be shown in the We will see the featured block at the left position.

  1. Click the Edit button to edit the featured block We will see that the position attribute is set to left. We will change it to Home:

  1. We can change the number of products with the Limit For now, we will set it to
  2. See the following figure:

  1. And accordingly, we will select the same number of products from the Products multiple select area:

  1. We have chosen four products from the
  2. We may adjust the sort order of the center module But for now, we will place it at the bottom of the center column on the homepage. So, we place 2 to this field. See the following figure:

  1. Now, we will save our changes by clicking the Save We will see our magic by going to the store front. You can see that our featured block is placed at the middle column on our store homepage.

  1. In the next recipe, we are going to change its layout

3.  See also

Here, we have only shown the placement of the featured block. We can also change the position of the following blocks:

  • Latest products
  • Best seller
  • Special products

Source: Hasan Tahsin (2011), OpenCart 1.4 Template Design Cookbook, Packt Publishing.

Leave a Reply

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