Results 1 to 10 of 12

Hybrid View

  1. #1
    Join Date
    Apr 2006
    Location
    Ohio
    Posts
    6,162
    Plugin Contributions
    0

    Default Turn Off Shopping cart sidebox during checkout pages

    Want to disguard shopping cart [more] sidebox on the checkout process on 3 pages.

    includes > modules > my template > shopping_cart.php
    Where do I place code? using 1.3.7 zen-cart

    Example, I am playing with.
    Works perfect on the checkout process, but the sidebox Shopping Cart [more] opens on the main page after log out, and when you empty your cart still appears... Don't want this....
    What am I missing???


    $show_shopping_cart_box = true;
    if ($_GET['main_page'] == 'checkout_shipping'){
    $show_shopping_cart_box = false;
    }

    if ($_GET['main_page'] == 'checkout_payment'){
    $show_shopping_cart_box = false;
    }

    if ($_GET['main_page'] == 'checkout_confirmation'){
    $show_shopping_cart_box = false;

    Mark,
    Mark
    Hare Do

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

    Default Re: Turn Off Shopping cart sidebox during checkout pages

    Make sure that all of that is below the existing case statements ...
    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: v1.5.5]
    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
    Join Date
    Apr 2006
    Location
    Ohio
    Posts
    6,162
    Plugin Contributions
    0

    Default Re: Turn Off Shopping cart sidebox during checkout pages

    There are three case statements in includes > modules < sideboxes > shopping cart. php.
    I placed the code just below the following.

    case (SHOW_SHOPPING_CART_BOX_STATUS == '2'):
    if ( ( ($_SESSION['cart']->count_contents() > 0) || (isset($_SESSION['customer_id']) && zen_user_has_gv_account($_SESSION['customer_id']) > 0) ) && ($_GET['main_page'] != FILENAME_SHOPPING_CART) ) {
    $show_shopping_cart_box = true;
    } else {
    $show_shopping_cart_box = false;
    }
    break;
    }

    Yes, you do not see cart on the check out phase, but I still see cart on index page after logging out & empting cart to 0. Should only see cart when product is added to it.

    Mark,
    Mark
    Hare Do

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

    Default Re: Turn Off Shopping cart sidebox during checkout pages

    The setting 2 shows when something is in the cart or when there is a GV balance ...

    What clicks are you doing and where do you still see this when you think that you should not?

    I am assuming your additional code only is setting a false switch and is located beneath the original case statements ...
    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: v1.5.5]
    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!

  5. #5
    Join Date
    Apr 2006
    Location
    Ohio
    Posts
    6,162
    Plugin Contributions
    0

    Default Re: Turn Off Shopping cart sidebox during checkout pages

    includes > modules > sideboxes > your template > shopping_cart.php
    I am placing this the code below

    $show_shopping_cart_box = true;
    if ($_GET['main_page'] == 'checkout_shipping'){
    $show_shopping_cart_box = false;
    }

    if ($_GET['main_page'] == 'checkout_payment'){
    $show_shopping_cart_box = false;
    }

    if ($_GET['main_page'] == 'checkout_confirmation'){
    $show_shopping_cart_box = false;
    }

    Placing this code right above: if ($show_shopping_cart_box == true) between Line 31 & 32 below the case statements.

    Yes it works on the checkout phase, but when you empty shopping cart contents to 0, and you click home (index page), products page, log out & log in page the sidebox shopping cart appears saying Your cart is empty.

    Normally the shopping cart sidebox never appears on the index page, products page with 0 contents in the cart.

    Mark,
    Mark
    Hare Do

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

    Default Re: Turn Off Shopping cart sidebox during checkout pages

    I cannot reproduce this ...

    Can you give me an URL and a Click for click break down so that I can repeat this please?
    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: v1.5.5]
    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!

 

 

Similar Threads

  1. Replies: 24
    Last Post: 16 Nov 2009, 04:20 PM
  2. Turn off side boxes during checkout?
    By Makoshark in forum Templates, Stylesheets, Page Layout
    Replies: 7
    Last Post: 15 Jun 2009, 10:09 AM
  3. Can I turn off a sidebox in the checkout and SSL pages?
    By mumzie in forum Basic Configuration
    Replies: 13
    Last Post: 7 Apr 2009, 02:19 AM
  4. Turn Off Sidebox In 1.3.8a during checkout pages Tried A - Z Failed
    By bluedotted in forum Templates, Stylesheets, Page Layout
    Replies: 13
    Last Post: 19 Oct 2008, 02:23 PM
  5. Turn off Shopping Cart and Checkout
    By ihulvey in forum General Questions
    Replies: 7
    Last Post: 18 Jul 2008, 12:39 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