Hi guys, my pdf invoice file name is "amember-invoice-[number].pdf Does anyone know how to customize this? I would like to change out amember for my own company name. Would make a lot more sense to a customer that way. Thanks
That is defined in member.php file around line 541 (depending on what version of aMember you are using. Code: header("Content-Disposition: attachment; filename=amember-invoice-$id.pdf");
Thank you I have got a new posting asking for professional help with the re-design of the invoice if anyone is interested. It is located at: http://www.amember.com/forum/showthread.php?t=9888 thanks
Hi there, Has anyone worked out how to update the filename in v4? have looked around and cannot see it, and member.php no longer exists.. I thought it would be in a config file, but couldn't find it in there either - greatly appreciate someones help here. Kind regards, Steve.
@stevenjohn You can modify name of PDF file with invoice in ver. 4 in the following file amember/library/Am/Pdf/Invoice.php just find method getFileName and replace 'amember-invoice-' with something you prefer.
@caesar Thank you very much - cant believeI missed that, I hunted through that file and completely missed it. Appreciate you taking the time to give me the answer. Kind regards, Steve
Steve , Good news - in latest version there is configuration option - invoice filename. So you will be able to customize it without modifying any file.