PDF tickets Extension / problems
Hi, Ilkka. Is there a reason to move from the old extension to the new one if the old one is still working for you?
Saving the file to the uploads directory happens because of the $dest = ‘F’ from https://github.com/moderntribe/products-extensions/blob/master/tribe-ext-pdf-tickets/index.php#L760-L774
As far as custom styling goes, I’d point you to https://mpdf.github.io/css-stylesheets/introduction.html
After reviewing all this information, feel free to request what you think you’ll need to move forward with your project.
This is correct.
If using alongside each other, you could use version 1.0.0 of the Display and Print Tickets extension, which didn’t have the PDF functionality.
However, both of the issues you brought up seem solvable via the new PDF Tickets extension, and I’ll be glad to assist you with solving your needs with it, even updating it as needed to support use cases we can understand.
I understand your requests but would need to know exactly what you’d want/need.
You’re welcome to share screenshots, code snippets, whatever else you need to fully communicate your request.
Thanks for your help.
I have two problems.
1. On many places i am providing a link to electronic ticket “View ticket”. With pdf extension i am not sure how to generate this link.
2. The second problem is that i would like to have the ticket always updated when it is viewed.
3. The proper styling of the ticket i believe i am able to achieve when i start focusing on it.
I hope you are following what i am trying to achieve.
I have been making some tests and it seems that i can use both pdf tickets extension and print&view 2.0 tickets extension at the same time. However i feel that this is not maybe the best practice and would like to get this pdf tickets working for me. Can you verify that you are going to be stop support for print&view extension, if you are.
One crucial thing for the pdf tickets extension. It is naming the file as tribe_tickets_….pdf how can i change that. As this naming with tribe_tickets is confusing to our customers as they really do not have any idea of tribe_tickets. So better idea would be having my domain name on the file. How can i change this?
And where are all the pdf files stored? In one location?
Any ideas for this?
Yes i need help styling it.
I am working on styling the pdf. Doing some tests but it seems that something is really messing it up as normal css styling is not really working on it. Sometimes it is but mostly not. I have created a different print rules for it which does not work mostly. I do not know if it is the instyle css for older email clients messing it up.
Seems to me that there should be a different template for the pdf ticket or i have something really wrong in the ticket template.
Anyways styling it seems to be impossible. I have read the article you pointed me to.
Are you customizing /wp-content/plugins/event-tickets/src/views/tickets/email.php via a template override (per our Themer’s Guide) at [your-active-child-theme]/tribe-events/tickets/email.php
Basically, the PDF is a print view of the actual email they receive and modifying this email.php file is what would go into both the email client and the PDF.
Is this not your experience or are you wanting styling in the PDF separate from the email styling? Whichever it is, please provide details and explanation.
The correct folder name is tickets. And the file is from the following path:
1. We got the links for the tickets working. So we managed to find the correct details from the database for generating the link.
2. Also the file for the pdf naming we managed to do with our own domain name.
So these are not a problem anymore. Only the styling of the pdf.
I’m glad you got things sorted.
Because it seems you’re only missing something simple like padding/margin, I’d suggest getting things to work without the use of !important
I’m recommending this until https://github.com/mpdf/mpdf/issues/524 is resolved.
Please let me know how your troubleshooting goes.
Thanks for your reply. Removing all !important does not have any effect on the pdf. The pdf still looks exactly same. Originally i think the important rules came from email.php template. However it does not have any effect. The Emailed ticket is 100% accurate and the pdf conversion is not. No rules are working for the pdf.
Being just curious how are your results turning out from pdf conversion. If you make a pdf ticket from your system is the generated pdf as it should be?
Any other suggestions for this…
If you want additional help with mPDF styling, please utilize https://stackoverflow.com/questions/tagged/mpdf
Hey there! This thread has been pretty quiet for the last three weeks, so we’re going to go ahead and close it to avoid confusion with other topics. If you’re still looking for help with this, please do open a new thread, reference this one and we’d be more than happy to continue the conversation over there.
Thanks so much!
The Events Calendar Support Team
Ilkka, we’ve published an update to PDF Tickets at https://theeventscalendar.com/extensions/pdf-tickets/
Version 1.1.0 auto-detects when something is out-of-date, such as if the Event’s details are changed, and auto-deletes these out-of-date PDFs.
See the changelog for the new deletion methods that exist, which you could use in your own customizations. Please open a new ticket if you need additional support on this or another issue regarding PDF Tickets.
Thanks for contributing by sharing your use case!