SindreM Posted June 25, 2014 Share Posted June 25, 2014 Is it possible to disable the default templates and cart templates completely? Although it is no visible template switcher, a user familiar with WHMCS can easily change the template with the "systpl" and "carttpl" query parameters. We would like to have our custom template applied regardless. Have tried to delete the other template folders, but then it gives an error if trying to access one of the default templates. 0 Quote Link to comment Share on other sites More sharing options...
Troy Posted June 25, 2014 Share Posted June 25, 2014 Makes sense that you'd get an error trying to access a default template after you've deleted the directory. Why is that a problem? If you want your custom template displayed regardless, create symlinks for the default template folder names pointing to your custom template folder perhaps? Still, anyone could misspell a default template name trying to access it and still get an error, but that is the case regardless. Maybe WHMCS should add some code to revert to the template specified in the settings if a template passed in the URL doesn't exist. 0 Quote Link to comment Share on other sites More sharing options...
WHMCS Chance Posted June 25, 2014 Share Posted June 25, 2014 Hey SindreM, You might be able to do something with a .htaccess rewrite. http://httpd.apache.org/docs/2.0/misc/rewriteguide.html I have not tested this but should do what you're needing. Just thought I would drop my two cents .02 Good luck! 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.