ozmo Posted February 19, 2007 Share Posted February 19, 2007 I currently only allow registered clients to open support tickets. But I would like non members to be able to contact us even if they don't see the pre-sales question link on the Support page. So I was wondering if it would be possible to add the "If you have pre-sales questions, click here to contact us." link to the Submit support ticket template? I would also like to add a similar link to the Affiliate section. Is this possible? Thanks, Rob 0 Quote Link to comment Share on other sites More sharing options...
Adam Posted February 19, 2007 Share Posted February 19, 2007 Hey, You should be able to do by editing one of the support .tpl files. From, Adam 0 Quote Link to comment Share on other sites More sharing options...
WHMCS CEO Matt Posted February 19, 2007 WHMCS CEO Share Posted February 19, 2007 This can be achieved using the logged in variable, for example: {if $loggedin} Display support ticket departments {else} If you have pre-sales questions, please click here. {/if} This would need to go in the submitticket-stepone.tpl file. Matt 0 Quote Link to comment Share on other sites More sharing options...
ozmo Posted February 20, 2007 Author Share Posted February 20, 2007 Sorry for the noobism..... but I added the code to the supportticketsubmit-stepone.tpl (see below) and I removed the cached file but nothing is showing up? Any idea? Thanks, Rob {$LANG.supportticketsheader}</p> {if $loggedin} Display support ticket departments {else} If you have pre-sales questions, please click here. {/if} <ul> {foreach key=num item=department from=$departments} [*]{$department.name} - {$department.description} {/foreach} 0 Quote Link to comment Share on other sites More sharing options...
ozmo Posted March 8, 2007 Author Share Posted March 8, 2007 Anyone? 0 Quote Link to comment Share on other sites More sharing options...
Adam Posted March 8, 2007 Share Posted March 8, 2007 Hey, Put this in your config.php and clear out your template_c folder and run the page again. $display_errors="on"; From, Adam 0 Quote Link to comment Share on other sites More sharing options...
Adamski Posted March 8, 2007 Share Posted March 8, 2007 You need to put this: {if $loggedin} <ul> {foreach key=num item=department from=$departments} [*][url="{$SERVER.PHP_SELF}?step=2&deptid={$department.id}"][b]{$department.name}[/b][/url] - {$department.description} {/foreach} [/list] {else} If you have pre-sales questions, please click here. {/if} Should work then. The "Display support ticket departments" is just a description not a command Ad 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.