Page 1 of 3 123 LastLast
Results 1 to 15 of 42

Thread: How to hide quicknav from order page

  1. #1
    Join Date
    Feb 2007
    Location
    Buenos Aires, Argentina
    Posts
    234

    Default How to hide quicknav from order page

    I was wondering how to hide the quick navigation column from the order pages to avoid people from obtaining focus on other items other than the order wizard so, with some help from Matt and other threads at the forum, I'll explain how. This works with portal theme and Web20cart.
    1. To hide the quicknav column from the order page, we need to edit the footer.tpl located at /whmcs_folder/templates/portal/ and before
      Code:
      <div id="side_menu">
      we should add
      Code:
      {if $pagetitle != 'Shopping Cart'}
      (or whatever you shopping cart title is) and add {/if} right before <div class="clear">.
    2. Side the container left doesn't have a %, the shopping cart now will be smaller than the rest of the menu so we need to make it bigger. First, modify the style.css inside the portal folder and add
      Code:
      #content_left_order{background-color:#FFF;float:left;margin:0;padding:15px;text-align:left;width:920px;}
    3. Next, inside header.tpl you should replace
      Code:
      <div id="content_left_order">
      with
      Code:
      <div id="{if $pagetitle != 'Shopping Cart'}content_left{else}content_left_order{/if}">


    And that's it. If you have a dencent number of visits to the order page, I'm pretty sure this will help grow the number of conversions.

  2. #2
    Join Date
    Nov 2007
    Posts
    152

    Default Hide Quick Nav On Additional Pages

    What about additional pages, ones other than the 'Shopping Cart' ?

    I've added additional pages to my install and would like the quick nave hidden on those pages as well.
    http://FullContactSites.com
    Hassle Free Managed WordPress Hosting

  3. #3
    Join Date
    Jun 2007
    Posts
    886

    Default

    {if $pagetitle != 'Shopping Cart' || $pagetitle != 'Custom Page'}

  4. #4
    Join Date
    Nov 2007
    Posts
    152

    Default thanks - page loads by quicknav remains on both pages

    Quote Originally Posted by BAJI26 View Post
    {if $pagetitle != 'Shopping Cart' || $pagetitle != 'Custom Page'}
    Thanks.

    I tried what you suggested - copy and paste- changing the name of the second page to be correct and both pages load OK but both with Quick Nav showing.
    http://FullContactSites.com
    Hassle Free Managed WordPress Hosting

  5. #5
    Join Date
    Jun 2007
    Posts
    886

    Default

    Quote Originally Posted by mysmallbizu View Post
    Thanks.

    I tried what you suggested - copy and paste- changing the name of the second page to be correct and both pages load OK but both with Quick Nav showing.
    Code:
    {if $pagetitle == 'Shopping Cart' || $pagetitle == 'Custom Page Title'}{else}NAVIGATION CODE{/if}

  6. #6
    Join Date
    Nov 2007
    Posts
    152

    Default

    Still not quite right...

    I added your updated line and now get a blank/white page on every page... whmcs won't load.
    http://FullContactSites.com
    Hassle Free Managed WordPress Hosting

  7. #7
    Join Date
    Jun 2007
    Posts
    886

    Default

    pm me your footer.tpl

    I see you are making progress but you want the nav to show on all pages except the shopping cart and ur custom page right?

    Move the nav code after the {else}



    >>> GOOD! I see you have it working! <<<
    Last edited by BAJI26; 06-18-09 at 11:31 PM.

  8. #8
    Join Date
    Nov 2007
    Posts
    152

    Default

    I missed the "else navigation code" portion of the above and almost have it...

    where is the code the determines the "name" of the custom page? is it in the tpl or the php file.

    The custom pages that I created show the name as the breadcrumb but not the page title,

    I have about 30 custom pages that I need to remove the quicknav on .. and right now the page title is showing up as "Client Area" instead of the correct title. For example Handle Any Objection for http://www.mysmallbizusupport.com/hao.php
    http://FullContactSites.com
    Hassle Free Managed WordPress Hosting

  9. #9
    Join Date
    Nov 2007
    Posts
    152

    Default Easy way for a larger number of pages

    got it thanks... I had to alter the page titles in the php files...

    Since I have about 30 different pages that I Don't Want the quick nav on is there an easier way to do this or am I going to have to add each page title to the footer template?
    http://FullContactSites.com
    Hassle Free Managed WordPress Hosting

  10. #10
    Join Date
    Nov 2007
    Posts
    152

    Default

    My install only has a div id "content_left"

    Not a div id "content_left_order" as in your earlier post.

    I"ve added the content left order line to the CSS but am wondering if you meant to add a new div to the header.tpl or just replace the existing content_left div.
    http://FullContactSites.com
    Hassle Free Managed WordPress Hosting

  11. #11

    Default

    Thanks for trick, but i'll not hide it. It looks pretty nice.
    Webmaster & Hosting Forums
    High Performance Stable UK Hosting - cPanel 11
    www.cerisehost.co.uk

  12. #12
    Join Date
    Jan 2008
    Posts
    228

    Default

    Hmm. I had whmcs make me a custom template. I do not see any of these tags in in footer.tpl and header.tpl. Not sure what to do. I must get rid of quick nav on order pages.

  13. #13
    Join Date
    Oct 2009
    Posts
    15

    Default

    Hi!,
    The code changes work for me fine but it breaks the portal layout shifting the Quick Navigations below the central container. Any ideas how to fix this?

    Dothead

  14. #14
    Join Date
    Mar 2010
    Posts
    33

    Default

    I have a similar ( or the same) problem too. On the cart pages, the quick nav content is gone, and the container has shifted below the cart section showing the light blue box at the bottom right. On the regular pages, the QuickNav is appearing ok though. How do I hide that box?

    Also
    My install only has a div id "content_left"

    Not a div id "content_left_order" as in your earlier post.

    I"ve added the content left order line to the CSS but am wondering if you meant to add a new div to the header.tpl or just replace the existing content_left div.
    I have just upgraded to 4.2 ( not sure about 4.1x) and I have the same as above. You do need to remove it, I tried it both ways and keeping it messes up the layout a bit. But this might be part of the problem I'm having above....

    Thanks in advance for your help.

    And thanks Juanzo! for taking the time to post this!

  15. #15
    Join Date
    Nov 2007
    Posts
    152

    Default How Do I remove the topnavbar in the default template

    There's no <div> in the header template to apply the same approach. Any ideas?
    http://FullContactSites.com
    Hassle Free Managed WordPress Hosting

Page 1 of 3 123 LastLast

Similar Threads

  1. Replies: 4
    Last Post: 11-28-12, 07:04 PM
  2. Hide Menu on order form
    By stormrider in forum Customisation & Integration Questions
    Replies: 5
    Last Post: 07-06-09, 06:08 PM