Customizing the AffiliateTools Add-on
AffiliateTools is an add-on designed to be easily tailored to suit your specific needs. All interfaces, UI elements, and related texts can be customized using HTML templates or translation labels.
Template customization
All templates are located in the following directory: ./modules/addons/affiliatetools/templates/.
The default WHMCS affiliate page has been overridden by a custom template, which can be edited via the file: ./affiliatetools/templates/client/affiliates.tpl.
You can also customize the Service Manager’s authorization and detail pages using the following files:
- ./affiliatetools/templates/client/assign-agent.tpl — agent assignment page
- ./affiliatetools/templates/client/view-agent.tpl — agent details page
Templates for the "Log In as Client" header and the "My Service Manager" panel are stored in: ./affiliatetools/templates/client/common/.
When editing templates, make sure to preserve data placeholders (e.g., {$serviceManager.firstName}
) and language translation labels (e.g., {$addonlang.hello}
). You can also add new labels and manage them through the translation files.
Language translation management
All texts displayed in the client interfaces of AffiliateTools can be edited through the language files, located in ./affiliatetools/lang/.
To add a new language, simply duplicate the english.php file and rename it to match the target language (e.g., italian.php
). You can then translate all language labels directly within the new file.
If a translation label is missing, the module will automatically fall back to the English version.