Results 1 to 3 of 3
  1. #1
    Join Date
    Jun 2009
    Posts
    617
    Plugin Contributions
    0

    Default Shopping Cart Page

    To display the shopping cart box on my right column, *ONLY* on the shopping cart page, I have made the following code edits:

    In includes/modules/sideboxes/my_template/shopping_cart.php, I have the following code edit:

    case (SHOW_SHOPPING_CART_BOX_STATUS == '0'):
    //$show_shopping_cart_box = true;
    if ($this_is_shopping_cart) {
    $show_shopping_cart_box = true;
    } else {
    $show_shopping_cart_box = false;
    }

    In my admin under Configuration > Layout Settings > Shopping Cart Box Status set to '0'.

    And in my tpl_main_page.php,

    if (in_array($current_page_base,explode(",",'contact_us,shopping_cart')) ) {
    $flag_disable_right = false;
    $flag_disable_left = true;//added code
    }

    But yet, *ONLY* the center column displays. Can anyone show me what I'm doing wrong.
    Thank you,
    autoace

  2. #2
    Join Date
    Nov 2005
    Location
    Colorado Springs, CO USA
    Posts
    7,033
    Plugin Contributions
    31

    Default Re: Shopping Cart Page

    Quote Originally Posted by autoace View Post
    To display the shopping cart box on my right column, *ONLY* on the shopping cart page, I have made the following code edits:

    In includes/modules/sideboxes/my_template/shopping_cart.php, I have the following code edit:

    case (SHOW_SHOPPING_CART_BOX_STATUS == '0'):
    //$show_shopping_cart_box = true;
    if ($this_is_shopping_cart) {
    $show_shopping_cart_box = true;
    } else {
    $show_shopping_cart_box = false;
    }

    In my admin under Configuration > Layout Settings > Shopping Cart Box Status set to '0'.

    And in my tpl_main_page.php,

    if (in_array($current_page_base,explode(",",'contact_us,shopping_cart')) ) {
    $flag_disable_right = false;
    $flag_disable_left = true;//added code
    }

    But yet, *ONLY* the center column displays. Can anyone show me what I'm doing wrong.
    you'll want to change this:

    Code:
    case (SHOW_SHOPPING_CART_BOX_STATUS == '0'):
          //$show_shopping_cart_box = true;
    	  if ($this_is_shopping_cart) {
    		$show_shopping_cart_box = true;
    		} else {
    		$show_shopping_cart_box = false;
    	  }
    to this:

    Code:
    case (SHOW_SHOPPING_CART_BOX_STATUS == '0'):
          //$show_shopping_cart_box = true;
    	  if ($current_page_base == 'shopping_cart') {
    		$show_shopping_cart_box = true;
    		} else {
    		$show_shopping_cart_box = false;
    	  }
    But you'll still have the problem of the sidebox not showing because you are turning off both the left and right columns by using this:

    Code:
    if (in_array($current_page_base,explode(",",'contact_us,shopping_cart')) ) {
        $flag_disable_right = false;
    	$flag_disable_left = true;//added code
      }

  3. #3
    Join Date
    Jun 2009
    Posts
    617
    Plugin Contributions
    0

    Default Re: Shopping Cart Page

    Thank you, it worked! On your second point I realized that as I was making the post, so I revised the code, thanks again.
    Thank you,
    autoace

 

 

Similar Threads

  1. Replies: 1
    Last Post: 22 Dec 2014, 08:55 PM
  2. Replies: 0
    Last Post: 18 Jun 2012, 01:02 AM
  3. Replies: 7
    Last Post: 22 Jun 2011, 05:01 PM
  4. Remove right sidebox shopping cart from when on shopping cart page
    By alterego55 in forum Templates, Stylesheets, Page Layout
    Replies: 7
    Last Post: 2 Oct 2010, 01:45 AM
  5. Replies: 2
    Last Post: 7 Oct 2009, 05:33 AM

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