Si Posted February 17, 2011 Share Posted February 17, 2011 I have a support dept set up named SALES DEPT and the contact page setup to redirect to that dept if anyone clicks on the CONTACT US page. The problem is that logged in customers who click on this, always submit their support tickets to SALES and not one of the other support depts. So, I'm using the following code to display information to logged in users: {if $department eq "SALES DEPT"} <dt><dd>{if $loggedin} As a logged in customer, you should be accessing priority support via <a href="submitticket.php">the support area</a>, by directing your query to the correct department.{/if}</dd></dt> <dt><dd>{if $loggedin}PLEASE SUBMIT YOUR <a href="submitticket.php"><b>'SUPPORT REQUEST'</b> here.</a> Thank you!{/if}</dd></dt> {else}{/if} Problem with that obviously is that it's not really professional. My question is: Is there a way, for customers who meet the same two IF conditions, can be redirected automatically to the supportticketsubmit-stepone.tpl page ? 0 Quote Link to comment Share on other sites More sharing options...
WebsiteIntegrations Posted February 18, 2011 Share Posted February 18, 2011 (edited) i suppose you could do something like {if $department eq "SALES DEPT" {if $loggedin} {php} header("Location: submitticket.php?step=1"); exit(); {/php} {/if} {else}{/if} Edited February 18, 2011 by wwesn 0 Quote Link to comment Share on other sites More sharing options...
Alistair Posted February 18, 2011 Share Posted February 18, 2011 Surely this needs to be in your nav menu: <li> {if $loggedin}<a href="link-to-client-support.php">Client Support</a> {else} <a href="link-to-pre-sales.php">Client Support</a> {/if} </li> 0 Quote Link to comment Share on other sites More sharing options...
Si Posted February 18, 2011 Author Share Posted February 18, 2011 Hi Alistair and wwesn, Yes Alistair, it already is. wwesn, thanks for the pointer. I had to do some slight toying with it but in the end this works perfectly: {if $department eq "SALES"} {if $loggedin} {php} header("Location: submitticket.php"); {/php} {/if} {/if} and sits at the top of the supportticketsubmit-stepone.tpl file. Now, if a customer is logged in and clicks on the CONTACT US link, (rather than the SUBMIT SUPPORT TICKET link), they are shown the list of support depts to select from. If a non-customer clicks on the CONTACT US link they are shown the form to complete a ticket with the SALES dept pre-filled for them. Cheers for pointing in the right direction. Si 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.