Zen Cart Logo
Forums / General Questions / Add extra to the Catagories Side Box that isn't Categories

Add extra to the Catagories Side Box that isn't Categories

Locked

Views: 1,127

Results 1 to 5 of 5
This thread is locked. New replies are disabled.
3 Jul 2009, 8:11 PM
#1
beyre avatar

beyre

Zen Follower

Join Date:
Feb 2009
Posts:
422
Plugin Contributions:
0

Add extra to the Catagories Side Box that isn't Categories

Client desperately wants another button in the Categories section of the side box - but it isn't a category itself ... it's an information page.

Can I add the url path to that page in the categories box template?
And if so, where in the code, since I'm not proficient in php.

Client considers this urgent.

3 Jul 2009, 8:28 PM
#2
kiddo avatar

kiddo

Totally Zenned

Join Date:
Jul 2006
Location:
SF Bay Area
Posts:
837
Plugin Contributions:
1

Re: Add extra to the Catagories Side Box that isn't Categories

In your tpl_categories.php file, you can add extra content by putting it toward the bottom of the file just above the line like:

$content .= '</div>';

add something like:

$content .="YOUR EXTRA CONTENT";
3 Jul 2009, 8:29 PM
#3
beyre avatar

beyre

Zen Follower

Join Date:
Feb 2009
Posts:
422
Plugin Contributions:
0

Re: Add extra to the Catagories Side Box that isn't Categories

Sorry for the initial post, but wanted to have the question asked in case I couldn't figure it out for myself.

Solution:

tpl_categories.php

Line 94 is ```
$content .= '</div>';


Just BEFORE that line, do:

$content .= '<a href="http://www.theURL.com/path.html" class="category-top">Name of Page</a>';


If I understand things, any new categories will be added before this last button I created - ie, this button will always be at the bottom of the list.
3 Jul 2009, 8:45 PM
#4
beyre avatar

beyre

Zen Follower

Join Date:
Feb 2009
Posts:
422
Plugin Contributions:
0

Re: Add extra to the Catagories Side Box that isn't Categories

Sorry for the delay in responding, kiddo - boss was on the phone, was explaining what I did to solve the problem.

LOL - we were posting at the same time, with the same solution.

Thanks so much for taking the time to respond - much appreciated!

Hopefully, this thread will help another down the road.

31 Aug 2009, 6:59 PM
#5
beyre avatar

beyre

Zen Follower

Join Date:
Feb 2009
Posts:
422
Plugin Contributions:
0

Re: Add extra to the Catagories Side Box that isn't Categories

I keep searching back for this post, as it has come in quite handy several times now.

I even did a "split" in the 'categories' box, to make it look like 2 different sections ... because the bottom section goes to places outside of the cart. I'm only bringing this up to show the possibilities of this little design hack.

http://www.officefurnituresaltlakecity.com/office-furniture/

Granted, the 'bottom section' (New Office Furniture) doesn't look EXACTLY like the original top section (now renamed Preowned Office Furniture, which was originally Categories). ... but close enough for now.