New on LowEndTalk? Please Register and read our Community Rules.
All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.
All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.
developer whmcs
georgedatacenter
Member, Patron Provider
in Requests
Someone who develops plugins in whmcs?
I would like to make a small modification to the whmcs invoices.
if anyone knows about this please MP
Comments
What kind of modification are you looking for?
Most cases are just a simple few edits to the tpl file.
http://prntscr.com/lfacti
Is it possible to add what appears there? Assigned IPs
I have used {$service_assigned_ips} on email templates before by just editing the .tpl files.
There's a file called viewinvoice.tpl in your template folder, try modifying that and adding the above.
Don't forget {debug}
Don't forget {deb
Yes, I had already tried but nothing appears
Give me a screenshot of an invoice where you want the assigned ip to appear and I’ll have a look in my staging whmcs.
Do you want it on the pdf file and/or viewinvoice template?
viewinvoice template
https://i.stack.imgur.com/QmqB3.png
I have achieved with this link:
that the Dedicated IP is displayed
https://stackoverflow.com/questions/49254863/show-dedicated-ip-into-customer-invoice-whmcs
I still can not show the assigned_ip
Is it also possible to add the product description on the invoice?
You need a hook and a manual change in the template.
I could probably do that for you if you are willing to pay for it?
Note that the dedicated and assigned IP will be empty on the first invoice as these fields are populated when the service has been provisioned.
The description that is shown at the page with the order button?
That I wouldn't recommend as that product could be hidden/changed/deleted and it could differ between invoices.
Just for information, this variable is not available in viewinvoice.tpl including any other service related one.