Page 3 of 3 FirstFirst 123
Results 31 to 42 of 42

Thread: How to hide quicknav from order page

  1. #31

    Thumbs up

    A life saver, thanks!

    Just a quick correction for the uninitiated, in step 3, look for content_left in your header.tpl, and not for content_left_order.

    Thanks again m'man.
    God bless

  2. #32
    Join Date
    Mar 2010
    Location
    Argentina
    Posts
    285

    Default several languages

    Quote Originally Posted by phort6n2 View Post
    I added:
    {if $pagetitle != 'Shopping Cart'}

    Right before:
    <td width="200" valign="top" style="padding-bottom:20px;"> <table width="100%" class="whmcsmenu" border="0" cellpadding="2" cellspacing="1" >

    And then added:
    {/if}

    Right after:
    <input name="search" type="text" size="25" /><br />
    <select name="searchin">
    <option value="Knowledgebase">{$LANG.knowledgebasetitle}</option>
    <option value="Downloads">{$LANG.downloadstitle}</option>
    </select>
    <input type="submit" class="button" value="{$LANG.go}" />
    </p>
    </form>
    Seems to be working for my custom template.
    how can we do it without $pagetitle ?
    Because we sell in many languages, and titles are not always named Shopping Cart
    Free Modules: Download Paypal No Fees- . Need more modules ? Send me PM

  3. #33
    Join Date
    Sep 2007
    Location
    Jimboomba, Qld. AU
    Posts
    2,291

  4. #34
    Join Date
    Dec 2006
    Posts
    51

    Default

    Quote Originally Posted by peto View Post
    Hi i reached another solution to hide the sidebar on order pages, based on earlier solutions but with some changes:
    ....

    Code:
    {if $SCRIPT_NAME != "/cart.php" && $SCRIPT_NAME != "/order/index.php"}
    <div id="side_menu"
    ...
    That's better! It's "language-friendly". But how would you specify these pages:
    clientarea.php?action=contacts
    clientarea.php?action=details
    clientarea.php?action=products

    Thanks.
    Last edited by Sven; 02-03-11 at 01:31 PM.

  5. #35
    Join Date
    Sep 2010
    Posts
    8

    Default Sidebar column not being removed on "Support Tickets"

    I'm removing the sidebar on a couple pages and noticed that it won't display properly on the Support Tickets Page when I use...

    Footer.tpl

    {if $pagetitle != 'Support Tickets'}

    Header.tpl

    <div id="{if $pagetitle != 'Support Tickets'}content_left{else}content_left_order{/if}">

    http://XXXXXX.com/members/supporttickets.php


    This is working on the other page that I'm using the same process and closing lines off with </div> or {/if}. Is this because Support Tickets is in the Clien Area? Is there page title I can use in the code I've been using to make it display properly like <div id="{if $pagetitle != 'Client Area_Support Tickets'}content_left{else}content_left_order{/if}">

    I noticed it's not displaying properly when I add more than five lines?

    Thanks,
    iBloogle

  6. #36
    Join Date
    Sep 2010
    Posts
    8

    Default Sidebar being hidden but page not rendered?

    I'm trying to hide the sidebar and noticed that if I exceed 4 or 5 line of the code below it's not working... For Example Knowledgebase isn't displaying properly but has the sidebar hidden.

    header.tpl

    HTML Code:
    {/if}
            
    		<div id="{if $pagetitle != 'Order Form'}main{else}{/if}" class="{if $pagetitle != 'Order Form'}col-left{else}main.fullwidth{/if}">
            <div id="{if $pagetitle != 'Shopping Cart'}content_left{else}content_left_order{/if}">
            <div id="{if $pagetitle != 'Server Status'}content_left{else}content_left_order{/if}">
            <div id="{if $pagetitle != 'Affiliates'}content_left{else}content_left_order{/if}">
            <div id="{if $pagetitle != 'Downloads'}content_left{else}content_left_order{/if}">
    		<div id="{if $pagetitle != 'Announcements'}content_left{else}content_left_order{/if}">
    		<div id="{if $pagetitle != 'Knowledgebase'}content_left{else}content_left_order{/if}">
    		<div id="{if $pagetitle != 'Support Tickets'}content_left{else}content_left_order{/if}">
    		<div id="{if $pagetitle != 'View Ticket'}content_left{else}content_left_order{/if}">
            
            
                    <div class="post">
    
                        <h1 class="title">{$pagetitle}</h1>
    
                        <div class="entry">
    	                	<div>
    <div>
    
    </div>
    </div>
    </div>
    </div>
    </div></div></div></div>
    
    	<p class="breadcrumb">{$breadcrumbnav}</p>

  7. #37
    Join Date
    Sep 2010
    Posts
    8

    Default corresponding footer.tpl information

    HTML Code:
    		</div><!-- /#main -->
    
    {if $pagetitle != 'Order Form'}
    {if $pagetitle != 'Shopping Cart'}
    {if $pagetitle != 'Server Status'}
    {if $pagetitle != 'Affiliates'}
    {if $pagetitle != 'Downloads'}
    {if $pagetitle != 'Announcements'}
    {if $pagetitle != 'Knowledgebase'}
    {if $pagetitle != 'Support Tickets'}
    {if $pagetitle != 'View Ticket'}
    
    
    <div id="sidebar" class="col-right">

  8. #38
    Join Date
    Apr 2011
    Location
    Somewhere
    Posts
    219

    Default

    Quote Originally Posted by mysmallbizu View Post
    There's no <div> in the header template to apply the same approach. Any ideas?
    Hi,
    if you are using ajax order form
    i suggest you to copy the header.tpl file and name it "header2.tpl", then open it and remove the quicknav, upload it to your " templates/templatename " folder, then open master.tpl file which you can find in:
    "whmcs/order/templates/"
    now search for:
    {include file="$template/header.tpl"}
    change the header to header2 to be like this:
    {include file="$template/header2.tpl"}
    now upload the master.tpl file to
    "whmcs/order/templates/"
    The End ^_^ !

  9. #39
    Join Date
    Nov 2010
    Posts
    1

    Default

    How to hide certain configuration option selection by product id?

    For example if you have Dedicated Server 1, Dedicated Server 2, Dedicated Server 3

    all share the same configuration option group, however in the sub-options you might have different selection example
    4GB RAM, 8GB RAM, 16GB RAM

    Only Dedicated Server 1 can upgrade to 4GB since it comes with 2GB by default and the other by default it have 4GB so hiding 4GB is better than creating multi-groups for each dedicated server package.

    Also is there a way to direct link the customer to certain configuration option selection?

  10. #40
    Join Date
    Sep 2009
    Posts
    65

    Default

    Anyone have this working for the 5.1 ?

  11. #41
    Join Date
    Feb 2013
    Posts
    1

    Cool Re: How to hide quicknav from order page

    Quote Originally Posted by revive View Post
    The easiest way to hide the side bar nav from the order pages (not other pages) is to simply add this code to your CSS sheet for your orderforms (located at <domain>/WHMCS/templates/orderforms/default/style.css - or change the 'default' to whatever you've chosen in admin for the order form styling)..


    #side_menu {
    display: none;
    }
    #content_left {
    float: none;
    margin: 0;
    padding: 10px;
    text-align: left;
    width: 935px; /* adjust this width based in your style - this is NOT for the base style but may work */
    }

    You may need to make other adjustments (to table widths, etc.. based on the design you are using..
    That's it.. the right sidebar menu will not show on order form pages..
    Fantastic, worked for me on the "modern" style.

    Thanks Revive !

  12. #42
    Join Date
    Oct 2012
    Location
    Cape Town, South Africa
    Posts
    56

    Default Re: How to hide quicknav from order page

    Thanks though I am satisfied with the current nav

Page 3 of 3 FirstFirst 123

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