Jump to content
ocastaned

Help customizing invoices

Recommended Posts

I need some help to figure it out how can I include a service user into an invoice. I have several radio streaming plans. One of them is called:  Centova Cast PRO. My customer has 5 of those services, but she would like to know which user is the invoice she is paying for. In conclusion, how can I include a service user into a generated radio streaming invoice, so she can know which service she is paying for.

 

I tried to include this "User: {$service_username}" in the emails templates, but it didn't work. It doesn't show the user.

 

Thank you for your help.

 

 

 

 

 

Share this post


Link to post
Share on other sites
1 hour ago, ocastaned said:

I tried to include this "User: {$service_username}" in the emails templates, but it didn't work. It doesn't show the user.

if you're thinking of adding it to the email templates, then i'd suggest adding {debug} to the email template; sending yourself a test email (e.g from the invoices page); go to the client's mail tab in their profile summary, click on the email that has just been sent and you should see a popup window of available arrays and variables to the template.

if your service user is available in one of the variables, then you can use it in the email template... if it isn't, then you're looking at using a hook, or if you want to use it in the PDF invoice, then you would edit the template and query the database... in the invoice emails, you won't have access to product details directly.

Share this post


Link to post
Share on other sites

I don't think it is working. What I want is service username is included in the email notification customer received each month to pay their invoice.

Share this post


Link to post
Share on other sites
Just now, ocastaned said:

I don't think it is working.

you mean the popup doesn't appear or something else isn't working ? if popup, then that only appears when you view the email in WHMCS.

2 minutes ago, ocastaned said:

What I want is service username is included in the email notification customer received each month to pay their invoice.

then you'd likely need to use a EmailPreSend hook, query the database to get the username (which might take a bit of work, as you'll likely only have the invoice id or invoice_items to work with as a starting point).

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.

×

Important Information

By using this site, you agree to our Terms of Use & Guidelines