Results 1 to 3 of 3

Hybrid View

  1. #1
    Join Date
    Apr 2006
    Posts
    113
    Plugin Contributions
    0

    Default Turn Right Hand column off on most pages

    I have a question about turning off the sideboxes on the right hand column for all category and product listing pages.

    I have read the tutorial here:
    https://www.zen-cart.com/tutorials/i...hp?article=233

    it helps but because not clued up on php, havent got it quite right. There are some sort of relevant posts in the forum but most people want to do the opposite to what I want.

    WHAT I WANT TO DO: when people are actually shopping, I want the layout really clean with everything in the right hand column turned off. But if they are just at the home page or viewing an information page, I want these boxes to be visible.

    I have the tpl_main_page.ph copied to an override folder and the following edits:

    if ($current_page_base == 'product_info' and $products_id >= '') {
    $flag_disable_right = true;

    this code takes out the sideboxes on the product listing and product information pages. This is GOOD.

    if (in_array($cPath,explode(",",'')) ) {
    $flag_disable_right = true;

    This is the bit I'm having trouble with - I can add in the individual category numbers to turn the boxes off for a single category (going by the tutorial example) but not sure what to use to turn them off for ALL categories.

    If I cant work this out, I can revert back to my original plan of turning off the right hand column globally which is 95% there but hoping to tweak it a bit. Sorry for such a noob question but hopefully someone can point me in the right direction.

    Site is set to maintenance but can make it visible if required.

    cheers
    Leah

  2. #2
    Join Date
    Apr 2006
    Posts
    113
    Plugin Contributions
    0

    Default Re: Turn Right Hand column off on most pages

    sorry - should have mentioned that I am running new install of 1.3.8a with only minor edits of the default template and these mods (Column Layout, COWOA, Dual Pricing and Zones Tables).

    cheers
    Leah

  3. #3
    Join Date
    Apr 2006
    Posts
    113
    Plugin Contributions
    0

    Default Re: Turn Right Hand column off on most pages

    Disregard - think I worked it out. Didnt realise that I had to enter each category number in - was trying to get them all treated the same way but not possible I think.

    Maybe a better way of doing it but the pages are displaying the way I want for now.

    have used this code:

    if (in_array($cPath,explode(",",'1_6,1_7,1_8')) ) {
    $flag_disable_right = true;

    and will add more categories as I set them up.

    cheers
    Leah

 

 

Similar Threads

  1. v139h Show right hand column on certain pages only
    By barendfaber in forum General Questions
    Replies: 1
    Last Post: 26 Nov 2012, 05:13 PM
  2. New product turns off right hand column?
    By PGlad in forum Basic Configuration
    Replies: 4
    Last Post: 16 Nov 2010, 08:37 AM
  3. Turn off right column completely
    By Vandana in forum General Questions
    Replies: 1
    Last Post: 30 Sep 2009, 09:17 AM
  4. Turn off left/right column for certain pages
    By Berserker in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 27 Feb 2008, 02:55 AM
  5. Right hand column missing on product info pages
    By spbennett in forum General Questions
    Replies: 3
    Last Post: 12 Jul 2007, 07:05 AM

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