Help Desk

PDF tickets Extension / problems

  • Posts: 128 Topics: 43
    | Permalink

    Hi,

    I am moving to your new extension from print&view tickets extension. But i have some problems with these PDF tickets.

    1. We have built a ticket template that reacts to check in. So that after check in our digital tickets receive a check in label. Because the pdf is created once (after it is bought) and not always when the link is clicked. Because of this it does not have the changes made from the check in. The previous plugin was always creating the ticket when it was viewed so we could change it on the fly. How can we have the ticket to be created always when it is viewed? Or is there a way to be using the html version for viewing not the pdf (this would be better)?

    2. How we can manipulate the outlook of the pdf? Is there a way to have a style sheet attached to it? As the outlook of the pdf is pretty far away from the html ticket…

    Well i hope we can find some solutions to these problems, because we have been really heavily marketing digital Tickets. That can be changed on the fly. As this change really ruins the idea.

    Thanks.

    Posts: 11242
    | Permalink

    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.

    Posts: 128 Topics: 43
    | Permalink

    Hi,

    The only reason i would be moving to the new extension is that i thought you are going to end supporting the print&view tickets extension?

    Can i use both at the same time? Or just continue using the old print&view tickets which is a better solution for me.

    Thanks.

    Posts: 11242
    | Permalink

    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.

    Posts: 128 Topics: 43
    | Permalink

    Hi,

    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.

    Thanks

    Posts: 128 Topics: 43
    | Permalink

    Hi,

    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.

    ilkka

    Posts: 128 Topics: 43
    | Permalink

    Hi,

    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?

    ilkka

    Posts: 128 Topics: 43
    | Permalink

    Hi,

    Okay i found the pdf tickets in uploads folder.

    ilkka

    Posts: 128 Topics: 43
    | Permalink

    Hi,

    So it seems that if i delete the ticket from the folder, it will be creating the again and it will be updated. Know i have to be making some testing what is the best way to delete the ticket from the folder. Or when…

    Posts: 11242
    | Permalink

    I’m keeping track of these requests and will get answers to you soon.

    However, could you please clarify if you still need custom styling or did you figure that part out on your own?

    Posts: 128 Topics: 43
    | Permalink

    Hi,

    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.

    Thanks

    Posts: 11242
    | Permalink

    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.

    Posts: 128 Topics: 43
    | Permalink
    This reply has been marked as private.
    Posts: 11242
    | Permalink

    What are each of those screenshots of? They both look great.

    Could you please send a .zip containing nothing but your custom email.php file so I can test on my end?

    Posts: 128 Topics: 43
    | Permalink
    This reply has been marked as private.
    Posts: 11242
    | Permalink

    Since that .zip was named “tickets_template”, please confirm if that’s the actual name of your folder. Also, please confirm the full file path of where this folder is located on your system.

    Posts: 128 Topics: 43
    | Permalink

    Hi,

    The correct folder name is tickets. And the file is from the following path:

    /wp-content/themes/Avada-Child-Theme/tribe-events/tickets

    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.

    Thanks.

    ilkka

    Posts: 11242
    | Permalink

    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.

    Posts: 128 Topics: 43
    | Permalink

    Hi,

    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…

    ilkka

    Posts: 11242
    | Permalink

    Could you send me your new email.php that no longer has !important in it that you tested and is working in email but not in PDF?

    Posts: 128 Topics: 43
    | Permalink
    This reply has been marked as private.
    Posts: 11242
    | Permalink
    This reply has been marked as private.
    Posts: 128 Topics: 43
    | Permalink
    This reply has been marked as private.
    Posts: 11242
    | Permalink

    I was asking for a copy of one of your actual emails so I could report to the mPDF team. However, I simplified it and reported just from my own testing: https://github.com/mpdf/mpdf/issues/591

    You can keep an eye out there if you want.

    Posts: 128 Topics: 43
    | Permalink

    Hi,

    Okay thanks. I will see it from there. Lets see what are the results.

    ilkka

    Posts: 11242
    | Permalink

    Sounds good. Thanks for your understanding.

    Posts: 11242
    | Permalink

    Check out https://github.com/mpdf/mpdf/issues/591#issuecomment-354695239

    If you want additional help with mPDF styling, please utilize https://stackoverflow.com/questions/tagged/mpdf

    Posts: 65
    | Permalink

    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

    | Permalink
    Posts: 11242
    | Permalink

    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!