Skip to content

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 thoughts on “Editing the Footer in OpenCart”

  1. 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

    1. 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!

Leave a Reply to ujita Cancel reply

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

five × one =