Forums / Setting Up Categories, Products, Attributes / Add external links to category menu

Add external links to category menu

Views: 2,553

Results 1 to 6 of 6
28 Aug 2011, 3:54 PM
#1
tsheridan avatar

tsheridan

New Zenner

Join Date:
Feb 2011
Posts:
17
Plugin Contributions:
0

Add external links to category menu

I've searched high and low on this forum and I can't find anything with information on how to add external links to the category menu. Can someone please point me in the right direction? I am wasting hours searching for this information.
Also, please tell me where the file is that needs to be edited. I have seen many posts that say edit tpl_categories.php, but they don't say where that file is, and I can't find it. It's like trying to find a needle in a hay stack.

URL is http://orchidfreak.com/store. Using 1.3.9h.

Thank you!

28 Aug 2011, 4:43 PM
#2
stevesh avatar

stevesh

Black Belt

Join Date:
Feb 2005
Location:
Lansing, Michigan USA
Posts:
19,793
Plugin Contributions:
2

Re: Add external links to category menu

If it's just a matter of finding that file, all files which begin with tpl_ are found in includes/templates/template_default/templates, includes/templates/template_default/sideboxes or includes/templates/template_default/common. The file you mentioned is in the sideboxes folder.

After editing it would go in the corresponding folder in your custom template.

28 Aug 2011, 5:52 PM
#3
tsheridan avatar

tsheridan

New Zenner

Join Date:
Feb 2011
Posts:
17
Plugin Contributions:
0

Re: Add external links to category menu

Well I guess one reason I couldn't find it is because the name is tpl_modules_categories_tabs.php, but thank you for that.

So, how can I go about adding external links to this.....I don't know PHP. I've tried adding this, and it works, except I don't know how to get rid of the contact us, without breaking it. Basically I don't want to call anything from the store, I want to link to pages in the main site.

<?php if (DEFINE_CONTACT_US_STATUS <= 1) { ?>
<li><?php echo '<a href="' . zen_href_link(FILENAME_CONTACT_US, '', 'SSL') . '">' . BOX_INFORMATION_CONTACT . '</a>'; ?></li>
<li><a href="http://orchidfreak.com/company.html">Our Company</a></li>

Can you help me with that at all?

28 Aug 2011, 7:24 PM
#4
stevesh avatar

stevesh

Black Belt

Join Date:
Feb 2005
Location:
Lansing, Michigan USA
Posts:
19,793
Plugin Contributions:
2

Re: Add external links to category menu

I'm not sure if understand exactly what you're trying to do, but if you want links to other-than-Zencart pages to appear in the header in that position, turn off the #navCatTabs in Admin - Configuration - Layout Settings and create EZ pages that use External Links to the desired pages, activating them in the header.

Understand that if your visitors are logged in and stay off the Zencart portion of the site long enough, they will lose their session and any items in their carts.

It's generally a better idea to make Zencart your whole site, using EZ pages for non-store content.

28 Aug 2011, 8:08 PM
#5
tsheridan avatar

tsheridan

New Zenner

Join Date:
Feb 2011
Posts:
17
Plugin Contributions:
0

Re: Add external links to category menu

I don't want to turn them off completely, I just want to add links there. The site was already built and ZenCart was added later after another designer botched the initial shopping cart, so redoing the whole site is not going to happen.

29 Aug 2011, 12:04 AM
#6
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,876
Plugin Contributions:
8

Re: Add external links to category menu

Since you only have four product categories, it would be easiest to turn categories-tabs off and use the ez-pages top navbar, as suggested. You can make ez-page links to your categories as well as the external links you want, all in the same navbar.