Customising
The golden rule
Section titled “The golden rule”The custom/ folder
Section titled “The custom/ folder”Create a folder called custom at the top level of your installation, next to index.php. It does not exist to begin with, and it is never part of an update.
Inside it, recreate the path of whatever you want to change. If you want to change
includes/plugin_invoice/template/invoice_print.phpthen copy it to
custom/includes/plugin_invoice/template/invoice_print.phpand edit that. From then on the application uses your copy and ignores the original. Delete your copy to go back to the standard behaviour.
What can be overridden
Section titled “What can be overridden”Anything the application includes as a file, which is most of it:
| To change | Copy to |
|---|---|
| The printed and emailed invoice | custom/includes/plugin_invoice/template/invoice_print.php |
| The page header | custom/design_header.php |
| The page footer | custom/design_footer.php |
| The main menu | custom/design_menu.php |
| The login screen | custom/pages/login.php |
| The dashboard | custom/pages/home.php |
| Any plugin screen | custom/includes/plugin_<name>/pages/<page>.php |
| The whole behaviour of a plugin | custom/includes/plugin_<name>/<name>.php |
| The customer portal | custom/includes/plugin_customer/portal/index.php |
Adding a page that does not exist
Section titled “Adding a page that does not exist”The same mechanism adds new screens. Create
custom/includes/plugin_customer/pages/my_report.phpand it becomes reachable in the application as a page called my_report in the customer area, even though no such file exists in the product. This is the tidiest way to add a report of your own.
The order things are searched
Section titled “The order things are searched”When the application needs a file it looks in this order and takes the first it finds:
- Your
custom/copy, mobile version - Your
custom/copy - The standard file, mobile version
- The active theme’s copy
- The standard file
So custom/ beats a theme, and a theme beats the standard file. Switching themes never disturbs your own overrides.
Themes
Section titled “Themes”Eight themes are included. Choose one under Settings → Theme.
| Theme | Notes |
|---|---|
| Metis | The default on a new installation. |
| AdminLTE | A wide, dense administrative layout. |
| Blocks | A card-based layout. |
| White Label | A plain layout intended for rebranding. |
| Blue, Left, Pro | Older variations on the original design. |
| Default | No theme. The underlying unstyled layout. |
A theme can also be set per user, if you turn that option on, so staff can each pick their own.
Small visual changes
Section titled “Small visual changes”For colours, logos, spacing and the like, use the custom CSS box on Settings → Theme. Whatever you put there is appended to the stylesheet on every page, so you do not need a file override at all. This is the right tool for the great majority of appearance changes.
.main-bar h3 { color: #1b4f82; }#logo img { max-height: 48px; }Building a theme
Section titled “Building a theme”A theme is a folder under includes/plugin_theme/themes/ containing at minimum an init.php that registers its stylesheet, and a style.php. It is picked up automatically once the folder is there.
To change a screen only for your theme, mirror the path inside the theme folder — includes/plugin_theme/themes/yourtheme/includes/plugin_customer/pages/customer_admin_edit.php overrides that one screen for that theme only. This is the same mechanism as custom/, one level further down the search order.
The simplest way to start is to copy an existing theme folder, rename it, and work from there. Copy rather than edit, so that updates to the original theme do not overwrite your work.
Changing wording
Section titled “Changing wording”Before overriding a file to change some text, check whether you can change it from the interface instead:
- Emails and documents — Settings → Templates holds the wording of everything the system sends.
- Interface labels — Settings → Language lets you replace any text in the interface, including in your own language. It is the right way to change “Customer” to “Client” throughout.
Both survive updates with no effort on your part, which makes them better than an override wherever they are enough.
Putting it together
Section titled “Putting it together”A good order to reach for things, from least to most work:
- A setting under Settings.
- A template or a language replacement.
- Custom CSS on the theme screen.
- A file override in
custom/. - A plugin of your own.
Each step up costs you more to maintain at update time. Most things people want are available in the first three.