ErikL Posted October 6, 2015 Share Posted October 6, 2015 I have 4 custom fields and I want to display just one on my pdf invoices. More specifically, it's the custom field where I store the client's VAT number. I'm using the default invoicepdf.tpl right now and it doesn't display any customfield at all? I've been playing with this and I noticed that invoicepdf.tpl is using $customfields array which is empty in my case. Why ?? I thought I should use $clientsdetails["customfields"]. This array is not empty in my case but doesn't contain all custom fields. It has content of some custom fields but not all of them. I'm really stuck here. The WHMCS code is ioncube encoded so I can't check what's happening ... Please help me out. My client is complaining about the invoice. I need to have it resolved asap. 0 Quote Link to comment Share on other sites More sharing options...
Kian Posted October 6, 2015 Share Posted October 6, 2015 Are you sure that your VAT number field isn't empty? What code are you using to print customfields on PDF? What happens if you add this code on top of you invoicepdf.tpl file? echo "<pre>; print_r($customfields;) echo "</pre>; die(); 0 Quote Link to comment Share on other sites More sharing options...
ErikL Posted October 7, 2015 Author Share Posted October 7, 2015 It turns out it was related to the setting "Store Client Data Snapshot". The invoice's snapshot didn't have the required information. I got it working now. thanks for your advice Kian 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.