Results 1 to 6 of 6
  1. #1

    Default Disabling all of Sideboxes except..

    I want to disable all of the left sideboxes except on the product description page.

    Is there a way to do that?

    I did figure out how to do the homepage but I can't seem to figure out the rest.

    Test site is (in case you need it) http://frompropertorocker.com/fptrte...ain_page=index

    Thanks!

  2. #2
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: Disabling all of Sideboxes except..

    You could customize, using your templates and overrides, the file:
    /includes/templates/your_template_dir/common/tpl_main_page.php

    Around line 100, change the code to read:
    Code:
    if (in_array($current_page_base,explode(",",'product_info'))  || (COLUMN_LEFT_STATUS == 0 || (CUSTOMERS_APPROVAL == '1' and $_SESSION['customer_id'] == '') || (CUSTOMERS_APPROVAL_AUTHORIZATION == 1 && CUSTOMERS_AUTHORIZATION_COLUMN_LEFT_OFF == 'true' and ($_SESSION['customers_authorization'] != 0 or $_SESSION['customer_id'] == '')))) {
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

  3. #3

    Default Re: Disabling all of Sideboxes except..

    Quote Originally Posted by Ajeh View Post
    You could customize, using your templates and overrides, the file:
    /includes/templates/your_template_dir/common/tpl_main_page.php

    Around line 100, change the code to read:
    Code:
    if (in_array($current_page_base,explode(",",'product_info'))  || (COLUMN_LEFT_STATUS == 0 || (CUSTOMERS_APPROVAL == '1' and $_SESSION['customer_id'] == '') || (CUSTOMERS_APPROVAL_AUTHORIZATION == 1 && CUSTOMERS_AUTHORIZATION_COLUMN_LEFT_OFF == 'true' and ($_SESSION['customers_authorization'] != 0 or $_SESSION['customer_id'] == '')))) {
    Thank you! But this only turned off the product description page. I want to keep it on the product description page and delete it every where else.

    Is there a way to do that?

  4. #4

    Default Re: Disabling all of Sideboxes except..

    Okay I think I am getting it. I found this topic on it http://www.zen-cart.com/forum/showthread.php?t=137035 and did what post #4 said. But I am having a problem. I got the product listing off but now it's also taking off the product description.

    Here is the code I put in
    PHP Code:
     if (in_array($cPath,explode(",",'1,1_2')) ) {
        
    $flag_disable_left true;
        } 
    My first product listing ends with this cPath=1

    and my second product listing ends with this cPath=1_2

    and the product description says this cPath=1_2&products_id=1

    How do I keep the sidebox on the product description page?

    Sorry if I confused you and thanks for the help!

  5. #5
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: Disabling all of Sideboxes except..

    Then you might try reversing it:
    Code:
    if (!in_array($current_page_base,explode(",",'product_info'))  || (COLUMN_LEFT_STATUS == 0 || (CUSTOMERS_APPROVAL == '1' and $_SESSION['customer_id'] == '') || (CUSTOMERS_APPROVAL_AUTHORIZATION == 1 && CUSTOMERS_AUTHORIZATION_COLUMN_LEFT_OFF == 'true' and ($_SESSION['customers_authorization'] != 0 or $_SESSION['customer_id'] == '')))) {
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

  6. #6

    Default Re: Disabling all of Sideboxes except..

    Quote Originally Posted by Ajeh View Post
    Then you might try reversing it:
    Code:
    if (!in_array($current_page_base,explode(",",'product_info'))  || (COLUMN_LEFT_STATUS == 0 || (CUSTOMERS_APPROVAL == '1' and $_SESSION['customer_id'] == '') || (CUSTOMERS_APPROVAL_AUTHORIZATION == 1 && CUSTOMERS_AUTHORIZATION_COLUMN_LEFT_OFF == 'true' and ($_SESSION['customers_authorization'] != 0 or $_SESSION['customer_id'] == '')))) {
    Thanks a bunch!! It's exactly how I want it now.

 

 

Similar Threads

  1. Disabling sideboxes on specific pages (ie the Checkout page)
    By dcENS in forum Templates, Stylesheets, Page Layout
    Replies: 7
    Last Post: 25 Apr 2010, 09:56 PM
  2. Replies: 24
    Last Post: 16 Nov 2009, 04:20 PM
  3. All Zones EXCEPT particular one
    By PJD in forum Built-in Shipping and Payment Modules
    Replies: 0
    Last Post: 25 Apr 2008, 07:15 AM
  4. All good - except 1 page
    By skinnyalbert in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 3 Oct 2007, 05:21 PM
  5. All Emails Working Except Contact Us
    By tbianco in forum General Questions
    Replies: 0
    Last Post: 1 Mar 2007, 01:21 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