- Previous version was published without dist files
- Changelog & package.json update that was forgotten in 2.0.7
- Remove Recras instance hostname validation
- Remove explicit http/https
- Fetch available dates until the end of the month, to prevent half filled months in calendar
- Contact form time field only allowed time in 5-minute intervals, but browser time pickers don't show this in their UI. Removed this limitation.
- Contact form/Voucher sales no longer shows error messages inline, but after the form
- Fix entering DD-MM-YYYY dates by hand
- No changes from 2.0.1 - previous version on NPM contained wrong compiled version
- "Number of people" on a package line was incorrectly used as minimum quantity - fixed
- Fix GA4 events
- Support for Google Analytics v2 has been dropped
- Support for Internet Explorer and old Edge (12-15) has been dropped
- Add support for Google Analytics v4 (GA4)
- Minified version of the script is now included
- Change value of "BuyInProgress" events from package/template ID (bookings/vouchers, respectively) to total price
- Clicking required checkboxes would become slow after clicking a few times - fixed
- Make redirect without Mollie more robust
- Replace alerts with inline messages
- Allow changing the term for number of vouchers
- Prevent submitting the amounts form when pressing Enter
- Fix discount code with prefilled date
- Fix tests to fix build
- Add Swedish translation, courtesy of Lienke Nanninga
- Add
defaultCountry
option to contact forms
- Make selecting dates in the past easier for "relation extra field"
- Allow dates in the past for "relation extra field"
- Check if a discount is still valid after changing the date
- When a list of packages to show is given, don't show all after resetting package selection
- Show error message in contact form in addition to general "form could not be sent" popup
- Show warning if the selected date has no available time slots
- Fix german translation for 'Voucher applied'
- Fix "window.ga.getAll is not a function" error in Firefox
- Show customer extra fields in contact forms
- Fix checking discount codes containing "special" characters, such as
#
- Fix calendar alignment on small screens
- Fix attachments not being visible when pre-filling amounts
- Allow pre-filling of date and time
- After submitting a form, re-enable button later, to prevent users being able to submit twice
- Update German translations, courtesy of Wiljon Bolten
- Fix NPM build
- only check minimum quantity if quantity is > 0
- update a dependency to remove npm audit warning
- Use minimum quantity of a line, if it is set
- Add some more German translations
- Fix a German translation error with customer's suggestion
- Include amount in 'RedirectToPayment' events
- Buying vouchers is limited to 100
- Update event sending for Google Analytics integrated through Google Tag Manager
- Fix amount inputs in Firefox
- Update event sending for Google Analytics
- Better error messages for standalone contact forms
- Don't fetch available days when no products have been selected
- Add missing error message for minimum amount
- Recheck vouchers when changing product amounts
- Improve interaction (particularly on mobile)
- Option
showSubmit
for contact forms (only used internally) is now namedstandalone
. The old option will remain as alias until the next major version
- Fix error when trying to book a product that has no material
- Show error when input is higher than allowed
- Allow selecting only a few package IDs
- Change date format for booking date field in contact forms
- Styling fixes for Internet Explorer
- Handle 'require X per Y' requirements (not just 1 per Y)
- Small styling improvement/fix
- Contact form: if there is only 1 package and the field is required, fill it automatically
- Technical: Upgrade to Babel 7
- Fix position of styling in the
head
, making overriding styles easier - Fix checking discount codes/vouchers
- Optimise loading of contact form that contains a "package" field
- Add datepicker to date field in contact forms
CONTAINS BREAKING CHANGES - please see upgrading.md
- Show discount fields straight from the start, not after entering date
- Make Discounts section a
form
and add a wrapper to be able to align label and input without affecting the button and message - Update default CSS
- Optimise loading of CSS
- Fix sorting of packages in a contact form
- Add heading to quantity form
- Add placeholders to quantity form inputs
- Remove the time-preview for lines that have no specified time in the programme
- Fix filtering of invalid tags. For IE compatibility, a polyfill for
RegExp
flags should be loaded
- Fix availability check for packages with "booking size" in some edge cases
- Contact form
showForm
now returns a promise when done
- Add "customer type" field in contact forms
- Styling fix for Internet Explorer
- Add missing maximum value for the booking size field
- Fix build in Internet Explorer
- Fix sending of Google Analytics events
- Add message when entering an quantity more than the maximum of a line
- Add the ability to pre-fill the package in a contact form
- If there is only one available timeslot for the selected date, select it automatically
- Fix error for invalid pre-filled amounts
- Add the ability to pre-fill the amounts form
- Add Google Analytics integration
- Add
recras-input-invalid
class to inputs for products that require an other product - Fix minimum booking size
- Fix required products not working when you are logged in to the Recras being used
- Fix error message related to default attachments when you are logged in to the Recras being used
- Fix the test for development instances
- Disable date selection if there are min/max amount or dependency errors
- Fix "NaN" price when booking size input field was cleared
- Add
previewTimes
option to disable programme times preview for online bookings - Add
recras-completed
andrecras-active
classes.recras-completed
is added to each section the user has successfully completed,recras-active
is added to the currently active section. - Add loading indicator when loading available time slots
Notes for developers
- When returning to an already completed section (i.e. changing amounts after selecting a date and time) can make multiple sections active.
- Entering an invalid amount to the already completed amounts section will leave the section completed. If you want to do things like hide completed sections, be aware of this and test thoroughly!
- Add
autoScroll
option to online bookings - Fixed attachments being shown even when "Send standard attachments" was disabled for a package
- Show console warning when you are logged in to the Recras being used
- Don't fetch unused booking text
- Show "choice - multiple" & "newsletter" fields as checkboxes
- Get ready for "website" field
- Improve autocomplete
- Show "amount is more than allowed for online booking" message directly underneath the corresponding input instead of at the end of the form.
- Add
recras-input-invalid
class to invalid amount inputs - Use minimum amount instead of number of people for "minimum amount" calculation
- Fix book button being enabled despite "I agree" checkbox not being checked
- Show line price based on amount selected
- Fix form validation for standalone contact forms
- Fix subtotal when logged in
- Move generic error message to the bottom (when possible)
- Fix standalone contact forms
- Fix not being able to submit online booking form
- Voucher sales showed templates without contact form when logged in - fixed
- Add standalone contact form integration
- Implement
keuze_enkel
fields in contact forms - Fix "NaN" price when amount input field was cleared
- Fix "Programme amounts are invalid" error in some cases
- Clear forms after successful submit
- Improve certain error messages
- Check booking size lines for minimum amount
- Fix datepicker position on mobile
- Disable autocomplete on date/time fields
- Combine discount codes and vouchers into a single field
Note for developers: certain CSS classes have been removed, changed meaning, or have been renamed:
- Removed:
.voucher-status
,.recras-vouchers
- Changed:
.discount-status
is now also used for voucher messages - Renamed:
.recras-discountcode
to.recras-discounts
;.priceLine
to.priceWithoutDiscount
;.priceTotal
to.priceWithDiscount
- Fix date check for vouchers
- Fix prices being shown incorrectly (i.e. 2.50000 instead of € 2,50)
- Fix selection of disallowed payment method
- Fix potential race condition
- Version 0.7.0 was missing the minified
dist/onlinebooking.js
file
- Show reasons why 'Book now' button is disabled
- Fix disabled 'Book now' button after changing date/time
- Don't crash on minimum amount of booking size row
- Added 3 more custom events needed for internal use
- Fixed package sorting
- Fixed custom events in Internet Explorer
- Various other fixes for IE
- Added custom events
- Fixed: changing product amounts didn't reset available days
- Fixed: the redirect to Mollie's payment page didn't work if the library was loaded in an iframe
- Show programme times before the product description instead of after it. This better reflects what the programme usually looks like in the booking confirmation email/PDF.
- Fixed default styling of voucher module
- Fixed price for "booking size" lines
- First version available on NPM