phptemplatesinvoicewhmcswhmcs-invoice-template

How to get product group details in WHMCS invoice template file invoicepdf.tpl?


I am customising WHMCS invoice template using invoicepdf.tpl. It is a PHP script basically arrange data in HTML format and convert it to PDF. I can only see client info and invoice details in that file. How can I take product group details there?


Solution

  • You have to use a whmcs invoice hook( https://developers.whmcs.com/hooks-reference/invoices-and-quotes/ ). For example:

    Then in the hook you can request the data you want from tblproductgroups or any other table if needed.