我试图在WHMCS中将产品ID添加到我的发票中,但似乎没有任何工作。这就是我现在所拥有的该行的代码:将产品ID添加到WHMCS发票
<span class="title">{$LANG.invoicenumber}{*{else}{$LANG.proformainvoicenumber}{/if}*}{$invoicenum} - Service ID #{$invoiceitems.relid}</span><br />
这在这里具体而言,是我在添加的部分,而不是工作:
- Service ID #{$invoiceitems.relid}
当我运行调试看不同的变量比使用它表明{$invoiceitems}
可用于显示这样的项目:
Array (2)
0 => Array (6)
id => 1830
type => Hosting
relid => 801
description => My Hosting Services - dsdjsjd....
amount => $295.00 USD
taxed =>
1 => Array (6)
id => 1831
type => PromoHosting
relid => 801
description => Promotional Code: FREETRIAL - $0.01 U...
amount => $-294.99 USD
taxed =>
我想要得到的是数801以使该行显示如下:
发票#7691 - 服务ID#801
任何帮助将不胜感激。提前致谢!