Information pages showing in Opencart Footer – how to manage which ones are listed

Age of Article Warning:
This article was originally published 65 months ago. The information, tips and techniques explained may outdated. Examples shown on this page may no longer work. Please consider this when viewing the below content.

opencart footer hide information pages

How do I remove, hide, control information pages showing up in the Opencart footer?

In earlier versions of Opencart the way to stop the listing of certain information pages in the footer, was to give the page a “sort-order” of “-1”.

However it seems that this functionality has been removed from later versions. This VQMOD file will give you back control of this option. In addition to this you will also get the benefit of being able to customise the file further to suit your needs.

Of course firstly you must have VQMOD installed on your Opencart website. Then you need to download the file below and unzip the folder, then FTP the XML file to your vqmod > xml folder on your website. [wdsm_ad id=”1352″ class=” ” ]

The XML files looks for the catalog/controller/common/footer.php file, searches out the line for adding information page list to the footer:

foreach ($this->model_catalog_information->getInformations() as $result) {

and then inserts an if statement that looks for whether “-1” has been entered in the “sort-order” field in the information page editing screen:

if ( $result['sort_order'] != -1 ) {

To customise further, perhaps you don’t have to just use “-1”. Maybe you would prefer to still use sort order properly, then you could just start all the information pages, that you don’t want listed on your Opencart footer’s information pages list, with numbers greater than 50.
So you would change the line in the VQMOD XML file that says :

if ( $result['sort_order'] != -1 ) {

to:

if ( $result['sort_order'] >= 50 ) {

Then it’s just a matter of adding sort-order of 50,51,52,etc to the Opencart information pages that you don’t want shown in the footer.

Be sure to check that file has worked with your Opencart theme and version of Opencart. If you are familiar with using the VQMOD cache, you can FTP the catalog_controller_common_footer.php file down to your computer, open it up and check that the required line is in the correct location. Also of course you would view your website to ensure the changes are reflected.

3 thoughts on “Information pages showing in Opencart Footer – how to manage which ones are listed

  1. Hey, you need to resolve an issue on this website.
    When attempting to download the mod, the pop up kept dropping out of screen and I could not click the submit button.

    So frustrating !

    Otherwise, great article

    • Hi Anon,
      have checked the download, not seeing any issues at moment with access. The VQMOD XML file I have used on OpenCart sites before with success, can you check the catalog_controller_common_footer.php from the VQMOD cache to make sure that the correct lines are being replaced? What version of Opencart are you using? I haven’t tested it in all versions.
      kind regards, David

Comments are closed.