Updating the Add to Wallet link in a customized ticket theme

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.

  1. Update FooEvents for WooCommerce to version 2.0.35 or newer.
  2. Back up your customized ticket theme before editing it.
  3. Open the theme’s ticket.php file in a code editor.
  4. Find the “Add to wallet” button. Its link may look like this:
    href="<?php echo esc_attr( site_url() ); ?>/wp-admin/admin-ajax.php?action=fooevents_wallet_pass&ticket=<?php echo $ticket['ID']; ?>"
  5. Replace the entire href attribute with:
    href="<?php echo esc_url( $addtowallet_url ); ?>"

    Keep the button’s text, styling, and surrounding code unchanged. FooEvents automatically prepares the correct wallet URL.
  6. Save and upload the updated file. If you use different customized themes for email and PDF tickets, update both.
  7. Generate a new test ticket and check the wallet link in the email and PDF. Confirm that it opens the correct wallet pass while logged out.

Previously sent emails and saved PDFs retain their original links. Use newly generated tickets when testing.

If you cannot locate the button or are unsure which file to edit, contact FooEvents support before making changes.

Hai bisogno di supporto?

Non trovi la risposta di cui hai bisogno? Il nostro team è qui per aiutarti, Contattami!