Provide a simple means to override your template files in WHMCS without losing changes upon upgrading.
To install, download the zip archive or clone the repo to your machine. Then...
- Move the /modules/addons/tpl_override folder into your WHMCS root directory.
- Log into your WHMCS Admin Control Panel and go to Setup > Addon Modules.
- Find the row that corresponds to TPL Override and click Activate.
Using TPL Override is super simple. Let's say you are working in the /templates/six folder, and you wish to create a custom header.tpl file, but when the next update from WHMCS comes out, you don't want those changes lost. No problem!
- Create a folder in your /templates/six folder called
custom
(so your path would be /templates/six/custom) - Copy the header.tpl file (or any file you wish to provide an override for) into the new custom folder.
- Edit away!
This version of TPL_Override is tested against 6.3 and not very thoroughly. There may be templates or there may be earlier versions that this will not work with. Sorry!
Be sure to clear your template cache in WHMCS > Utilities > System > Cleanup to ensure you are loading the latest version of your custom file.
This module is provided 100% free of charge and is not supported directly. If you have any issues, please do post them in the Issues tab in Github.