Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / Need to add two extra category sideboxes

Need to add two extra category sideboxes

Views: 1,271

Results 1 to 6 of 6
22 Jan 2011, 5:42 AM
#1
ekon79 avatar

ekon79

New Zenner

Join Date:
Jan 2011
Posts:
29
Plugin Contributions:
0

Need to add two extra category sideboxes

Hello,
I am using Zencart v1.3.9. The issue that I am trying to resolve right now is that I want to add two extra category sideboxes. I have researched old threads, and found this:

"You can fake the sidebox out and use the Document Products as the other category sidebox by marking the Categories as Document General and Products General ..."

but since I am new to zen cart, I am not sure how to even go about it. Where is that Document Products located at? I searched under tools, under Catalog or Configuration and I don't see it.

Plus, will that only allow me to add one extra category sidebox? what if I wanted two more?

Thanks for your time.

22 Jan 2011, 8:39 PM
#2
coolcarpartsonline avatar

coolcarpartsonline

Totally Zenned

Join Date:
Feb 2008
Posts:
1,386
Plugin Contributions:
0

Re: Need to add two extra category sideboxes

There is a module for separate categories sideboxes in the download section.

22 Jan 2011, 11:48 PM
#3
ekon79 avatar

ekon79

New Zenner

Join Date:
Jan 2011
Posts:
29
Plugin Contributions:
0

Re: Need to add two extra category sideboxes

Hi CoolCarPartsOnline,

Can you tell me which module exactly are you referring to? I have been searching but I am not quite sure I have found it yet.

Really what I am looking to do is that I want to display a categories sidebox depending on what the user has clicked at the top of the page. Say for example I have a top bar in my home page with ezpage links that say "Cats Dogs Horses", then if the user clicks on Cats, I will display a category sidebox with cat related products the user can choose from. However, if the user clicks on Horse, then I would like to show a category sidebox with Horse related products and not show the cat category box.

I created the ezpage links, and I was able to followed the suggestion where I could create another sidebox if I added the products restricted to Document General, but this is not going to satisfy my current requirements because
a- I don't know (and I have been searching hard) how to just display the cat sidebox if the user clicks on the Cats (the cats link is an ezpage at a top bar of my website) and not display the Horse sidebox.
b- I don't know how to create a third category sidebox for the Dogs.

Please any help would be great, I am still trying to search for answers in the forums.

23 Jan 2011, 5:06 AM
#4
coolcarpartsonline avatar

coolcarpartsonline

Totally Zenned

Join Date:
Feb 2008
Posts:
1,386
Plugin Contributions:
0

Re: Need to add two extra category sideboxes

What you are referring to would need adding if statements to the page header and set rules for sidebox display. I am not sure it is something I can explain to you on here. It would take more details and testing different if statements.

Separate sidebox categories would allow you to display top categories in separate sideboxes instead of the standard one sidebox for all top categories.

23 Jan 2011, 5:22 AM
#5
ekon79 avatar

ekon79

New Zenner

Join Date:
Jan 2011
Posts:
29
Plugin Contributions:
0

Re: Need to add two extra category sideboxes

Alright, I was going to post what I am doing, I downloaded the blank sidebox addon and I am going to create 6 variations of that add-on with 6 customized sql queries that extract from the database the particular categories that I want, thereby creating 6 customized sideboxes, since I need two categories sideboxes per page for cats dogs and horses.

Now, is there a way that I can tell by some global variable or something like that what page was the one that called me? Because I am thinking if I knew that the "horse" page was the link that got clicked at any given time, then I can modify the includes\modules\sideboxes\blank_sidebox.php with an if statement that asks if ($variableXY = "horse") then show the sidebox.

I am trying to follow the index.php from the beginning to see if I can figure out, but there are a lot of code lines in there....

Please do give me any help you can give me, I'll try my best to understand you...

23 Jan 2011, 4:12 PM
#6
keneso avatar

keneso

Totally Zenned

Join Date:
May 2009
Posts:
1,273
Plugin Contributions:
3

Re: Need to add two extra category sideboxes

I might be wrong as I ain't a coder, posting just to give another angle of approach, and if feasible you figure out how ...

If you don't have subcategories, you might try to use the code of the subcategories in the sidebox, so when you click on the "dogs" category, the "dogs" subcategory is listed in your sidebox?