=== Event Organiser Discount Codes === Contributors: stephenharris Requires at least: 3.3 Tested up to: 4.9 Stable tag: 1.3.3 License: GPLv3 Adds discount codes to Event Organiser Pro. == Description == This plug-in allows you to create discount codes for bookings made with Event Organiser Pro. * Create percentage or fixed-amount discounts * Allows you to specify a minimum requirement (number of tickets or booking amount) before a discount code can be used * Optionally limit the date-range when a discount code is valid * Discount codes can be for all events, or limited to certain events. * Specify a limit on the number of times a discount code can be used, or allow unlimited use ## Requirements * [Event Organiser](http://wordpress.org/plugins/event-organiser) * [Event Organiser Pro **1.5+**](http://wp-event-organiser.com/pro-features) ## Getting started **Create a discount code** After you've installed and activated the plug-in go to *Events > Discount Codes*. From this page you can add, edit and remove discount codes. To create a discount code, add its details in the 'Add New Discount Code' section, and click 'Add new discount code'. **Add a discount code field to your booking form** Once you've created a discount code you'll need to add a 'discount code' booking field to your booking form. Go to *Settings > Event Organiser > Booking Form*, and then to add the field to the booking form click 'Discount Code' in the 'Advanced Fields' tabs. Then position the field as desired. You can do this for any booking forms you wish users to be able enter a discount code. == Installation == Installation is standard and straight forward. 1. Upload `event-organiser-discount-codes` folder (and all it's contents!) to the `/wp-content/plugins/` directory 1. Activate the plugin through the 'Plugins' menu in WordPress 1. See description for details on how to get started == Frequently Asked Questions == == Changelog == = 1.3.3 - 25th November 2017 = * Fixed bug with discount amounts over 1000 = 1.3.2 - 10th May 2017 = * Apply filters before the discount code is applied = 1.3.1 - 27th March 2017 = * Rounds discounted prices; Fixes a bug with 100% discount codes. = 1.3.0 - 4th December 2016 = * Fixes bug where 'Discount code' column (if included) in the CSV export is blank. This update does not retrospectively fix existing bookings. = 1.2.2 - 18th November 2015 = * Replaces a function which will be deprecated in Event Organiser 3.0.0 = 1.2.1 - 21st April 2015 = * Fixes XSS vulnerability (please see [this announcement]( http://wp-event-organiser.com/blog/announcements/xss-vulnerabil…ser-extensions). * Fixes strict error = 1.2 = * Important: Updated for compatability with Pro 1.7. Maintains backwards compatability. Itsrecommended to update Discount Codes before updating Pro. * Fixes conflict with Pro checkout javascript. * Load translation domain * Added German translation = 1.1. = * Added `eventorganiser.is_discount_valid` and `eventorganiser.discount` javascript filters * Added `eventorganiser_is_discount_code_valid` and `eventorganiser_discount_amount` filters * Fixed minor JavaScript bug == Upgrade Notice == 1.2.2 addresses a security vulnerability. Please update (see [this announcement for details]( http://wp-event-organiser.com/blog/announcements/xss-vulnerability-event-organiser-extensions).)