altomarketing Posted June 4, 2017 Share Posted June 4, 2017 Hi ! I read and even developed some custom pages following https://developers.whmcs.com/advanced/creating-pages/ , but it always shows the six template (css, menus, ...) I would like to have 2 viewinvoice.tpl and with an if SMARTY statment in viewinvoice.tpl like: {if $customerisfromArgentina} {php} header ('Location: viewinvoiceARG.php'); {/php} {else} {php} header ('Location: viewinvoiceORIGINAL.php'); {/php} {/if} How can i do it ? as with a custom page, it brings menu, and all template, i just need a blank page to design my own viewinvoice with customer details. 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted June 4, 2017 Share Posted June 4, 2017 I read and even developed some custom pages following https://developers.whmcs.com/advanced/creating-pages/ , but it always shows the six template (css, menus, ...)I would like to have 2 viewinvoice.tpl and with an if SMARTY statement in viewinvoice.tpl like: How can i do it ? as with a custom page, it brings menu, and all template, i just need a blank page to design my own viewinvoice with customer details. if it were me, i'd just use 1 template that contains 2 different layouts - and definitely not even consider using {php} in the template! you know the client has to be logged in to view the invoice, so you should be able to do this.... {if $clientsdetails.country eq 'Argentina'} new layout {else} existing layout {/if} 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.