Forums / Templates, Stylesheets, Page Layout / Home link in category box

Home link in category box

Locked

Views: 1,096

Results 1 to 4 of 4
This thread is locked. New replies are disabled.
18 Apr 2010, 9:44 AM
#1
mcgill avatar

mcgill

Zen Follower

Join Date:
Aug 2005
Posts:
101
Plugin Contributions:
0

Home link in category box

Hello Zenner peeps
I want to put a home link in the categories box and am asking if anyone has an idea of the best way to do it before I start hacking away at the code:shocking:

Only a fool say's money doesn't matter. No rich man ever starved to death.

18 Apr 2010, 3:21 PM
#2
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Home link in category box

Using your templates and overrides ...

You can edit the template file for the categories sidebox and use:

  $content .= '<a class="category-links" href="' . HTTP_SERVER . DIR_WS_CATALOG . '">' . HEADER_TITLE_CATALOG . '</a>' . "\n";

You will most likely need to adjust that depending on where you add it in the categories sidebox ...

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

18 Apr 2010, 4:10 PM
#3
gjh42 avatar

gjh42

Black Belt

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

Re: Home link in category box

If you use Categories Dressing from Free Addons, you can define a "heading" to appear above any desired category and contain the link code. You can style this "heading" in any way you want.```php
define ('CAT_BOX_HEADING_#','0|0||<a class="category-links" href="' . HTTP_SERVER . DIR_WS_CATALOG . '">' . HEADER_TITLE_CATALOG . '</a>|1');

19 Apr 2010, 6:50 PM
#4
mcgill avatar

mcgill

Zen Follower

Join Date:
Aug 2005
Posts:
101
Plugin Contributions:
0

Re: Home link in category box

Thanks for that :smile:

Only a fool say's money doesn't matter. No rich man ever starved to death.