Results 1 to 5 of 5
  1. #1
    Join Date
    Jun 2007
    Location
    Milton Keynes UK
    Posts
    153
    Plugin Contributions
    0

    Default How do I disable certain columns in for certain pages?

    Hi Guys
    Is there a way to disable left or right column for specific pages or categories?
    My template is Gloss Black though
    I would appreciate your help
    Thanks

  2. #2
    Join Date
    Jun 2007
    Location
    Milton Keynes UK
    Posts
    153
    Plugin Contributions
    0

    Default Re: How do I disable certain columns in for certain pages?

    Can I ask for your help?
    I am trying to disable the right column for some specific document products pages, I followed the note in the tpl_main_page.php file but I can only get to disable the column for the whole category with $cPath statement is there the same kind of statement for the "product page"?
    Thanks for your patients.
    Kind Regards
    Franco

  3. #3
    Join Date
    Jan 2004
    Posts
    66,443
    Plugin Contributions
    279

    Default Re: How do I disable certain columns in for certain pages?

    Similar to using $cPath for categories, you can use the following for products:

    Code:
    (int)$_GET['products_id']
    .

    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.

  4. #4
    Join Date
    Jun 2007
    Location
    Milton Keynes UK
    Posts
    153
    Plugin Contributions
    0

    Default Re: How do I disable certain columns in for certain pages?

    Quote Originally Posted by DrByte View Post
    Similar to using $cPath for categories, you can use the following for products:

    Code:
    (int)$_GET['products_id']

    Thanks DrByte,
    the string I am using is this:

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

    how would I use your suggestion?
    Regards
    Franco

  5. #5
    Join Date
    Jan 2004
    Posts
    66,443
    Plugin Contributions
    279

    Default Re: How do I disable certain columns in for certain pages?

    You could try this:

    Code:
      if (in_array((int)$_GET['products_id'] ,explode('14','82')) ) {
        $flag_disable_right = true;
      }
    .

    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.

 

 

Similar Threads

  1. How do i display certain banners on certain pages?
    By berserkey in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 23 Aug 2011, 07:55 PM
  2. How to disable Categories side box on certain pages
    By MCanes in forum Basic Configuration
    Replies: 6
    Last Post: 8 Jul 2007, 04:48 PM
  3. How to disable Categories side box on certain pages
    By MCanes in forum General Questions
    Replies: 1
    Last Post: 8 Jul 2007, 04:43 AM
  4. How to disable certain payment methods for certain products?
    By AccurateOptics in forum Built-in Shipping and Payment Modules
    Replies: 0
    Last Post: 29 Mar 2007, 06:53 PM

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