Prestashop 1.6 Theme Hints: Columns Management

Photo of Aliaksandr Simanchyk
Aliaksandr Simanchyk
Lead Full Stack Developer
May 21, 2014 1024 Updated: July 3, 2025 8:30
Prestashop 1.6 Theme Hints: Columns Management

Prestаshоp version 1.6 allows you to manage theme columns directly from your backoffice. In this article we will describe how this algorithm functions and will provide a code sample, which will output one column on the Manufacturer controller page and also when viewing goods of a certain brand, although the theme configuration will be set to 2 columns. This task we received from one of our customers, who had provided us with different versions of design for one and the same Manufacturer controller.

Theme columns are managed under the following address: Preferences->Themes

1prestashop 1 6 theme hints columns management

You can also manage the columns for each controller separately:

2prestashop 1 6 theme hints columns management

The settings are stored in the database in the following table: ps_theme_meta:

3prestashop 1 6 theme hints columns management

Where id_theme_metа is the id of the settings:

id_theme – theme ID (the data is stored in the table ps_meta, see the picture below)

id_meta – controller ID

left_column – left column setting

right_column – right column setting

4prestashop 1 6 theme hints columns management

Prestashop uses the class Theme to work with the store theme.  You can see the list of available properties and methods in  this file: classes/Theme.php

The following properties are responsible for setting up column rendering in the controllers: display_column_left and display_column_right. For one of our customers we have overriden the MаnufасturerCоntrоller in order to modify the behavior of the columns settings when all products of a certain manufacturer are being viewed. So now global controller settings are configured in the admin panel, but if you  view a particular brand this enables the custom logic which turns off the columns:

Andrey_Dubina
Partner With Us Let's discuss how to grow your business. Get a Free Quote.
Talk to Andrey

Andrey Dubina
Partner With Us Looking for a partner to grow your business? We are the right company to bring your webstore to success. Talk to Andrey

2 Comments

  1. Sérgio Martins,

    To do this you need to configure your “index” page properly.

  2. How can i disable left column only on home page?
    My Prestashop is 1.6.0.6

Post a new comment