Juanzo Posted June 12, 2009 Share Posted June 12, 2009 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. To hide the quicknav column from the order page, we need to edit the footer.tpl located at /whmcs_folder/templates/portal/ and before <div id="side_menu"> we should add {if $pagetitle != 'Shopping Cart'} (or whatever you shopping cart title is) and add {/if} right before <div class="clear">. 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 #content_left_order{background-color:#FFF;float:left;margin:0;padding:15px;text-align:left;width:920px;} Next, inside header.tpl you should replace <div id="content_left_order"> with <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. 0 Quote Link to comment Share on other sites More sharing options...
mysmallbizu Posted June 18, 2009 Share Posted June 18, 2009 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. 0 Quote Link to comment Share on other sites More sharing options...
BAJI26 Posted June 18, 2009 Share Posted June 18, 2009 {if $pagetitle != 'Shopping Cart' || $pagetitle != 'Custom Page'} 0 Quote Link to comment Share on other sites More sharing options...
mysmallbizu Posted June 18, 2009 Share Posted June 18, 2009 {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. 0 Quote Link to comment Share on other sites More sharing options...
BAJI26 Posted June 18, 2009 Share Posted June 18, 2009 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. {if $pagetitle == 'Shopping Cart' || $pagetitle == '[color=red]Custom Page Title[/color]'}{else}NAVIGATION CODE{/if} 0 Quote Link to comment Share on other sites More sharing options...
mysmallbizu Posted June 18, 2009 Share Posted June 18, 2009 Still not quite right... I added your updated line and now get a blank/white page on every page... whmcs won't load. 0 Quote Link to comment Share on other sites More sharing options...
BAJI26 Posted June 18, 2009 Share Posted June 18, 2009 (edited) 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! <<< Edited June 18, 2009 by BAJI26 0 Quote Link to comment Share on other sites More sharing options...
mysmallbizu Posted June 19, 2009 Share Posted June 19, 2009 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 0 Quote Link to comment Share on other sites More sharing options...
mysmallbizu Posted June 19, 2009 Share Posted June 19, 2009 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? 0 Quote Link to comment Share on other sites More sharing options...
mysmallbizu Posted June 19, 2009 Share Posted June 19, 2009 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. 0 Quote Link to comment Share on other sites More sharing options...
Wajdan Posted June 19, 2009 Share Posted June 19, 2009 Thanks for trick, but i'll not hide it. It looks pretty nice. 0 Quote Link to comment Share on other sites More sharing options...
rldev Posted January 6, 2010 Share Posted January 6, 2010 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. 0 Quote Link to comment Share on other sites More sharing options...
dothead Posted February 1, 2010 Share Posted February 1, 2010 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 0 Quote Link to comment Share on other sites More sharing options...
Greenix Posted April 1, 2010 Share Posted April 1, 2010 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! 0 Quote Link to comment Share on other sites More sharing options...
mysmallbizu Posted April 8, 2010 Share Posted April 8, 2010 There's no <div> in the header template to apply the same approach. Any ideas? 0 Quote Link to comment Share on other sites More sharing options...
sgrayban Posted April 9, 2010 Share Posted April 9, 2010 Hide it or remove it ? The nav bar is in header.tpl <table class="topnavbar"><tr class="topnavbar"><td><a href="index.php">{$LANG.globalsystemname}</a></td><td><a href="clientarea.php">{$LANG.clientareatitle}</a></td><td><a href="announcements.php">{$LANG.announcementstitle}</a></td><td><a href="knowledgebase.php">{$LANG.knowledgebasetitle}</a></td><td><a href="supporttickets.php">{$LANG.supportticketspagetitle}</a></td><td><a href="downloads.php">{$LANG.downloadstitle}</a></td>{if $loggedin}<td><a href="logout.php">{$LANG.logouttitle}</a></td>{/if}</tr></table> 0 Quote Link to comment Share on other sites More sharing options...
mysmallbizu Posted April 14, 2010 Share Posted April 14, 2010 Hide it or remove it ? The nav bar is in header.tpl <table class="topnavbar"><tr class="topnavbar"><td><a href="index.php">{$LANG.globalsystemname}</a></td><td><a href="clientarea.php">{$LANG.clientareatitle}</a></td><td><a href="announcements.php">{$LANG.announcementstitle}</a></td><td><a href="knowledgebase.php">{$LANG.knowledgebasetitle}</a></td><td><a href="supporttickets.php">{$LANG.supportticketspagetitle}</a></td><td><a href="downloads.php">{$LANG.downloadstitle}</a></td>{if $loggedin}<td><a href="logout.php">{$LANG.logouttitle}</a></td>{/if}</tr></table> I dont' want to delete it.... I just don't want it showing on the cart.php pages.... Less options on the order page the better. I'm using whmcs for all my non hosting products. 0 Quote Link to comment Share on other sites More sharing options...
Cape Dave Posted April 17, 2010 Share Posted April 17, 2010 I am interested in this same thing. Dave 0 Quote Link to comment Share on other sites More sharing options...
Wiredremix Posted April 23, 2010 Share Posted April 23, 2010 You need to use the {if} tags, for example {if $pagetitle eq "Shopping Cart"}{else}TOP NAV CODE HERE{/if} That will not show the top nav on the shopping cart but will on every other page. Its very late so mabie i am missing the rest of the question but hope that helps. 0 Quote Link to comment Share on other sites More sharing options...
revive Posted June 18, 2010 Share Posted June 18, 2010 (edited) 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.. Edited June 18, 2010 by revive ;) 0 Quote Link to comment Share on other sites More sharing options...
revive Posted June 18, 2010 Share Posted June 18, 2010 You can check out what this looks like here: http://www.revivehosting.org/clients/cart.php 0 Quote Link to comment Share on other sites More sharing options...
mysmallbizu Posted June 18, 2010 Share Posted June 18, 2010 Thanks! This did the trick to remove the TopNavBar for me #topnavbar { display: none; } #content_left { float: none; margin: 0; padding: 10px; text-align: left; width: 830px; /* adjust this width based in your style - this is NOT for the base style but may work */ } http://www.mysmallbizusupport.com/cart.php 0 Quote Link to comment Share on other sites More sharing options...
Riply Posted June 24, 2010 Share Posted June 24, 2010 I used the side menu option above and it got rid of the nav menu completely I have only checked it on IE and FFox but will check the rest tomorrow. 0 Quote Link to comment Share on other sites More sharing options...
mysmallbizu Posted June 24, 2010 Share Posted June 24, 2010 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.. Would the same approach work for hiding the "Browse Products and Services" menu when a direct link to a order a product is used with the default template? 0 Quote Link to comment Share on other sites More sharing options...
Haircassuccet Posted July 19, 2010 Share Posted July 19, 2010 I was wondering how everyone displayed their name in the yard. We had a small coroplast sign with our web address when we were doing this as part of a bounce house business. Now that the two businesses are seperate, we were wondering if there was a better way. What do you guys and gals do? 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.