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
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
You can use $filename
{if $filename neq "cart"}
█ TsHosting & Web Design | Custom Mods | Header/Footer Integrations
█ Template Editor | Maintenance Mode V1.0.2 | PayPal Balance V1.0 | ClientArea Popups
█ Plan Comparison | Client Area Home Page | DEFSPARK - Custom Cart Template | Custom PDF Invoice | ErrorPages | TrusticoSSL Module
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
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>
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">
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 ^_^ !
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?
Anyone have this working for the 5.1 ?
Thanks though I am satisfied with the current nav