Jump to content

How to disable default templates?


SindreM

Recommended Posts

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.

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated