Skip to main content
All CollectionsWHMCS Upsell Module by Monarx
Customising the default templates
Customising the default templates

The Monarx Upsell Module provides templates that can be updated.

Pete Bishop avatar
Written by Pete Bishop
Updated over a month ago

All client-facing pages of the module are customisable in a very similar way to usual WHMCS templates.

Our templates utilise Smarty and specifically .tpl files.

For the Product Overview page shown when accessing a standalone VPS/Server product, these files will be found in:

WHMCS_ROOT/modules/servers/monarx/templates

For the public landing pages, these are available in:

WHMCS_ROOT/modules/addons/monarx/templates/public

Overriding the default templates

This feature is available as of version 1.0.62.

The Monarx Upsell Module provides a way of overriding the default templates provided with your own. This can be very useful when you are running a custom template which doesn't support the CSS classes used by default templates.

Overrides will work on any public-facing template. Admin-only views are not currently able to be overridden.

To override a file, simply create a copy of the file and append the filename with custom.. For example, let's override this file:
โ€‹

/modules/addons/monarx/templates/public/landingpage.tpl

This is the template file for the public landing page.

To override it, create a new file in the same directory and name it custom.landingpage.tpl - By doing so, your changes will not be overwritten on an update:

/modules/addons/monarx/templates/public/custom.landingpage.tpl

When a custom.*templatename*.tpl is present, it will be loaded instead of the non-custom file for any public facing page.

Did this answer your question?