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…
- 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.
- 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:
- We can change the number of products with the Limit For now, we will set it to
- See the following figure:
- And accordingly, we will select the same number of products from the Products multiple select area:
- We have chosen four products from the
- 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:
- 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.
- 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.