Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / probably a stupid question.. but how do i remove boxes on category page

probably a stupid question.. but how do i remove boxes on category page

Locked

Views: 1,967

Results 1 to 9 of 9
This thread is locked. New replies are disabled.
4 Aug 2006, 11:03 AM
#1
philpalmer avatar

philpalmer

Zen Follower

Join Date:
Dec 2005
Posts:
105
Plugin Contributions:
0

probably a stupid question.. but how do i remove boxes on category page

I can remove the left / right boxes on the index page but how do I remove say the right hand boxes on category and product pages.
ie :
http://oldersoftware.co.uk/index.php?main_page=index&cPath=14

I'd like to tidy this up and remove boxes which aren't necessary.

I've tried experimenting but I just manage to screw up the index page!

Thanks

4 Aug 2006, 11:41 AM
#2
theoracle avatar

theoracle

Suspended

Join Date:
Aug 2004
Posts:
3,180
Plugin Contributions:
1

Re: probably a stupid question.. but how do i remove boxes on category page

Admin section - > tools -> Layout boxes controller. You can add / remove each sideboxes you'd like on your site layout.

4 Aug 2006, 1:56 PM
#3
philpalmer avatar

philpalmer

Zen Follower

Join Date:
Dec 2005
Posts:
105
Plugin Contributions:
0

Re: probably a stupid question.. but how do i remove boxes on category page

Hi there,
thanks for the reply but it didn't really answer my question.

The layout controller affects the box display for the index page - I was wondering if you can change the boxes on the other pages?

On the index page I want boxes on both left and right but on product pages, I don't need all the boxes on the right - can I remove them? If I use the layout controller this will remove the boxes from the main index page presumably?

Phil

4 Aug 2006, 2:10 PM
#4
theoracle avatar

theoracle

Suspended

Join Date:
Aug 2004
Posts:
3,180
Plugin Contributions:
1

Re: probably a stupid question.. but how do i remove boxes on category page

If I use the layout controller this will remove the boxes from the main index page presumably?

Incorrect. They will be removed from all other pages as well, since this these boxes are part of the whole site layout when using using the layout boxes controller (unless you have modified the codes manually from the modules overrides and templates overrides). :wink2:

4 Aug 2006, 2:31 PM
#5
philpalmer avatar

philpalmer

Zen Follower

Join Date:
Dec 2005
Posts:
105
Plugin Contributions:
0

Re: probably a stupid question.. but how do i remove boxes on category page

I thought that was the case. I'll have a fiddle and see what boxes I can live without!

4 Aug 2006, 7:19 PM
#6
chinchilla2 avatar

chinchilla2

Banned

Join Date:
Dec 2005
Posts:
21
Plugin Contributions:
0

Re: probably a stupid question.. but how do i remove boxes on category page

On your TEMPLATENAME/common/tpl_main_page.php add an exclusion for cPaths to the code up near the top... something like

 if ($current_page_base == 'index' and $cPath >= '') {
  $flag_disable_right = true;
 }

This should eliminate the right hand column altogether for the category content pages.

7 Aug 2006, 6:36 PM
#7
boggled avatar

boggled

Zen Follower

Join Date:
Mar 2006
Location:
Tennessee
Posts:
286
Plugin Contributions:
0

Re: probably a stupid question.. but how do i remove boxes on category page

I've got a similar question.
I have ONE category I would like to remove all the sideboxes from.

Is this possible?

7 Aug 2006, 10:54 PM
#8
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

Re: probably a stupid question.. but how do i remove boxes on category page

Boggled:

I've got a similar question.
I have ONE category I would like to remove all the sideboxes from.

Is this possible?
rework the example above:```
if ($current_page_base == 'index' and $cPath == '33_85') {
$flag_disable_right = true;
}

... where 33_85 is the cPath of your category as shown in the URL when you look at that category in your browser
9 Aug 2006, 1:52 PM
#9
boggled avatar

boggled

Zen Follower

Join Date:
Mar 2006
Location:
Tennessee
Posts:
286
Plugin Contributions:
0

Re: probably a stupid question.. but how do i remove boxes on category page

Thanks Dr. Byte! I'll give that a try and see if I can get it to work. :smile: