Jump to content

Help adding custom field to invoicepdf.tpl?


mgaccess

Recommended Posts

Hi, it's not uncommon that one customer can have multiple instances of the same product with different usernames. I have added the "username" name to the Product's custom field (actually a programmer did it - I don't know how). The code is here:

 

<dt>{$LANG.serverusername}   :</dt><dd><input type="text" name="username" value="{$username}" readonly="readonly" class="inputbox2 width_4" /></dd>

 

But when the customer gets an invoice showing multiple products, they can't tell which product is which. I need to add this field to the invoice to show the username associated with each product. I assume it should go here somewhere but not sure how implement. Help?

 

foreach ($invoiceitems AS $item) {

$rowcount = $pdf->getNumLines($item['description'], 140);

$pdf->MultiCell(140,$rowcount * 5,$item['description'],1,'L',0,0);

$pdf->MultiCell(40,$rowcount * 5,$item['amount'],1,'C',0,0);

$pdf->Ln();

}

FYI - I'm also showing the username on the "My Services" list page for each product by adding the following code:

 

<td class="tbcol_1">{$service.group} - {$service.product}{if $service.domain}<br />{$LANG.clientareahostingdomain} : {$service.domain}{/if}{if $service.username}<br />{$LANG.serverusername}  :  {$service.username}{/if}</td>

Link to comment
Share on other sites

We are also looking for this. It would be great to have this on the customer portal and the invoice. It would be even better if you could have the intelligent search include these in the search when you were looking for something. After about 5 services that are the same, it becomes cumbersome to work with customer files when you have to manually go through each product/service to find the correct one.

Link to comment
Share on other sites

This has got to be worth something to someone.

 

Anyone willing and able to do this as a paid project? Or maybe a patch/addition to the existing WHMCS feature set.

 

If people think this is useless, I'm interested in hearing how you deal with the situation above.

Link to comment
Share on other sites

If they have different usernames, then surely they are different products ?

 

Well, yes they show as product/service 1,2,3,etc to the customer, but we only have the product defined once in WHMCS. The customer can order the same product multiple times for different computers (in this case online backup accounts) but need different usernames for each order. Therefore the username needs to show on the invoice.

 

We're willing to pay for this service, but is seems like it would be simple for a programmer. Obviously not - no replies :-(

Link to comment
Share on other sites

  • 1 month later...
  • 7 months later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated