{"id":151022,"date":"2026-11-19T00:34:40","date_gmt":"2026-11-19T07:34:40","guid":{"rendered":"https:\/\/help.fooevents.com\/?post_type=docs&#038;p=151022"},"modified":"2026-11-19T00:34:42","modified_gmt":"2026-11-19T07:34:42","slug":"updating-the-add-to-wallet-link-in-a-customized-ticket-theme","status":"publish","type":"docs","link":"https:\/\/help.fooevents.com\/cs\/docs\/topics\/third-party-integration\/addtowallet\/updating-the-add-to-wallet-link-in-a-customized-ticket-theme\/","title":{"rendered":"Updating the Add to Wallet link in a customized ticket theme"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">Older customized ticket themes may generate wallet links without the hash required by current versions of FooEvents. Without the matching ticket hash, the FooEvents wallet link will fail validation and access to the wallet pass will be denied.<br><br>Follow these steps to update the link while preserving your customizations.<\/p>\n\n\n\n<ol start=\"1\" class=\"wp-block-list\">\n<li><strong>Update FooEvents for WooCommerce<\/strong> to version 2.0.35 or newer.<\/li>\n\n\n\n<li><strong>Back up your customized ticket theme<\/strong> before editing it.<\/li>\n\n\n\n<li><strong>Open the theme\u2019s <code>ticket.php<\/code> file<\/strong> in a code editor.<\/li>\n\n\n\n<li><strong>Find the \u201cAdd to wallet\u201d button.<\/strong> Its link may look like this:<br><code>href=\"&lt;?php echo esc_attr( site_url() ); ?>\/wp-admin\/admin-ajax.php?action=fooevents_wallet_pass&amp;ticket=&lt;?php echo $ticket['ID']; ?>\"<\/code><\/li>\n\n\n\n<li><strong>Replace the entire <code>href<\/code> attribute<\/strong> with:<br><code>href=\"&lt;?php echo esc_url( $addtowallet_url ); ?>\"<\/code><br><br>Keep the button\u2019s text, styling, and surrounding code unchanged. FooEvents automatically prepares the correct wallet URL.<\/li>\n\n\n\n<li><strong>Save and upload the updated file.<\/strong> If you use different customized themes for email and PDF tickets, update both.<\/li>\n\n\n\n<li><strong>Generate a new test ticket<\/strong> and check the wallet link in the email and PDF. Confirm that it opens the correct wallet pass while logged out.<\/li>\n<\/ol>\n\n\n\n<p class=\"wp-block-paragraph\">Previously sent emails and saved PDFs retain their original links. Use newly generated tickets when testing.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">If you cannot locate the button or are unsure which file to edit, contact FooEvents support before making changes.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Older customized ticket themes may generate wallet links without the hash required by current versions of FooEvents. Without the matching ticket hash, the FooEvents wallet link will fail validation and access to the wallet pass will be denied. Follow these steps to update the link while preserving your customizations. Previously sent emails and saved PDFs [&hellip;]<\/p>\n","protected":false},"featured_media":0,"parent":144663,"menu_order":0,"template":"","doc_tag":[],"class_list":["post-151022","docs","type-docs","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/help.fooevents.com\/cs\/wp-json\/wp\/v2\/docs\/151022","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/help.fooevents.com\/cs\/wp-json\/wp\/v2\/docs"}],"about":[{"href":"https:\/\/help.fooevents.com\/cs\/wp-json\/wp\/v2\/types\/docs"}],"version-history":[{"count":4,"href":"https:\/\/help.fooevents.com\/cs\/wp-json\/wp\/v2\/docs\/151022\/revisions"}],"predecessor-version":[{"id":151026,"href":"https:\/\/help.fooevents.com\/cs\/wp-json\/wp\/v2\/docs\/151022\/revisions\/151026"}],"up":[{"embeddable":true,"href":"https:\/\/help.fooevents.com\/cs\/wp-json\/wp\/v2\/docs\/144663"}],"wp:attachment":[{"href":"https:\/\/help.fooevents.com\/cs\/wp-json\/wp\/v2\/media?parent=151022"}],"wp:term":[{"taxonomy":"doc_tag","embeddable":true,"href":"https:\/\/help.fooevents.com\/cs\/wp-json\/wp\/v2\/doc_tag?post=151022"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}