Page 1 of 2 12 LastLast
Results 1 to 10 of 15
  1. #1
    Join Date
    Oct 2007
    Posts
    379
    Plugin Contributions
    0

    help question How to turn off colum or sideboxex on a single product listing page

    This tutorial:

    https://www.zen-cart.com/tutorials/i...hp?article=233

    describes how to turn off side boxes on EZ-pages, category listings and so forth, but how can I turn off a colum or sidebox on a single product listing page only??

  2. #2
    Join Date
    Jun 2003
    Posts
    33,715
    Plugin Contributions
    0

    Default Re: How to turn off colum or sideboxex on a single product listing page

    Product Listing or Product Details?
    Please do not PM for support issues: a private solution doesn't benefit the community.

    Be careful with unsolicited advice via email or PM - Make sure the person you are talking to is a reliable source.

  3. #3
    Join Date
    Oct 2007
    Posts
    379
    Plugin Contributions
    0

    Default Re: How to turn off colum or sideboxex on a single product listing page

    Quote Originally Posted by Kim View Post
    Product Listing or Product Details?
    eh I'm not sure what the difference is. For example on this page only:

    http://www.usconverters.com/index.ph...roducts_id=180

    I would like to remove the right side colum.

  4. #4
    Join Date
    Oct 2007
    Posts
    379
    Plugin Contributions
    0

    Default Re: How to turn off colum or sideboxex on a single product listing page

    Quote Originally Posted by Kim View Post
    Product Listing or Product Details?

    Product details. I'm still having big problems with removing the right column on product details pages , anybody have an idea?

    In includes\templates\classic\common I tried this:

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

    but that didn't do the job

    Any help is much appreciated...

  5. #5
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default Re: How to turn off colum or sideboxex on a single product listing page

    Try something like this:
    PHP Code:
    if ($current_page_base == 'product_info' and  $products_id == '180') {
      
    $flag_disable_right true;
     } 
    You might use $_GET['products_id'] if $products_id doesn't work.

  6. #6
    Join Date
    Oct 2007
    Posts
    379
    Plugin Contributions
    0

    Default Re: How to turn off colum or sideboxex on a single product listing page

    Quote Originally Posted by gjh42 View Post
    Try something like this:
    PHP Code:
    if ($current_page_base == 'product_info' and  $products_id == '180') {
      
    $flag_disable_right true;
     } 
    You might use $_GET['products_id'] if $products_id doesn't work.

    Thanks so much! $_GET['products_id'] is working!

    Just as a side note, how would I disable more than one product id in the same line?
    For example:

    if ($current_page_base == 'product_info' and $_GET['products_id'] == '180,182,183') {
    $flag_disable_right = true;
    }

    is not working.

  7. #7
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default Re: How to turn off colum or sideboxex on a single product listing page

    That's where you would use the explode() function.
    PHP Code:
    if ($current_page_base == 'product_info' and in_array($_GET['products_id'],explode(",",'180,182,183')) {
      
    $flag_disable_right true;


  8. #8
    Join Date
    Nov 2007
    Posts
    57
    Plugin Contributions
    2

    Default Re: How to turn off colum or sideboxex on a single product listing page

    Quote Originally Posted by DML73 View Post

    In includes\templates\classic\common I tried this:
    Which file was this in? Cheers

  9. #9
    Join Date
    Apr 2004
    Location
    UK
    Posts
    5,821
    Plugin Contributions
    2

    Default Re: How to turn off colum or sideboxex on a single product listing page

    Quote Originally Posted by fightthefourwalls View Post
    Which file was this in? Cheers
    First post in this thread gives link, with details i.e.
    https://www.zen-cart.com/tutorials/i...hp?article=233

  10. #10
    Join Date
    Nov 2007
    Posts
    57
    Plugin Contributions
    2

    Default Re: How to turn off colum or sideboxex on a single product listing page

    Oh true I must have missed that... Thanks for letting me know!
    Nick

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. Can I turn off Quantity Box and Qty field in subcategory page (all product listing)?
    By bigstore in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 5 Mar 2012, 10:28 PM
  2. How to turn off the left sidebox on product info page?
    By lina0962 in forum Basic Configuration
    Replies: 1
    Last Post: 31 Aug 2010, 12:07 AM
  3. How do I turn prices on on product listing page?
    By diane22 in forum General Questions
    Replies: 1
    Last Post: 19 Dec 2008, 09:42 PM
  4. How to turn off breadcrumbs on product listing page?
    By alicia1234 in forum Templates, Stylesheets, Page Layout
    Replies: 7
    Last Post: 20 Nov 2008, 02:45 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