{"id":1960968,"date":"2024-07-11T02:22:10","date_gmt":"2024-07-11T06:22:10","guid":{"rendered":"https:\/\/staging.theeventscalendar.com\/knowledgebase\/?p=1960968"},"modified":"2025-06-09T23:51:01","modified_gmt":"2025-06-10T03:51:01","slug":"customizing-pdf-ticket-styles","status":"publish","type":"post","link":"https:\/\/staging.theeventscalendar.com\/knowledgebase\/customizing-pdf-ticket-styles\/","title":{"rendered":"Customizing PDF Ticket Styles"},"content":{"rendered":"\n<p>Using <strong>Event Tickets Wallet Plus<\/strong>, customizing event ticket PDFs to provide additional information often involves modifying files located in the <code>event-tickets-plus\\src\\views\\tickets-wallet-plus\\pdf\\<\/code> directory. One common customization is adding a custom note below the event details. For example, if one needs to include special instructions, messages, or personalized greetings on the ticket, they would typically modify the <code>body.php<\/code> file.<\/p>\n\n\n\n<p class=\"has-background\" style=\"background-color:var(--global-palette8)\"><strong>Note:<\/strong> This is only available with <a href=\"https:\/\/theeventscalendar.com\/products\/wallet-plus\/\">Event Tickets Wallet Plus<\/a>.<\/p>\n\n\n\n<p>To start with, let&#8217;s see what files are being loaded when the PDF file is generated. There are four files needed to generate the PDF file, as seen in the template file included in <code>pass.php<\/code> located at <code>event-tickets-plus\\src\\views\\tickets-wallet-plus\\pdf\\pass.php<\/code>.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"345\" src=\"https:\/\/images.theeventscalendar.com\/kb\/uploads\/2024\/07\/Untitled-design-1024x345.png\" alt=\"\" class=\"wp-image-1963703\" srcset=\"https:\/\/images.theeventscalendar.com\/kb\/uploads\/2024\/07\/Untitled-design-1024x345.png 1024w, https:\/\/images.theeventscalendar.com\/kb\/uploads\/2024\/07\/Untitled-design-300x101.png 300w, https:\/\/images.theeventscalendar.com\/kb\/uploads\/2024\/07\/Untitled-design-768x259.png 768w, https:\/\/images.theeventscalendar.com\/kb\/uploads\/2024\/07\/Untitled-design-1536x518.png 1536w, https:\/\/images.theeventscalendar.com\/kb\/uploads\/2024\/07\/Untitled-design.png 2048w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure><\/div>\n\n\n<ul class=\"wp-block-list\">\n<li><code>styles.php \u2192 This loads the PDF's style.<\/code><\/li>\n\n\n\n<li><code>header.php<\/code><\/li>\n\n\n\n<li><code>body.php<\/code><\/li>\n\n\n\n<li><code>footer.php<\/code><\/li>\n<\/ul>\n\n\n\n<p>See the image below for how it is structured.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"516\" height=\"690\" src=\"https:\/\/images.theeventscalendar.com\/kb\/uploads\/2024\/06\/WP-pdf.png\" alt=\"\" class=\"wp-image-1960982\" srcset=\"https:\/\/images.theeventscalendar.com\/kb\/uploads\/2024\/06\/WP-pdf.png 516w, https:\/\/images.theeventscalendar.com\/kb\/uploads\/2024\/06\/WP-pdf-224x300.png 224w\" sizes=\"auto, (max-width: 516px) 100vw, 516px\" \/><\/figure><\/div>\n\n\n<p>Depending on your layout and customization, you should modify one (or more) file. All the files are located at <code>event-tickets-plus\\src\\views\\tickets-wallet-plus\\pdf<\/code><\/p>\n\n\n\n<p>As an example, let&#8217;s say that you need to add a note below the event detail, in this case, you should modify <code>body.php<\/code> file. To accomplish this, make a copy of <code>body.php<\/code> and upload it at<code> [your-theme]\/tribe\/tickets-wallet-plus\/pdf\/pass.php<\/code><\/p>\n\n\n\n<p>Open the file in a text editor and add your own custom note, similar to the example below:&nbsp;<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: php; title: ; notranslate\" title=\"\">\n&lt;?php\n\/**\n * PDF Pass: Body\n *\n * Override this template in your own theme by creating a file at:\n * &#x5B;your-theme]\/tribe\/tickets-wallet-plus\/pdf\/pass\/body.php\n *\n * See more documentation about our views templating system.\n *\n * @link https:\/\/evnt.is\/event-tickets-wallet-plus-tpl Help article for Wallet Plus template files.\n *\n * @since 1.0.0\n *\n * @version 1.0.0\n *\/\n\n?&gt;\n&lt;tr&gt;\n\t&lt;td height=&quot;670&quot;&gt;\n\t\t&lt;table class=&quot;tec-tickets__wallet-plus-pdf-body-table&quot;&gt;\n\t\t\t&lt;tr&gt;\n\t\t\t\t&lt;td&gt;\n\t\t\t\t\t&lt;?php $this-&gt;template( &#039;pass\/body\/post-title&#039; ); ?&gt;\n\t\t\t\t&lt;\/td&gt;\n\t\t\t&lt;\/tr&gt;\n\t\t\t&lt;tr&gt;\n\t\t\t\t&lt;td width=&quot;320&quot;&gt;\n\t\t\t\t\t&lt;table class=&quot;tec-tickets__wallet-plus-pdf-ticket-info-table&quot;&gt;\n\t\t\t\t\t\t&lt;tr&gt;\n\t\t\t\t\t\t\t&lt;td width=&quot;300&quot;&gt;\n\t\t\t\t\t\t\t\t&lt;?php $this-&gt;template( &#039;pass\/body\/ticket-info&#039; ); ?&gt;\n\t\t\t\t\t\t\t\t&lt;p&gt;This is my custom note&lt;\/p&gt;\n\t\t\t\t\t\t\t&lt;\/td&gt;\n\t\t\t\t\t\t&lt;\/tr&gt;\n\t\t\t\t\t&lt;\/table&gt;\n\t\t\t\t&lt;\/td&gt;\n\t\t\t\t&lt;td&gt;\n\t\t\t\t\t&lt;?php $this-&gt;template( &#039;pass\/body\/sidebar&#039; ); ?&gt;\n\t\t\t\t&lt;\/td&gt;\n\t\t\t&lt;\/tr&gt;\n\t\t&lt;\/table&gt;\n\t&lt;\/td&gt;\n&lt;\/tr&gt;\n<\/pre><\/div>\n\n\n<p>Following these steps enables users to quickly include personalized touches into their event ticketing PDF styling, providing attendees with a more informative and engaging experience. This customization enhances the practical information provided and aligns the ticketing process with the unique branding and communication needs of their event.<\/p>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Using Event Tickets Wallet Plus, customizing event ticket PDFs to provide additional information often involves modifying files located in the event-tickets-plus\\src\\views\\tickets-wallet-plus\\pdf\\ directory. One common customization is adding a custom note below the event details. For example, if one needs to include special instructions, messages, or personalized greetings on the ticket, they would typically modify the&#8230;<\/p>\n","protected":false},"author":27,"featured_media":1955565,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"_kad_blocks_custom_css":"","_kad_blocks_head_custom_js":"","_kad_blocks_body_custom_js":"","_kad_blocks_footer_custom_js":"","_swpsp_post_exclude":false,"_kad_post_transparent":"","_kad_post_title":"","_kad_post_layout":"","_kad_post_sidebar_id":"","_kad_post_content_style":"","_kad_post_vertical_padding":"","_kad_post_feature":"","_kad_post_feature_position":"","_kad_post_header":false,"_kad_post_footer":false,"ep_exclude_from_search":false,"footnotes":""},"categories":[1],"tags":[],"stellar-product-taxonomy":[],"class_list":["post-1960968","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-uncategorized"],"acf":[],"taxonomy_info":{"category":[{"value":1,"label":"Uncategorized"}]},"featured_image_src_large":["https:\/\/images.theeventscalendar.com\/kb\/uploads\/2023\/02\/social-share-1024x538.png",1024,538,true],"author_info":{"display_name":"Abz","author_link":"https:\/\/staging.theeventscalendar.com\/knowledgebase\/author\/abz\/"},"comment_info":0,"category_info":[{"term_id":1,"name":"Uncategorized","slug":"uncategorized","term_group":0,"term_taxonomy_id":1,"taxonomy":"category","description":"","parent":0,"count":139,"filter":"raw","term_order":"0","cat_ID":1,"category_count":139,"category_description":"","cat_name":"Uncategorized","category_nicename":"uncategorized","category_parent":0}],"tag_info":false,"_links":{"self":[{"href":"https:\/\/staging.theeventscalendar.com\/knowledgebase\/wp-json\/wp\/v2\/posts\/1960968","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/staging.theeventscalendar.com\/knowledgebase\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/staging.theeventscalendar.com\/knowledgebase\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/staging.theeventscalendar.com\/knowledgebase\/wp-json\/wp\/v2\/users\/27"}],"replies":[{"embeddable":true,"href":"https:\/\/staging.theeventscalendar.com\/knowledgebase\/wp-json\/wp\/v2\/comments?post=1960968"}],"version-history":[{"count":10,"href":"https:\/\/staging.theeventscalendar.com\/knowledgebase\/wp-json\/wp\/v2\/posts\/1960968\/revisions"}],"predecessor-version":[{"id":1965609,"href":"https:\/\/staging.theeventscalendar.com\/knowledgebase\/wp-json\/wp\/v2\/posts\/1960968\/revisions\/1965609"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/staging.theeventscalendar.com\/knowledgebase\/wp-json\/wp\/v2\/media\/1955565"}],"wp:attachment":[{"href":"https:\/\/staging.theeventscalendar.com\/knowledgebase\/wp-json\/wp\/v2\/media?parent=1960968"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/staging.theeventscalendar.com\/knowledgebase\/wp-json\/wp\/v2\/categories?post=1960968"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/staging.theeventscalendar.com\/knowledgebase\/wp-json\/wp\/v2\/tags?post=1960968"},{"taxonomy":"stellar-product-taxonomy","embeddable":true,"href":"https:\/\/staging.theeventscalendar.com\/knowledgebase\/wp-json\/wp\/v2\/stellar-product-taxonomy?post=1960968"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}