Forums / Customization from the Admin / Can't get rid of categories side bar in my store

Can't get rid of categories side bar in my store

Started by serg on 23 Jul 2012, 10:31 PM · Views: 857

Results 1 to 2 of 2
23 Jul 2012, 10:31 PM
#1
serg avatar

serg

New Zenner

Join Date:
Jan 2012
Posts:
60
Plugin Contributions:
0

Can't get rid of categories side bar in my store

Hey guys, I created a store on a free test server that's why the link seems pretty sketch, but anyways.. when you go to
http://winery.site40.net/store/index.php?main_page=index&cPath=7

you can see that there's a side bar that says CATEGORIES on the left but the categories are also on the main body. how do i get rid of that categories side bar JUST from that page, because i would like for it to still be there when they click on a category so they can navigate easily. I just don't need it on that page. thank you!:D

23 Jul 2012, 11:54 PM
#2
gjh42 avatar

gjh42

Black Belt

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

Re: Can't get rid of categories side bar in my store

This tutorial describes the principles involved.
http://www.zen-cart.com/content.php?231-can-i-turn-off-the-left-or-right-hand-columns-for-some-pages-only

For a single sidebox, you would apply the "if" test to your template override copy of the module file for the sidebox - in this case, /includes/modules/sideboxes/your_template/categories.php. (Copy it from /includes/modules/sideboxes/ before making changes.)

Most sidebox module files have a line near the top similar to
$show_sideboxname = true;
Add the if test immediately after this line. In your case, you want to turn the sidebox off for category id 7 (Wine Store) only.

if ($current_page_base == 'index' and $cPath = '7') {
  $show_categories = false;
}
``` There are many kinds of things you can test depending on the circumstances.