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?
如何在WHMCS发票模板文件invoicepdf.tpl中获取产品组详细信息?
- 写回答
- 好问题 0 提建议
- 追加酬金
- 关注问题
- 邀请回答
-
1条回答 默认 最新
- douzheng5717 2017-03-19 11:40关注
You have to use a whmcs invoice hook( https://developers.whmcs.com/hooks-reference/invoices-and-quotes/ ). For example:
- If you want to only customize the way it is displayed https://developers.whmcs.com/hooks-reference/invoices-and-quotes/#viewinvoicedetailspage .
- If you want to modify the invoice when created https://developers.whmcs.com/hooks-reference/invoices-and-quotes/#invoicecreation .
Then in the hook you can request the data you want from tblproductgroups or any other table if needed.
本回答被题主选为最佳回答 , 对您是否有帮助呢?解决 无用评论 打赏 举报
悬赏问题
- ¥15 乌班图ip地址配置及远程SSH
- ¥15 怎么让点阵屏显示静态爱心,用keiluVision5写出让点阵屏显示静态爱心的代码,越快越好
- ¥15 PSPICE制作一个加法器
- ¥15 javaweb项目无法正常跳转
- ¥15 VMBox虚拟机无法访问
- ¥15 skd显示找不到头文件
- ¥15 机器视觉中图片中长度与真实长度的关系
- ¥15 fastreport table 怎么只让每页的最下面和最顶部有横线
- ¥15 java 的protected权限 ,问题在注释里
- ¥15 这个是哪里有问题啊?