Editing the Footer in OpenCart

OpenCart is a beautiful platform for a client to get access to a totally free software bundle that powerfully and quickly gets them their own store front.

It comes with a bunch of loaded feathers, but sometimes we need to remove a few of the features, like the menu items in the footer area.

We came across a problem where the Extras section hadbrands, which we didn’t want. So, to remove this it was kind of a hack around what should really be a feature in the front end, but it worked anyways.

To edit it, we need to edit the footer.tpl file of the theme you’re using. If this is the default theme, it will be found:

/catalog/view/theme/default/template/common/footer.tpl

Note:If you have a different theme,defaultabove will be changed for the theme name.

Now that we have footer.tplopen, we can edit the Extra section. To keep with good programming, and so that you can reverse your steps, I highly suggest you quote out what you don’t want, rather than delete it. Ours then looks like this:

<h3><?php echo $text_extra; ?></h3>
<ul>
<!– <li><a href=”<?php echo $manufacturer; ?>”><?php echo $text_manufacturer; ?></a></li> –>
<li><a href=”<?php echo $voucher; ?>”><?php echo $text_voucher; ?></a></li>
<li><a href=”<?php echo $affiliate; ?>”><?php echo $text_affiliate; ?></a></li>
<li><a href=”<?php echo $special; ?>”><?php echo $text_special; ?></a></li>
</ul>

You can see here how we didn’t want to have manufacturer in our Extrasmenu.

Hope this helps.

 

Big thanks to the OpenCart community for this tip.

4 Comments

  1. KidKime August 7, 2013 4:28 am  Reply

    Hello,

    Im really new to opencart. Is this a good idea, what happens if they release an update to this file? Will it be overwritten

    • ned August 7, 2013 7:51 pm  Reply

      KidKime, as with most CMS systems, the upgrade will most likely always cause you a few glitches and it is good of you to worry about this. However, editing the footer template file is with regards to the default theme of OpenCart. So, with this in mind – though do not think this is the final, definitive answer to the question – one would think that upgrading the OpenCart engine would not cause any updates to this file. However, there may come a time when the theme is updated – which may or may not be at the same time the engine is upgraded – which could cause this to happen. But, luckily you’ll have this article to refer to, and easily change it back!

  2. ujita September 19, 2013 5:30 am  Reply

    hello, i am new to opencart so will you tell me how to give link a html page into the footer of opencart???
    thank you…

    • ned October 16, 2013 12:26 pm  Reply

      Hello. To add an HTML link to your footer you must use the code: Name To Display as Link

      Add this into the section of the footer you desire.

      Adding: target=”_blank” <- is good practice because it opens up the link in a new tab.

Leave a Reply

11 + 5 =