How to change pdf-ticket file name?

  • Navruz
  • Topic Author
  • Offline
  • New Member
  • New Member
More
4 years 7 months ago #127990 by Navruz
How to change pdf-ticket file name? was created by Navruz
How to change file name of pdf-ticket? "ticket_xxxxx.pdf" to "invitation.pdf" for example.

Please Log in or Create an account to join the conversation.

More
4 years 7 months ago #127993 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic How to change pdf-ticket file name?
Hello Navruz

It will require customizing code in several files in the extension and will prevent you from updating to future releases of the extension

So better, use it as how it's for now

Tuan
The following user(s) said Thank You: Navruz

Please Log in or Create an account to join the conversation.

  • Navruz
  • Topic Author
  • Offline
  • New Member
  • New Member
More
4 years 7 months ago #127994 by Navruz
Replied by Navruz on topic How to change pdf-ticket file name?
Thank you for answer, but in my case I should translate it, and it will be better to find the files and rename. So I would be appreciate if you tell which files I should touch.

Please Log in or Create an account to join the conversation.

More
4 years 7 months ago #128015 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic How to change pdf-ticket file name?
Hello

1. First file is components/com_eventbooking/helper/ticket.php, method components/com_eventbooking/helper/ticket.php

(This changes name of the generated ticket file)

2. Second file is components/com_eventbooking/helper/mail.php, method sendEmails

(This changes name of ticket file which is attached to the email)

3. Third is components/com_eventbooking/controller/registrant.php, method download_ticket

(This changes name of the ticket file which is downloaded - for example, from Registration History page)

Please starts with these files and let us know if you have more questions

Regards,

Tuan
The following user(s) said Thank You: Navruz

Please Log in or Create an account to join the conversation.

  • Navruz
  • Topic Author
  • Offline
  • New Member
  • New Member
More
4 years 7 months ago #128023 by Navruz
Replied by Navruz on topic How to change pdf-ticket file name?
Thank you Tuan Pham Ngoc, we did it and it works as we wanted!

Please Log in or Create an account to join the conversation.

Moderators: Tuan Pham Ngoc