We have a PDF Ticket add-on that generates a PDF Ticket for a registered attendee of an event. By default, there is a simple basic PDF ticket design is created. But if you want you can create your own design PDF ticket. Here I will describe how you can do it very easily.

 

First copy this Folder from the PDF Addon Plugin

woocommerce-event-manager-pdf-ticket/templates/pdf-theme

then paste it into your theme folder, and rename the pdf-theme folder to mage-events-pdf-themes

 

Now create your own theme, create a new PHP file name it as you want. Then open the file and add this line beginning of the file: 

<?php 
// Template Name: YOUR THEME NAME HERE

Now start your Ticket design HTML, You can code as your wish, but remember one thing there are some limitations for CSS attribute for PDF generation. Here is the list of available Hooks: This is the function for pdf body cass style, You can use it as main wrapper class

This is the hook for showing PDF logo which is set in the PDF settings page:

do_action('mep_pdf_logo');

For Showing Company Address:

do_action('mep_pdf_company_address');

Company Phone Number:

 do_action('mep_pdf_company_phone');

Registred Event Name:

do_action('mep_pdf_event_name');

Event Organizer Name:

do_action('mep_pdf_org_name');

Event Start Date:

do_action('mep_pdf_start_date');

Start Time:

do_action('mep_pdf_start_time');

Attendee Info, Its include all the info of attendee which is given by the user during registration:

do_action('mep_pdf_attendee_info');

Event Location:

do_action('mep_pdf_event_location');

For display QR Code:

do_action('mep_qr_code', get_the_permalink());

For Order ID:

do_action('mep_pdf_event_order_id');

Ticket No:

do_action('mep_pdf_event_ticket_no');

Ticket Price:

do_action('mep_pdf_event_ticket_price');

Ticket Type:

do_action('mep_pdf_event_ticket_type');

For displaying Terms Text Title:

do_action('mep_pdf_event_ticket_term_title');

Terms Text:

do_action('mep_pdf_event_ticket_term_text');

I hope you clearly understand the whole scenario but I suggest you check the default.php theme to get a more clear idea about the PDF theme.