PDA

View Full Version : Custom Field, merge outside WHMCS



Vectoral
11-14-06, 05:36 PM
Hello,

I'm trying to add some details to my clientareaproductdetails.tpl, so when a dedicated server customer clicks on details of his server, he can see the IP Address, IP Allocation, And Hardware ID (unique DC-ID).

I have theese 3 fields defined in WHMCS as IP Address, IP Allocation, Hardware Code and can use them in e-mails as merge fields like [ProductCustom-IP Address] with no problems, but what I would like is display it in clientareaproductdetails.tpl. Any tips on how I can do this?

Regards,
-E.

Steve
11-14-06, 06:02 PM
You could include PHP code in the clientareaproductdetails.tpl file to query the WHMCS database and grab the information you need. I believe PHP needs to be enclosed in {php} {/php} tags for it to be parsed correctly.

Vectoral
11-14-06, 06:34 PM
Not that fluent with PHP, if anyone could help me out I would be gratefull :)

Vectoral
11-14-06, 09:20 PM
Found a freelance coder to do this for us, can be locked :)