kb / cached-invoices-upgrade
Upgrading the Cached invoices module to a newer version
Upgrading to a newer version is simple.
Upgrade steps
- Download the latest Cached invoices module zip file from your client area.
- Extract the
modulesfolder into the root of your WHMCS installation. - Overwrite any files or folders that already exist.
Important version differences and actions
Version 1.0 → 1.1
Version 1.1 adds API-related functions. Set the admin account option on the module Settings page. WHMCS API functions require admin access rights (they work when an admin uses the page; cron behaves differently). Choose one of the available admin accounts in the settings form, or create a new admin account. It is wise to create an admin account that has API access only.
Version 1.1 → 1.2
Version 1.2 requires template changes. Edit your invoicepdf.tpl and viewinvoice.tpl files.
Change the line:
require_once(ROOTDIR.'/modules/addons/cached_invoices/invoice.php');
to:
require(ROOTDIR.'/modules/addons/cached_invoices/invoice.php');
There is also a new feature: auto-upload to Dropbox. To use it, create a new Dropbox app (see M-BIT knowledge base for Dropbox app setup).
Version 1.4 → 2.0
Remove the {PHP} line from the top of your viewinvoice.tpl file.