The membership card pdf name when download uses the Joomla username for the PDF Name
Is it possible to change to say the Last name and First Name of the Membership Holder?
The reason I ask is that we download and distribute cards Using the User name is a bit random.
I can understand your logic in that user name is unique and so we cannot get duplicate membership cards
Can you point me to where the code is. I was thinking we could replace User name with Name plus Membership No. Is Membership number also unique?
Our members using odd user names like ABC123 rather than something which reflects their real name which makes it hard to find the owner when we download the card and it has ABC123 as the file name
Thanks for pointing to the right code
I tried changing the code to replace 'username' with 'last_name'
However, when I download a membership card it was still the same ie usernane-planid.pdf
I think the reason is that the PDF name for the membership card is generated when the membership is created.
So this change in code would only apply to any new memberships after the code was changed and not to existing memberships
Am I correct?
I forgot to ask: Where you download member card? The code I'm talking about will work for the case users download member card from their user profile. Maybe you are downloading member cards from administrator area?
Thank you very much. I replaced 'username' with 'last_name' So Pdf name is now 'LASTNANE_Plan-id'
So now I should copy my new code to under my Template folder to TEMPLATENAME/html/com_osmembership/???
Also is Plan Name available? It would be nice to replace the digit from plan id with Plan Name.