FooEvents for WooCommerce integrates with AddToWallet to allow your attendees to add FooEvents tickets with QR codes to Apple Wallet or Google Wallet on their mobile devices.
Sections #
- Create an AddToWallet account
- Purchase AddToWallet credits
- Set up AddToWallet API key
- Update your ticket theme
- Enable the “Add to wallet” link in the ticket
- Add your FooEvents ticket to your Wallet
- Information that will display on the pass
Create an AddToWallet account
- Visit the addtowallet.co website
- Click on the “GET STARTED FOR FREE” button, or go to https://app.addtowallet.co/?ref=FooEvents and click on the “Sign In” button in the top right corner
- Click on “Continue with Google” or enter your email address and follow the instructions to create your account
Purchase AddToWallet credits
- Make sure that you are logged into the addtowallet.co website
- Go to the special Pricing page for FooEvents customers
- Choose the number of passes that you need
- Click on the “Pay Now” button and follow the instructions to complete your purchase
Set up AddToWallet API key
- Make sure that you are logged into the addtowallet.co website
- Go to the API page
- Copy your API key from the top left corner
- Go to FooEvents > Settings > Integration in your WordPress Admin Dashboard
- Paste your API key in the AddToWallet API key field
- Set a logo image in the AddToWallet logo field
Update your ticket theme
Make sure that you are using the most recent “Default ticket theme”. Follow these instructions on how to update your ticket theme.
Alternatively, you can paste the following code snippet directly into your ticket theme’s ticket.php file:
<!-- CREATE WALLET PASS --> <?php if ( ! empty( $ticket['WooCommerceEventsTicketDisplayAddToWallet'] ) && 'off' != $ticket['WooCommerceEventsTicketDisplayAddToWallet'] ) : ?> <span class="no-print"> <br /><br /> <a href="<?php echo site_url(); ?>/wp-admin/admin-ajax.php?action=fooevents_wallet_pass&ticket=<?php echo $ticket['ID']; ?>"> <?php _e( 'Add pass to wallet', 'woocommerce-events' ); ?></a> </span> <?php endif; ?>
Follow these instructions on how to modify ticket theme files directly.
Enable the “Add to wallet” link in the ticket
- Go to Products in your WordPress Admin Dashboard
- Edit the event which requires pass functionality
- Go to the Event Integration tab
- Enable Display AddToWallet link on ticket?
- Set a square AddToWallet logo
- Set an AddToWallet pass background color
- Save your event
Add your FooEvents ticket to your Wallet
- Create a new FooEvents ticket or resend an existing FooEvents ticket
- Click on the “Add pass to wallet” link. If the link opens in a browser, you will first need to scan the QR code that appears on the right-hand side with your device’s camera, alternatively, you can open the link on an iPhone or Android phone and add the ticket to your preferred wallet directly
- Follow the instructions on the screen to add the ticket to your preferred wallet
Once the ticket information is updated in the WordPress Admin Dashboard, the pass in the attendee’s Wallet will also be updated automatically. If the ticket is permanently deleted, then the pass will also be removed from the attendee’s wallet automatically.
Information that can display on the pass
You can set what information should display on the pass if you edit your event and go to the Event Integration tab.
- AddToWallet logo, which should ideally be square.
- AddToWallet image which will be stretched horizontally across the background of the pass.
- AddToWallet pass background color
- AddToWallet card title, which will be displayed in the top bar of the pass next to the logo. By default this will be the event name, but can be changed to custom text.
- AddToWallet card title, which will be the first text to display below the top bar. By default this will be the event name, but can be changed to custom text. You can use the placeholder {var} to display the variation.
- AddToWallet date label. By default this will be the word “Date”, but can be customized.
- AddToWallet date value. By default this will be the event’s date and time, or the booking slot date and time for “Bookable” events, but can be customized.
- AddToWallet attendee label. By default this will the word “Attendee”, but can be customized to say e.g. “Ticket Holder”.
- Attendee’s first and last name
- AddToWallet location label. By default this will be the word “Location”, but can be customized.
- Ticket number
- QR code
- Event organizer details, which is the phone number and email address in the “Organizer Contact Details” section in the Event Settings tab. This information, together with the website URL, will only be accessible when viewing more information about the pass.