Forums / Templates, Stylesheets, Page Layout / Combining Sideboxes?

Combining Sideboxes?

Locked

Views: 2,124

Results 1 to 16 of 16
This thread is locked. New replies are disabled.
26 Mar 2008, 10:02 PM
#1
guynumber6 avatar

guynumber6

New Zenner

Join Date:
Feb 2008
Posts:
13
Plugin Contributions:
0

Combining Sideboxes?

How do I combine the "Information" and "More Information" sidebox links into one Super Informational sidebox?

26 Mar 2008, 10:13 PM
#2
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: Combining Sideboxes?

One of the easier methods to get what you seek is to copy down each current path
i.e.
index.php?main_page=shippinginfo
index.php?main_page=privacy
etc

use and place the ezpages sidebox in the correct location you want and add all the internal links to it

In english.php you can rename this side box to a name you prefer

Lastly turnoff info & more info

Zen-Venom Get Bitten

27 Mar 2008, 9:36 PM
#3
guynumber6 avatar

guynumber6

New Zenner

Join Date:
Feb 2008
Posts:
13
Plugin Contributions:
0

Re: Combining Sideboxes?

I guess that means I have to finally figure out EZ Pages. ;)

Thanks!

27 Mar 2008, 10:31 PM
#5
fairestcape avatar

fairestcape

Totally Zenned

Join Date:
Mar 2008
Location:
Cape Town & London (depends on the season)
Posts:
2,957
Plugin Contributions:
0

Re: Combining Sideboxes?

guynumber6:

I guess that means I have to finally figure out EZ Pages. ;)

Thanks!

This is a LOT easier and a million times faster than hacking the core code to try a combination. I use this method frequently, and it takes just a few minutes to set up a combined sidebox - not only with the "information" and "more information" links - but a lot more besides...

12 Oct 2008, 11:47 AM
#6
ellivir avatar

ellivir

Zen Follower

Join Date:
Sep 2005
Posts:
444
Plugin Contributions:
0

Re: Combining Sideboxes?

fairestcape:

This is a LOT easier and a million times faster than hacking the core code to try a combination. I use this method frequently, and it takes just a few minutes to set up a combined sidebox - not only with the "information" and "more information" links - but a lot more besides...

And what about multi-language... shameful trouble that causes then...

I may be blond but at least I found Zen.

9 May 2010, 1:30 AM
#7
vito avatar

vito

Zen Follower

Join Date:
Mar 2006
Posts:
182
Plugin Contributions:
0

Re: Combining Sideboxes?

kobra:

One of the easier methods to get what you seek is to copy down each current path
i.e.
index.php?main_page=shippinginfo
index.php?main_page=privacy
etc

use and place the ezpages sidebox in the correct location you want and add all the internal links to it

In english.php you can rename this side box to a name you prefer

Lastly turnoff info & more info
Good info. I can see using this for static links like Shipping, Privacy, etc. But what about also combining things like categories, etc. where the links could change from time to time? I obviously can't hard code the links since the list is dynamic. What's the solution?

Vito

9 May 2010, 1:37 AM
#8
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: Combining Sideboxes?

vito:

I can see using this for static links like Shipping, Privacy, etc. But what about also combining things like categories, etc. where the links could change from time to time? I obviously can't hard code the links since the list is dynamic. What's the solution?
There already exists a categories sidebox...
Why do you want to re-invent the wheel?

Zen-Venom Get Bitten

9 May 2010, 1:40 AM
#9
vito avatar

vito

Zen Follower

Join Date:
Mar 2006
Posts:
182
Plugin Contributions:
0

Re: Combining Sideboxes?

Sorry, perhaps I didn't word my question properly.

I added categories and manufacturers sideboxes to my left column. But they are in separate boxes. What I want is ONE box, with both categories and manufacturers in it.

Vito

9 May 2010, 1:53 AM
#10
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: Combining Sideboxes?

vito:

What I want is ONE box, with both categories and manufacturers in it.
The only way that I am aware of to do this easily would be to edit a copy of the category sidebox code adding the code from the manufacturers sidebox to it

Zen-Venom Get Bitten

9 May 2010, 2:23 AM
#11
vito avatar

vito

Zen Follower

Join Date:
Mar 2006
Posts:
182
Plugin Contributions:
0

Re: Combining Sideboxes?

kobra:

The only way that I am aware of to do this easily would be to edit a copy of the category sidebox code adding the code from the manufacturers sidebox to it
Thanks, I think that makes sense. I've been trying to do that for the past hour but can't seem to get it right. Am I correct in assuming that I need to take some code from includes/modules/sideboxes/manufacturers.php and adding it to includes/modules/sideboxes/categories.php (of course, in my CUSTOM folder), or am I hacking the wrong file?

Vito

9 May 2010, 2:58 AM
#12
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: Combining Sideboxes?

Try looking for the core tpl files in
includes/templates/template_default/sideboxes

The tpl's are the "display" files while the module files are the functional files

Zen-Venom Get Bitten

9 May 2010, 3:30 AM
#13
vito avatar

vito

Zen Follower

Join Date:
Mar 2006
Posts:
182
Plugin Contributions:
0

Re: Combining Sideboxes?

Thanks kobra. Only problem is that when looking at those tpl files, I am totally lost on what code I should copy paste over to tpl_categories.php. I tried a couple of times but totally screwed it up and had to start over. Can you tell me what code from tpl_manufacturers.php needs to be copied over?

Vito

9 May 2010, 4:16 AM
#14
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: Combining Sideboxes?

After thinking about what you might be seeking it might be easier for you to rearrange your products by manufacturer and then link them to you existing categories
You might need a 3rd party module to get the arrangement you desire such as categories dressing??

https://www.zen-cart.com/tutorials/index.php?article=216

Zen-Venom Get Bitten

9 May 2010, 1:41 PM
#15
stevesh avatar

stevesh

Black Belt

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

Re: Combining Sideboxes?

Depending on your site's design, and how resistant you might be to changing it, one thing I have done many times is making two or more boxes appear to be one box by removing the header and border, if any, of the lower one and move it up under the other with margin and padding.

As HERE with the Documents and Categories box.

#documentcategories {border-bottom:none;}
#categoriesHeading {display:none;}
#categories {border-top:none; margin-top:-9px;}

11 May 2010, 3:53 AM
#16
gjh42 avatar

gjh42

Black Belt

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

Re: Combining Sideboxes?

As long as you don't need the different sideboxes' content to be mixed together (like manufacturers between categories), this method is by far the easiest and most sensible.
Even if you have fancy rounded corners or background graphics, with a bit of CSS work you can tweak the individual sideboxes to blend together.