Post by rzeygerman » Sat Nov 29, 2014 3:27 pm

Hello,

I am trying to add a category item to the footer. Modifying templat/common/footer.tpl

Code: Select all

<li><?php $category['category_id']=71?><a href="<?php echo $category['href'] ?>"><?php echo $category['name'] ?></a></li>
Getting this error: "Notice: Undefined Index: Name In footer.tpl"

Thank you for your help

Newbie

Posts

Joined
Sat Nov 29, 2014 3:06 pm

Post by Shopson.se » Sun Nov 30, 2014 12:41 am

Well, you need to define what the category url and name is in the controller file.

If you only want to add a simple link, you can just hard code it. Especially if your store is just in one language.

<li><a href="http://yourstore.com/index.php?route=pr ... th=71">The category name</a></li>

Senaste butik på OpenCart: htm.se som bl.a säljer kvittorullar, kassarullar och cigarettändare


Active Member

Posts

Joined
Sun Apr 22, 2012 2:33 pm

Post by rzeygerman » Sun Nov 30, 2014 6:49 am

Thank you, that's what i ended up doing.

Was hoping to be able to learn to capture in case i would need to easily add more categories.

Newbie

Posts

Joined
Sat Nov 29, 2014 3:06 pm
Who is online

Users browsing this forum: No registered users and 5 guests