Results 1 to 9 of 9
  1. #1
    Join Date
    Dec 2005
    Posts
    105
    Plugin Contributions
    0

    Default 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...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

  2. #2
    Join Date
    Aug 2004
    Posts
    1,590
    Plugin Contributions
    1

    Default 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.

  3. #3
    Join Date
    Dec 2005
    Posts
    105
    Plugin Contributions
    0

    Default 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. #4
    Join Date
    Aug 2004
    Posts
    1,590
    Plugin Contributions
    1

    Default 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).

  5. #5
    Join Date
    Dec 2005
    Posts
    105
    Plugin Contributions
    0

    Default 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!

  6. #6
    Join Date
    Dec 2005
    Posts
    30
    Plugin Contributions
    0

    Default 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

    Code:
     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. #7
    Join Date
    Mar 2006
    Location
    Tennessee
    Posts
    310
    Plugin Contributions
    0

    Default 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?

  8. #8
    Join Date
    Jan 2004
    Posts
    66,364
    Blog Entries
    7
    Plugin Contributions
    274

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

    Quote Originally Posted by 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:
    Code:
     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
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  9. #9
    Join Date
    Mar 2006
    Location
    Tennessee
    Posts
    310
    Plugin Contributions
    0

    Default 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.

 

 

Similar Threads

  1. v154 This is probably a stupid question, but...
    By DK_Scully in forum Templates, Stylesheets, Page Layout
    Replies: 5
    Last Post: 2 Jun 2015, 08:55 PM
  2. a stupid question probably but still want to know
    By mubasher in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 17 Jan 2011, 07:43 PM
  3. Probably a stupid question but how do i back up database?
    By icklebits in forum General Questions
    Replies: 2
    Last Post: 10 Feb 2007, 05:06 PM
  4. Probably a stupid question but how do i back up database?
    By icklebits in forum General Questions
    Replies: 2
    Last Post: 8 Feb 2007, 02:43 AM
  5. Probably a stupid question but how do i back up database?
    By icklebits in forum General Questions
    Replies: 2
    Last Post: 1 Feb 2007, 03:40 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR