FooEvents pour WooCommerce integrates with AddToWallet to allow your attendees to add FooEvents tickets with QR codes to Apple Wallet ou 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
Create an AddToWallet account
- Visitez le site addtowallet.co site web
- 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 site web
- Aller à la page 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 site web
- Aller à la page API page
- Copy your API key from the top left corner
- Aller à FooEvents > Paramètres > Intégration 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
- Aller à Produits in your WordPress Admin Dashboard
- Edit the event which requires pass functionality
- Aller à la page Intégration des événements onglet
- Activer Display AddToWallet link on ticket?
- Set an 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 navigateur, 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.