Page 2 of 3 FirstFirst 123 LastLast
Results 11 to 20 of 25
  1. #11
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    64,726
    Plugin Contributions
    6

    Default Re: Turn Off All sideboxes except shopping cart sidebox during checkout pages

    If you look at that evil peice of code I gave you, you will notice that one list of the array has the page names and the other list has the sideboxes ...

    Just add ... comma separate, without spaces, the additional pages you want those sideboxes skipped on ...
    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.1]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...

  2. #12
    Join Date
    Nov 2006
    Posts
    514
    Plugin Contributions
    0

    Default Re: Turn Off All sideboxes except shopping cart sidebox during checkout pages

    Just added the additional page to your evil script, works perfectly!

    Thank you again!

  3. #13
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    64,726
    Plugin Contributions
    6

    Default Re: Turn Off All sideboxes except shopping cart sidebox during checkout pages

    You are most welcome ... glad that this could work for you ...
    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.1]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...

  4. #14
    Join Date
    Nov 2006
    Posts
    514
    Plugin Contributions
    0

    Default Re: Turn Off All sideboxes except shopping cart sidebox during checkout pages

    Oh! One last thing, Everything works great, however if someone wants to just log in (has no shopping cart) there is a empty sidebox frame in the left column (see jpeg)

    Is there a way to get rid of this sidebox leftover? I have tried with my limited knowledge and the style sheet, but cant seem to get rid of it..

    any suggestions?
    Attached Images Attached Images  

  5. #15
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    64,726
    Plugin Contributions
    6

    Default Re: Turn Off All sideboxes except shopping cart sidebox during checkout pages

    I think I need to see your site to get a clue here ...
    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.1]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...

  6. #16
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    64,726
    Plugin Contributions
    6

    Default Re: Turn Off All sideboxes except shopping cart sidebox during checkout pages

    You would need to customize for your template the file:
    /includes/templates/your_template_dir/common/tpl_main_page.php

    Read through the file ... there is a similar array in there for when to turn off the left column ...
    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.1]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...

  7. #17
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    64,726
    Plugin Contributions
    6

    Default Re: Turn Off All sideboxes except shopping cart sidebox during checkout pages

    Note: created an account lately?

    Do you want the sideboxes then?
    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.1]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...

  8. #18
    Join Date
    Nov 2006
    Posts
    514
    Plugin Contributions
    0

    Default Re: Turn Off All sideboxes except shopping cart sidebox during checkout pages

    Whoops!

    I guess I need to add those pages to the list of no sideboxes except shopping cart.: if (in_array($current_page_base,explode(",",'login,checkout_shipping,checkout_payme nt,checkout_confirmation')

    Regarding the side box leftover, reading the tpl_main_page it looks like this is what I would add for the login, and now new account pages:

    if ($current_page_base == 'login' and $cPath == '') {<br />
    $flag_disable_left = true;<br />
    }<br />

    But wont this disable the left column completely during those pages? (no shopping cart)

  9. #19
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    64,726
    Plugin Contributions
    6

    Default Re: Turn Off All sideboxes except shopping cart sidebox during checkout pages

    Well ... yes ... pretty much kills that puppy right off ...

    But you can also use this file to alter the criteria such as check to see if the cart is empty ... if empty kill it ... if not, show it ...

    This is a handy dandy little variable:
    $_SESSION['cart']->count_contents()
    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.1]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...

  10. #20
    Join Date
    Nov 2006
    Posts
    514
    Plugin Contributions
    0

    Default Re: Turn Off All sideboxes except shopping cart sidebox during checkout pages

    Not sure, what code/page I would add this variable to

    $_SESSION['cart']->count_contents()

    would it be added to the code from page one :
    /includes/modules/your_template_dir/column_left.php

    or on the main page:
    /includes/templates/your_template_dir/common/tpl_main_page.php

    with the code above?

 

 
Page 2 of 3 FirstFirst 123 LastLast

Similar Threads

  1. shopping cart sidebox overflows!
    By DMservices in forum Basic Configuration
    Replies: 3
    Last Post: 16 Oct 2006, 01:32 PM
  2. Turn off Box on Shopping Cart Page?
    By benjames in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 23 Sep 2006, 06:24 AM
  3. Shopping Cart Sidebox Color
    By mhebby in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 17 Jun 2006, 11:55 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
  •