FooEvents for WooCommerce
Updated 30 May 2018
FooEvents adds seamless event and ticketing functionality to WooCommerce. The plugin adds additional event specific fields and options to the existing WooCommerce products which allows you to create branded event tickets that can be sold on your own web-site.
Installing WordPress
What is WordPress?
WordPress is open source software you can use to create a beautiful website, blog, or app. WordPress is a well trusted solution and powers 28% of the worlds websites, from hobby blogs to the biggest news sites online. Extend WordPress with over 45,000 plugins to help your website meet your needs. Add an online store, galleries, mailing lists, forums, analytics, and much more.
Do I need to use WordPress?
Yes! FooEvents is a WordPress extension and adds event and ticketing functionality to WordPress.
WordPress Installation Instructions
If you do not already have a working WordPress installation you will first need to install WordPress on your web server: https://codex.wordpress.org/Installing_WordPress
What else do I need?
You will also need to install WooCommerce which is an ecommerce system designed for WordPress. You can find out more about it here.
Installing Woocommerce
What is WooCommerce?
WooCommerce is a WordPress plugin. FooEvents is an extension plugin that adds additional event and ticketing functionality to WooCommerce.Why do I need to install WooCommerce?
FooEvents extends the ecommerce functionality provided by WooCommerce and adds ticketing and event capabilities. Before installing FooEvents you must FIRST install WooCommerceWooCommerce Installation Instructions
If you are new to WooCommerce it is recommended that you go through the WooCommerce documentation: http://docs.woothemes.com/documentation/plugins/woocommerce/getting-started/Installing FooEvents
Requirements
- WordPress Website
- WooCommerce plugin installed
- Valid FooEvents license
- FooEvents Plugin files
Installation Steps
- Ensure that WordPress and WooCommerce are installed (see above requirements)
- Download the FooEvents for WooCommerce plugin (From FooEvents.com or CodeCanyon)
- Login to your WordPress Admin Area
- Upload the FooEvents plugin. There are two ways you could upload the plugin files:
- Go to Plugins > Add New in the main menu. Upload the FooEvents plugin zip file
- Using an FTP client, upload the plugin zip file to the following location on your web server: /wp-content/plugins/
- Click on ‘Plugins’ in the main menu
- Find the FooEvents for WooCommerce plugin and activate it
- Congratulations! The plugin is now installed and ready to be configured for your event
Setup an Event Product
Overview
FooEvents essentially extends WooCommerce products and add event and ticketing functionality. FooEvents adds an event tab to the WooCommerce product settings. The event tab provides various fields that can be used to configure your event and ticket.Instructions
- To create and event, go to Products > Add Product in the main menu
- Complete the title, body, description, tags, categories, featured image and gallery as needed
- Go to the Product Data tab set and select ‘Events’
- To activate event functionality set the ‘Is this product an event?’ dropdown to ‘yes’. Doing so will reveal additional fields that can be used to create your event
- Complete the event tab fields by entering your events information
Event settings
Date | The date that the event is scheduled to take place |
Start time | The time that the event is scheduled to start |
End time | The time that the event is scheduled to end |
Venue | The venue where the event will be held |
GPS Coordinates | The venue’s GPS coordinates |
Google Maps Coordinates | The GPS coordinates used to determine the pin position on the Google map that is displayed on the event page. NB: Please ensure you use the following GPS format:
|
Directions | Text directions explaining how to find the venue |
Phone | Event organizer’s landline or mobile phone number |
Event organizer’s email address | |
Ticket logo | The logo which will be displayed on the ticket in JPG or PNG format
|
Ticket border color | The color of the ticket border |
Ticket buttons colour | The color of the ticket button |
Ticket button text colour | The color of the ticket button’s text |
Include purchaser / attendee details on ticket? | Selecting this will display the purchaser or attendee details on the ticket |
Display 'Add to calendar' on ticket? | Selecting this will display an 'Add to calendar' button on the ticket. Clicking this will generate a .ics file. |
Display date and time on ticket? | Selecting this will display the time and date of the event on the ticket |
Display barcode on ticket? | Selecting this will display the barcode on the ticket |
Display price on ticket? | Selecting this will display the ticket price on the ticket |
Capture individual attendee details? | Selecting this will add attendee capture fields on the checkout screen |
Capture attendee telephone? | Selecting this will add a telephone number field to the attendee capture fields on the checkout screen |
Capture attendee company? | Selecting this will add a company field to the attendee capture fields on the checkout screen |
Capture attendee designation? | Selecting this will add a designation field to the attendee capture fields on the checkout screen |
Email tickets? | Selecting this will email the tickets to the attendee once the order has been completed NB: Once you have completed these fields please make sure that you save your post before proceeding! |
Ticket types and variations
You can create various ticket types using WooCommerce's attributes and variations functionality. To do this please follow these instructions:- Go to the ‘Attributes’ tab in the Product Data panel
- Create a new attribute called ‘Ticket Type’. It’s very important that the attribute is called this as this is the name that is used to reflect the ticket type on the actual ticket
- Add the name of each ticket type under values and separate them with the pipe symbol ‘|’ e.g. VIP | General | Early Bird
- Make sure that you select ‘Visible on the product page’ and ‘Used for variations’
- Save the attributes
- Click on the ‘Attributes’ tab in the Product Data panel
- Add a variation for each ticket type and specify the relevant ticket criteria (price, in stock etc.)
- Make sure that you select ‘Enabled’
- We recommend that you select ‘Virtual’ if you do not want the shipping information to be displayed on the checkout screen
- Save/update the post once all variations have been added
- The ticket type variations will now display as ticket options when purchasing a ticket
Global settings
FooEvents provides various global settings that can effect the behavior of your events and tickets. You can also customize the appearance of the FooEvents Pro app via these settings.- Go to WooCommerce -> Settings
- Click on the 'Events' tab
- Change the default event settings as required
- Save changes
Event Settings
Global ticket border | Sets the color of the border around the ticket |
Global ticket button | Sets the color of the button on the ticket |
Global ticket button text | Sets the color of the button text on the ticket |
Global ticket logo | URL to ticket logo file |
Change add to cart text | Changes "Add to cart" to "Book ticket" for event products |
Hide event details tab | Hides the event details tab on the product page |
Hide unpaid tickets in app | Hides the unpaid tickets in the iOS and Android apps |
Email tickets to attendees | Sends tickets to attendees rather than the purchaser. Make sure "Capture individual attendee details?" is enabled in your products |
Hide unpaid tickets | Hides unpaid tickets in ticket admin |
Google Maps API key | Enable Google Maps on product page. |
Event Settings
The following settings can be used to customize the appearance of the FooEvents Check-ins Pro app once you have logged in. You will find more information on the pro app and a download link here: http://www.fooevents.com/apps/proApp logo | URL to the image that will display on the app's sign-in screen. A PNG image with transparency and a width of around 940px is recommended |
Color | Used for the app's top navigation bar and sign-in button |
Text color | Used for the text in the app's top navigation bar and sign-in button |
Background color | Used for the sign-in screen's background |
Sign-in screen text color | Used for the text beneath the logo on the app's sign-in screen |
Barcode and ticket theme directories
FooEvents stores barcodes and ticket theme within the /wp-content/uploads/fooevents directory.Modifying ticket theme templates
- In your WordPress theme create the following directory structure: fooevents/templates
- Copy the template files that you would like to modify from the wp-content/plugins/fooevents/templates directory to the directory that you created in Step 1
- Modify the template files as required
Adding a purchased FooEvents HTML ticket theme
- Navigate to Tickets > Tickets Themes in your WordPress Admin Area
- Click the 'Browse' button and navigate to the .zip theme folder that you downloaded from the FooEvents website
- Click the 'Upload Ticket Theme' button
- The themes you purchased will now be available for use in your event products
Sending an HTML ticket preview
- Navigate to Tickets > Tickets Themes in your WordPress Admin Area
- Click the theme that you wish to preview. The default FooEvents ticket theme is named “Default”
- In the text input box, enter the email address where you would like to send the preview and click the “Send Ticket Preview” button
- The ticket will then be sent to the email address you specified
- Please Note: The ticket data is pre-populated test data and it is not from one of your valid events. Tickets sent via the preview option will not scan using the 'FooEvents Check-ins' app, nor will they match any of your generated tickets
Modifying a ticket theme template
- Copy the theme you wish to overwrite in wp-content/uploads/fooevents/themes/[FOOEVENTS-THEME-NAME] TO wp-content/themes/[WORDPRESS-THEME]/[FOOEVENTS-THEME-NAME]
- Make changes as required to the theme that you copied across
Managing tickets
Every ticket that is attached to a completed WooCommerce order will appear in the ‘Tickets’ admin menu.To resend a ticket
- Open the ticket and specify the email address that the ticket should be resent to in the resend option box
- Click the resend button
Tickets statuses
Tickets will have one of the following ticket statuses:- “Not checked in”
- “Checked in”
- “Canceled”
Manually creating tickets
There are two ways to manually create tickets:1. From the WordPress Admin Area
- Click on the “Add new” button which you will find under "Tickets"
- Select the event name for the specified event
- Fill out the ticket form and click the “Publish” button to create the ticket
- Please Note: Tickets are NOT automatically sent out after creating the ticket. If you would like to email the ticket to the attendee, click on the 'Resend'”' button on the ticket information screen.
2. From your website
- Complete the purchase process on the front-end of your website
- Once you reach the payment screen, DO NOT make payment, instead go to the WooCommerce orders screen and mark the order as completed
- Tickets will be sent out using this method depending on your events settings
Barcodes
What is a barcode?
A barcode is a machine-readable code in the form of numbers and a pattern of parallel lines of varying widths, printed on a commodity and used especially for stock control.How does FooEvents use barcodes?
Every ticket that is generated contains a unique barcode that is rendered using the barcode code 128 standard. If you own a scanner that can read ordinary 1D barcodes then you have the option of scanning tickets to find them quickly. We created the FooEvents Attendee Check-ins plugin to provide a better experience when using a 1D barcode scanner. The 'FooEvents Check-ins' apps can also be used to check-in people at events on your tablet or smartphone device.Using the Event Check-ins Pro Auto check-in
If you’ve purchased the unbranded pro version of the FooEvents Check-ins app, you can make use of the auto check-in functionality by enabling it in the app’s settings panel. Auto check-in significantly speeds up the check-in process by checking in attendees automatically when their ticket is scanned instead of first opening the ticket and requiring you to tap on the ‘Confirm’ button to check in that attendee. If the ticket is unpaid, canceled or already checked in, you will be notified as you scan the ticket. You can still tap to open the ticket if you need to see its details.Customizing the Event Check-ins Pro app’s branding
If you’ve purchased the unbranded pro version of the FooEvents Check-ins app, you can customize the look of it to suit your brand. By changing the settings of your FooEvents for WooCommerce plugin, you are able to specify various colors and provide a URL to a logo that should display in the app. You can upload your logo in the WordPress Media library and then insert the generated URL to the image file in the settings panel input for your logo. A PNG image with transparency and a width of around 940px is recommended. You are able to change the colors of the following:- the top navigation bar and sign-in button
- the text that appears in the top navigation bar and sign-in button
- the sign-in screen’s background
- the text that appears on the sign-in screen
Using the FooEvents Check-ins app
- Download the 'FooEvents Check-ins' app from either the Play Store (Android) or iTunes (iOS) http://www.fooevents.com/apps/
- Enter the following details on the login screen:
- URL - Your website URL (e.g. www.YOURWEBSITE.com)
- Username & Password - The access details of one of your WordPress users (e.g. 'admin')
Download CSV attendees list
Click on the button labelled "Download CSV of Attendee" which will appear when you edit your product in the “Event” settings tab in your WordPress/WooCommerce Admin Area. This will generate a list of attendees who have been allocated tickets for that particular event.Modifying the ticket template
- In your WordPress theme create the following directory structure: fooevents/templates/email
- Copy the template files in the wp-content/plugins/fooevents/templates/email directory to the directory that you created in Step 1
- Modify the template files as required
How FooEvents stores data
Database
FooEvents stores basic plugin configurations within the WordPress database using standard WordPress methods. All settings and configurations are stored within the wp_options table. FooEvents extends WooCommerce product functionality to create event products. This is done by adding certain meta to products using standard WordPress and WooCommerce methods. All event meta is stored within the wp_postmeta table where the post_id matches the product ID.On checkout, attendee, ticket and customer data is stored as meta within the WooCommerce order custom post type in the wp_postmeta table. This data is stored where the meta_key = "WooCommerceEventsOrderTickets" and where the post_id matches the custom post type order ID.
FooEvents uses a custom post type to create event tickets. This custom post type is named "event_magic_tickets" and is stored in the wp_posts table. Meta is added to the ticket custom post type which contains ticket details and is stored within the wp_postmeta table where the post_id matches the "event_magic_ticket" ID.
ICS files
When the "Display 'Add to calendar' on ticket?" option is enabled in product event settings, this adds functionality that end users can download .ics files to add events to their calendars. This file is generated as soon as the end user clicks the "Add to calendar" button on their ticket and is not automatically updated remotely. The .ics files contain basic event information such as event name, date and time.CSV export files
FooEvents contains functionality that allows the event organizer to export all event attendees and their details. This export feature is intended to be used as a backup in case the website administrator doesn't have access to attendee check-in functionality, as found in the FooEvents Express Check-in plugin and FooEvents Check-ins app for example. Information that is stored in this CSV export includes attendee and purchaser details, completed custom fields and selected variations and billing information (e.g. address, ticket check-in statuses).NB: The CSV export file is portable and printable and therefore appropriate care should be taken to keep this file safe by the site administrator and event staff.
Mobile Apps
The FooEvents Check-ins app uses the built-in WordPress XML-RPC to communicate with FooEvents plugins in order to retrieve event and attendee data as well as process ticket check-ins. Data that is transferred between the plugins and app includes: Attendee and purchaser data, event data, ticket check-in status.The app has offline features and therefore caches retrieved data on the device. The cached file is stored using standard iOS and Android development practices.
Barcodes
FooEvents generates barcodes based on the unique ticket ID generated by the FooEvents plugin. Barcodes are used for ticket check-ins. The barcodes are stored in the 'wp-content/uploads/fooevents/barcodes' directory. The barcode filename is generated using the following formats:- [unique-ticket-hash]-[unique-ticket-ID].jpg
- [unique-ticket-hash]-[unique-ticket-ID].png
PDF Tickets
When the FooEvents PDF Tickets plugin is active and enabled, PDF copies of tickets are generated and stored in the 'wp-content/uploads/fooevents/pdftickets' directory.Single PDF tickets are named using the following format:
- [unique-ticket-hash]-[unique-ticket-ID].pdf
- [first-ticket-unique-ticket-hash]-[first-ticket-unique-ticket-ID]-[last-ticket-unique-ticket-hash]-[last-ticket-unique-ticket-ID].pdf
Emails
When the product event ticket option "Email tickets?" is enabled, the tickets are sent to either the attendee or purchaser depending on whether the "Email attendee rather than purchaser?" option is enabled or disabled. Tickets contain purchaser and attendee data, event data and end user selected variations. Once a ticket has been sent out, it will be stored indefinitely on the website administrators email server depending on the email address/es that were completed at checkout.How to remove data
Removing tickets and orders
To remove tickets:- Navigate to the "Ticket" admin section in your WordPress Admin Area
- Highlight the ticket/s that should be deleted
- Select "Move to bin" in bulk actions and click "Apply"
- Navigate to the ticket "Bin"
- Highlight the ticket/s that should be deleted
- Select "Delete permanently" in bulk actions and click "Apply"
- Navigate to 'WooCommerce' -> 'Orders'
- Highlight the ticket/s that should be deleted
- Select "Move to bin" in bulk actions and click "Apply"
- Navigate to the order "Bin"
- Highlight the ticket/s that should be deleted
- Select "Delete permanently" in bulk actions and click "Apply"
Removing plugin options and settings
To remove all FooEvents options and settings, simply disable and uninstall the plugins. The plugins will automatically remove all options and settings from the database during the uninstallation process.Removing FooEvents files
To remove the FooEvents files:- Disable and uninstall the plugins as per instructions (Removing Plugin Options and Settings)
- Connect to your web server via an FTP client and navigate to 'wp-content/plugins' in the WordPress directory. Ensure that all FooEvents plugin directories have been deleted.
- Connect to your web server via an FTP client and navigate to 'wp-content/uploads' in the WordPress directory and delete the entire 'fooevents' folder
User roles, capabilities and permissions
FooEvents makes extensive use of the built-in WordPress user role and capability functionality to ensure better privacy. By default, only users with the role of "Administrator" will have access to all the FooEvents features. If you require an additional role to have access to specific FooEvents features, you will need to assign capabilities to this role using a third-party WordPress plugin.Here are the steps required in order to do this:
- Login to your WordPress Admin Area and install and activate the User Role Editor plugin: https://wordpress.org/plugins/user-role-editor/
- Navigate to 'Users' -> 'User Role Editor'
- Select the user role that needs access to specific FooEvents features under the "Select Role and change its capabilities" option
- Enter the term "event_magic_ticket" in the quick filter text box
- Check each of the items that have been highlighted (this is basically all the options with the "event_magic_ticket" and "event_magic_tickets" suffix)
- Click the "Update" button on the right