Booking Activities
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
booking-activities/controller/controller-settings.php

990 lines
40 KiB

6 years ago
<?php
// Exit if accessed directly
if ( ! defined( 'ABSPATH' ) ) { exit; }
/**
* Init Booking Activities settings
** Booking Activities 1.7.0 ** * Feature - Add a WC product to cart when you click on an event or when you submit a booking form * Feature - Redirect to a URL when you click on an event or when you submit a booking form * Feature - Redirect to a WC product page when you click on an event or when you submit a booking form * Feature - Backup, archive and restore old bookings and events * Feature - Support WP tools for exporting and erasing personal data * Feature - Edit users phone number on their profile page * Tweak - Allow HTML in events and groups of events title * Tweak - Notifications are send to the user when he cancels or reschedule a booking from the frontend * Tweak - Order calendars, activities, group categories and groups of events by title * Tweak - List of activities in calendar editor can now be scrolled * Tweak - Add the {booking_list_raw} notification tag * Tweak - Support more parameters in bookingactivities_list shortcode (all booking filters) * Tweak - Allow to filter bookings by user even if the user is not in the selectbox * Tweak - Limit the amount of emails that can be sent to a single user per minute (20), hour (200) and day (2000) (spam protection) * Tweak - Backend javascript and css files are loaded only on Booking Activities screens to avoid conflicts * Fix - Notification were sometimes sent twice when used with WooCommerce in asynchronous mode * Fix - Overlapping of the event list in emails * Fix - WC order became "refunded" when a reservation was refunded, even if another reservation was still "cancelled" * Fix - Cancellation delays were not working properly * Fix - The "user_id" parameter of the bookingactivities_list shortcode didn't work while explicitly set to "current" * Fix - The "status" and "order_by" parameters of the bookingactivities_list shortcode didn't work * Fix - Booking row was not properly updated after cancelling a booking (group) * Fix - Can't refund booking groups paid with WooCommerce * Fix - Events not loaded when a WC product variation was loaded by default, and events were loaded "After page load" * Fix - PHP notice when trying to get translated messages * Fix - PHP notice when displaying WC products having a deprecated config available * Fix - PHP warning when a form with no "User Data (Login / Registration)" field is submitted * Fix - PHP error on booking form list if the booking form author account has been deleted * Fix - The bottom bulk actions selectbox didn't work on Bookings page * Fix - Wrong quantity displayed in reschedule dialog * Fix - The "Cancel" custom label was not applied to the right buttons * Fix - Repeated events on exceptions dates were exported * Fix - The time zone of the exported events was incorrect (UTC instead of yours) * Dev - Prefill a booking form thanks to URL parameters * Dev - Use all booking list filters via URL * Dev - Filter booking list by multiple form id, user id, group category id, group of events id * Lib - Update FullCalendar to 3.10.0 and Moment JS to 2.23.0
4 years ago
* @version 1.7.0
*/
6 years ago
function bookacti_init_settings() {
/* General settings Section */
add_settings_section(
'bookacti_settings_section_general',
** Booking Activities 1.7.0 ** * Feature - Add a WC product to cart when you click on an event or when you submit a booking form * Feature - Redirect to a URL when you click on an event or when you submit a booking form * Feature - Redirect to a WC product page when you click on an event or when you submit a booking form * Feature - Backup, archive and restore old bookings and events * Feature - Support WP tools for exporting and erasing personal data * Feature - Edit users phone number on their profile page * Tweak - Allow HTML in events and groups of events title * Tweak - Notifications are send to the user when he cancels or reschedule a booking from the frontend * Tweak - Order calendars, activities, group categories and groups of events by title * Tweak - List of activities in calendar editor can now be scrolled * Tweak - Add the {booking_list_raw} notification tag * Tweak - Support more parameters in bookingactivities_list shortcode (all booking filters) * Tweak - Allow to filter bookings by user even if the user is not in the selectbox * Tweak - Limit the amount of emails that can be sent to a single user per minute (20), hour (200) and day (2000) (spam protection) * Tweak - Backend javascript and css files are loaded only on Booking Activities screens to avoid conflicts * Fix - Notification were sometimes sent twice when used with WooCommerce in asynchronous mode * Fix - Overlapping of the event list in emails * Fix - WC order became "refunded" when a reservation was refunded, even if another reservation was still "cancelled" * Fix - Cancellation delays were not working properly * Fix - The "user_id" parameter of the bookingactivities_list shortcode didn't work while explicitly set to "current" * Fix - The "status" and "order_by" parameters of the bookingactivities_list shortcode didn't work * Fix - Booking row was not properly updated after cancelling a booking (group) * Fix - Can't refund booking groups paid with WooCommerce * Fix - Events not loaded when a WC product variation was loaded by default, and events were loaded "After page load" * Fix - PHP notice when trying to get translated messages * Fix - PHP notice when displaying WC products having a deprecated config available * Fix - PHP warning when a form with no "User Data (Login / Registration)" field is submitted * Fix - PHP error on booking form list if the booking form author account has been deleted * Fix - The bottom bulk actions selectbox didn't work on Bookings page * Fix - Wrong quantity displayed in reschedule dialog * Fix - The "Cancel" custom label was not applied to the right buttons * Fix - Repeated events on exceptions dates were exported * Fix - The time zone of the exported events was incorrect (UTC instead of yours) * Dev - Prefill a booking form thanks to URL parameters * Dev - Use all booking list filters via URL * Dev - Filter booking list by multiple form id, user id, group category id, group of events id * Lib - Update FullCalendar to 3.10.0 and Moment JS to 2.23.0
4 years ago
esc_html__( 'General settings', BOOKACTI_PLUGIN_NAME ),
6 years ago
'bookacti_settings_section_general_callback',
'bookacti_general_settings'
);
add_settings_field(
'booking_method',
** Booking Activities 1.7.0 ** * Feature - Add a WC product to cart when you click on an event or when you submit a booking form * Feature - Redirect to a URL when you click on an event or when you submit a booking form * Feature - Redirect to a WC product page when you click on an event or when you submit a booking form * Feature - Backup, archive and restore old bookings and events * Feature - Support WP tools for exporting and erasing personal data * Feature - Edit users phone number on their profile page * Tweak - Allow HTML in events and groups of events title * Tweak - Notifications are send to the user when he cancels or reschedule a booking from the frontend * Tweak - Order calendars, activities, group categories and groups of events by title * Tweak - List of activities in calendar editor can now be scrolled * Tweak - Add the {booking_list_raw} notification tag * Tweak - Support more parameters in bookingactivities_list shortcode (all booking filters) * Tweak - Allow to filter bookings by user even if the user is not in the selectbox * Tweak - Limit the amount of emails that can be sent to a single user per minute (20), hour (200) and day (2000) (spam protection) * Tweak - Backend javascript and css files are loaded only on Booking Activities screens to avoid conflicts * Fix - Notification were sometimes sent twice when used with WooCommerce in asynchronous mode * Fix - Overlapping of the event list in emails * Fix - WC order became "refunded" when a reservation was refunded, even if another reservation was still "cancelled" * Fix - Cancellation delays were not working properly * Fix - The "user_id" parameter of the bookingactivities_list shortcode didn't work while explicitly set to "current" * Fix - The "status" and "order_by" parameters of the bookingactivities_list shortcode didn't work * Fix - Booking row was not properly updated after cancelling a booking (group) * Fix - Can't refund booking groups paid with WooCommerce * Fix - Events not loaded when a WC product variation was loaded by default, and events were loaded "After page load" * Fix - PHP notice when trying to get translated messages * Fix - PHP notice when displaying WC products having a deprecated config available * Fix - PHP warning when a form with no "User Data (Login / Registration)" field is submitted * Fix - PHP error on booking form list if the booking form author account has been deleted * Fix - The bottom bulk actions selectbox didn't work on Bookings page * Fix - Wrong quantity displayed in reschedule dialog * Fix - The "Cancel" custom label was not applied to the right buttons * Fix - Repeated events on exceptions dates were exported * Fix - The time zone of the exported events was incorrect (UTC instead of yours) * Dev - Prefill a booking form thanks to URL parameters * Dev - Use all booking list filters via URL * Dev - Filter booking list by multiple form id, user id, group category id, group of events id * Lib - Update FullCalendar to 3.10.0 and Moment JS to 2.23.0
4 years ago
esc_html__( 'Booking method', BOOKACTI_PLUGIN_NAME ),
6 years ago
'bookacti_settings_field_booking_method_callback',
'bookacti_general_settings',
'bookacti_settings_section_general'
);
= 1.1.0 - 2017/07/16 = * Optimization - Calendars are now loaded faster and on page load (possibility to load after page load in Booking Activities settings) * Feature - Manage groups of events! You can group events and make your customer book a bundle of events instead of a single one. * Feature - Bind multiple calendars and activities to one product in WooCommerce! * Feature - Choose the default booking status after a customer complete the booking form or a WooCommerce order. * Feature - Calendars events are now related to your business timezone, and no longer to users' timezone. Customers around the world cannot see / book a past event because of time offset. * Tweak - You can change your calendars period regardless of the bookings already done * Fix - Apostrophe characters in template / activity / events names are now correctly displayed * Fix - Dates are now translated everywhere * Fix - Copy a shortcode in calendar editor now copy only plain text, no more undesired html * Fix - Cart expiration is now checked on each page load. This means that you cart counter will now always be up to date. * Fix - Fixed booking method checks in JS files (misuse of inArray) * Fix - Fixed permission error after closing a dialog in template editor * Fix - All global JS variables are stored in bookacti object in order to avoid collisions * Delete - Removed trashes from editor, to delete calendars, activities and events please use their respective settings dialogs * Delete - Deleted events 'occurrence id' since it is not a relevant identifier. All events can be identified by id + start + end datetimes. * Delete - Deleted unused bookings global actions * Delete - bookacti_display_booking_system() function replaced by bookacti_get_booking_system() which MUST be used to display a booking system * Dev - A lot of hooks has been changed, added or removed. Please go to the website for the [complete changelog](https://booking-activities.fr/en/documentation/changelog/?utm_source=wp-plugin-page&utm_medium=wordpress&utm_content=readme).
5 years ago
add_settings_field(
'when_events_load',
** Booking Activities 1.7.0 ** * Feature - Add a WC product to cart when you click on an event or when you submit a booking form * Feature - Redirect to a URL when you click on an event or when you submit a booking form * Feature - Redirect to a WC product page when you click on an event or when you submit a booking form * Feature - Backup, archive and restore old bookings and events * Feature - Support WP tools for exporting and erasing personal data * Feature - Edit users phone number on their profile page * Tweak - Allow HTML in events and groups of events title * Tweak - Notifications are send to the user when he cancels or reschedule a booking from the frontend * Tweak - Order calendars, activities, group categories and groups of events by title * Tweak - List of activities in calendar editor can now be scrolled * Tweak - Add the {booking_list_raw} notification tag * Tweak - Support more parameters in bookingactivities_list shortcode (all booking filters) * Tweak - Allow to filter bookings by user even if the user is not in the selectbox * Tweak - Limit the amount of emails that can be sent to a single user per minute (20), hour (200) and day (2000) (spam protection) * Tweak - Backend javascript and css files are loaded only on Booking Activities screens to avoid conflicts * Fix - Notification were sometimes sent twice when used with WooCommerce in asynchronous mode * Fix - Overlapping of the event list in emails * Fix - WC order became "refunded" when a reservation was refunded, even if another reservation was still "cancelled" * Fix - Cancellation delays were not working properly * Fix - The "user_id" parameter of the bookingactivities_list shortcode didn't work while explicitly set to "current" * Fix - The "status" and "order_by" parameters of the bookingactivities_list shortcode didn't work * Fix - Booking row was not properly updated after cancelling a booking (group) * Fix - Can't refund booking groups paid with WooCommerce * Fix - Events not loaded when a WC product variation was loaded by default, and events were loaded "After page load" * Fix - PHP notice when trying to get translated messages * Fix - PHP notice when displaying WC products having a deprecated config available * Fix - PHP warning when a form with no "User Data (Login / Registration)" field is submitted * Fix - PHP error on booking form list if the booking form author account has been deleted * Fix - The bottom bulk actions selectbox didn't work on Bookings page * Fix - Wrong quantity displayed in reschedule dialog * Fix - The "Cancel" custom label was not applied to the right buttons * Fix - Repeated events on exceptions dates were exported * Fix - The time zone of the exported events was incorrect (UTC instead of yours) * Dev - Prefill a booking form thanks to URL parameters * Dev - Use all booking list filters via URL * Dev - Filter booking list by multiple form id, user id, group category id, group of events id * Lib - Update FullCalendar to 3.10.0 and Moment JS to 2.23.0
4 years ago
esc_html__( 'When to load the events?', BOOKACTI_PLUGIN_NAME ),
= 1.1.0 - 2017/07/16 = * Optimization - Calendars are now loaded faster and on page load (possibility to load after page load in Booking Activities settings) * Feature - Manage groups of events! You can group events and make your customer book a bundle of events instead of a single one. * Feature - Bind multiple calendars and activities to one product in WooCommerce! * Feature - Choose the default booking status after a customer complete the booking form or a WooCommerce order. * Feature - Calendars events are now related to your business timezone, and no longer to users' timezone. Customers around the world cannot see / book a past event because of time offset. * Tweak - You can change your calendars period regardless of the bookings already done * Fix - Apostrophe characters in template / activity / events names are now correctly displayed * Fix - Dates are now translated everywhere * Fix - Copy a shortcode in calendar editor now copy only plain text, no more undesired html * Fix - Cart expiration is now checked on each page load. This means that you cart counter will now always be up to date. * Fix - Fixed booking method checks in JS files (misuse of inArray) * Fix - Fixed permission error after closing a dialog in template editor * Fix - All global JS variables are stored in bookacti object in order to avoid collisions * Delete - Removed trashes from editor, to delete calendars, activities and events please use their respective settings dialogs * Delete - Deleted events 'occurrence id' since it is not a relevant identifier. All events can be identified by id + start + end datetimes. * Delete - Deleted unused bookings global actions * Delete - bookacti_display_booking_system() function replaced by bookacti_get_booking_system() which MUST be used to display a booking system * Dev - A lot of hooks has been changed, added or removed. Please go to the website for the [complete changelog](https://booking-activities.fr/en/documentation/changelog/?utm_source=wp-plugin-page&utm_medium=wordpress&utm_content=readme).
5 years ago
'bookacti_settings_field_when_events_load_callback',
'bookacti_general_settings',
'bookacti_settings_section_general'
);
add_settings_field(
'event_load_interval',
** Booking Activities 1.7.0 ** * Feature - Add a WC product to cart when you click on an event or when you submit a booking form * Feature - Redirect to a URL when you click on an event or when you submit a booking form * Feature - Redirect to a WC product page when you click on an event or when you submit a booking form * Feature - Backup, archive and restore old bookings and events * Feature - Support WP tools for exporting and erasing personal data * Feature - Edit users phone number on their profile page * Tweak - Allow HTML in events and groups of events title * Tweak - Notifications are send to the user when he cancels or reschedule a booking from the frontend * Tweak - Order calendars, activities, group categories and groups of events by title * Tweak - List of activities in calendar editor can now be scrolled * Tweak - Add the {booking_list_raw} notification tag * Tweak - Support more parameters in bookingactivities_list shortcode (all booking filters) * Tweak - Allow to filter bookings by user even if the user is not in the selectbox * Tweak - Limit the amount of emails that can be sent to a single user per minute (20), hour (200) and day (2000) (spam protection) * Tweak - Backend javascript and css files are loaded only on Booking Activities screens to avoid conflicts * Fix - Notification were sometimes sent twice when used with WooCommerce in asynchronous mode * Fix - Overlapping of the event list in emails * Fix - WC order became "refunded" when a reservation was refunded, even if another reservation was still "cancelled" * Fix - Cancellation delays were not working properly * Fix - The "user_id" parameter of the bookingactivities_list shortcode didn't work while explicitly set to "current" * Fix - The "status" and "order_by" parameters of the bookingactivities_list shortcode didn't work * Fix - Booking row was not properly updated after cancelling a booking (group) * Fix - Can't refund booking groups paid with WooCommerce * Fix - Events not loaded when a WC product variation was loaded by default, and events were loaded "After page load" * Fix - PHP notice when trying to get translated messages * Fix - PHP notice when displaying WC products having a deprecated config available * Fix - PHP warning when a form with no "User Data (Login / Registration)" field is submitted * Fix - PHP error on booking form list if the booking form author account has been deleted * Fix - The bottom bulk actions selectbox didn't work on Bookings page * Fix - Wrong quantity displayed in reschedule dialog * Fix - The "Cancel" custom label was not applied to the right buttons * Fix - Repeated events on exceptions dates were exported * Fix - The time zone of the exported events was incorrect (UTC instead of yours) * Dev - Prefill a booking form thanks to URL parameters * Dev - Use all booking list filters via URL * Dev - Filter booking list by multiple form id, user id, group category id, group of events id * Lib - Update FullCalendar to 3.10.0 and Moment JS to 2.23.0
4 years ago
esc_html__( 'Load events every', BOOKACTI_PLUGIN_NAME ),
'bookacti_settings_field_event_load_interval_callback',
'bookacti_general_settings',
'bookacti_settings_section_general'
);
6 years ago
add_settings_field(
'started_events_bookable',
** Booking Activities 1.7.0 ** * Feature - Add a WC product to cart when you click on an event or when you submit a booking form * Feature - Redirect to a URL when you click on an event or when you submit a booking form * Feature - Redirect to a WC product page when you click on an event or when you submit a booking form * Feature - Backup, archive and restore old bookings and events * Feature - Support WP tools for exporting and erasing personal data * Feature - Edit users phone number on their profile page * Tweak - Allow HTML in events and groups of events title * Tweak - Notifications are send to the user when he cancels or reschedule a booking from the frontend * Tweak - Order calendars, activities, group categories and groups of events by title * Tweak - List of activities in calendar editor can now be scrolled * Tweak - Add the {booking_list_raw} notification tag * Tweak - Support more parameters in bookingactivities_list shortcode (all booking filters) * Tweak - Allow to filter bookings by user even if the user is not in the selectbox * Tweak - Limit the amount of emails that can be sent to a single user per minute (20), hour (200) and day (2000) (spam protection) * Tweak - Backend javascript and css files are loaded only on Booking Activities screens to avoid conflicts * Fix - Notification were sometimes sent twice when used with WooCommerce in asynchronous mode * Fix - Overlapping of the event list in emails * Fix - WC order became "refunded" when a reservation was refunded, even if another reservation was still "cancelled" * Fix - Cancellation delays were not working properly * Fix - The "user_id" parameter of the bookingactivities_list shortcode didn't work while explicitly set to "current" * Fix - The "status" and "order_by" parameters of the bookingactivities_list shortcode didn't work * Fix - Booking row was not properly updated after cancelling a booking (group) * Fix - Can't refund booking groups paid with WooCommerce * Fix - Events not loaded when a WC product variation was loaded by default, and events were loaded "After page load" * Fix - PHP notice when trying to get translated messages * Fix - PHP notice when displaying WC products having a deprecated config available * Fix - PHP warning when a form with no "User Data (Login / Registration)" field is submitted * Fix - PHP error on booking form list if the booking form author account has been deleted * Fix - The bottom bulk actions selectbox didn't work on Bookings page * Fix - Wrong quantity displayed in reschedule dialog * Fix - The "Cancel" custom label was not applied to the right buttons * Fix - Repeated events on exceptions dates were exported * Fix - The time zone of the exported events was incorrect (UTC instead of yours) * Dev - Prefill a booking form thanks to URL parameters * Dev - Use all booking list filters via URL * Dev - Filter booking list by multiple form id, user id, group category id, group of events id * Lib - Update FullCalendar to 3.10.0 and Moment JS to 2.23.0
4 years ago
esc_html__( 'Are started events bookable?', BOOKACTI_PLUGIN_NAME ),
6 years ago
'bookacti_settings_field_started_events_bookable_callback',
'bookacti_general_settings',
'bookacti_settings_section_general'
);
= 1.1.0 - 2017/07/16 = * Optimization - Calendars are now loaded faster and on page load (possibility to load after page load in Booking Activities settings) * Feature - Manage groups of events! You can group events and make your customer book a bundle of events instead of a single one. * Feature - Bind multiple calendars and activities to one product in WooCommerce! * Feature - Choose the default booking status after a customer complete the booking form or a WooCommerce order. * Feature - Calendars events are now related to your business timezone, and no longer to users' timezone. Customers around the world cannot see / book a past event because of time offset. * Tweak - You can change your calendars period regardless of the bookings already done * Fix - Apostrophe characters in template / activity / events names are now correctly displayed * Fix - Dates are now translated everywhere * Fix - Copy a shortcode in calendar editor now copy only plain text, no more undesired html * Fix - Cart expiration is now checked on each page load. This means that you cart counter will now always be up to date. * Fix - Fixed booking method checks in JS files (misuse of inArray) * Fix - Fixed permission error after closing a dialog in template editor * Fix - All global JS variables are stored in bookacti object in order to avoid collisions * Delete - Removed trashes from editor, to delete calendars, activities and events please use their respective settings dialogs * Delete - Deleted events 'occurrence id' since it is not a relevant identifier. All events can be identified by id + start + end datetimes. * Delete - Deleted unused bookings global actions * Delete - bookacti_display_booking_system() function replaced by bookacti_get_booking_system() which MUST be used to display a booking system * Dev - A lot of hooks has been changed, added or removed. Please go to the website for the [complete changelog](https://booking-activities.fr/en/documentation/changelog/?utm_source=wp-plugin-page&utm_medium=wordpress&utm_content=readme).
5 years ago
** Booking Activities 1.4.0 ** * Feature - Set the advance booking period: customers can book events from X to Y days from today (global option and calendar option) * Feature - Set the minimum booking quantity required per user (activity option and group category option) * Feature - Set the maximum booking quantity allowed per user (activity option and group category option) * Feature - Set the maximum number of different users allowed to book the same (group of) event(s) (for private events) (activity option and group category option) * Feature - Set which user roles are allowed to book wich (group of) event(s) (activity option and group category option) * Feature - Set the booking changes deadline per activity: customers can change their events X days before they start (global option already exists) * Feature - Set whether to allow to book started groups of events (global option and group category option) * Tweak - Groups of events can be unselected in calendar editor * Optimization - Only the required groups of events data are retrieved on frontend * Optimization - Do not process the whole render function while dragging or resizing events * Optimization - Instant JS alert while dragging or resizing a booked event instead of waiting for PHP check * Optimization - Get event / group of events availability with a single query * Fix - Wrong error message when quantity <= 0 in booking form * Fix - PHP notice when updating single events and activity or calendar with no managers * Fix - Don't display booking actions in emails * Fix - PHP warnings and notices when a WooCommerce order was made and notifications sent * Fix - JS error on WC variation loaded with another default booking method than "Calendar" * Fix - Incorrect booking groups user ids if users made their bookings before logging in * Fix - PHP notices after updating custom parameters in calendar editor * Fix - JS errors when an event of a group was past * Fix - Australia and Arctic timezones added * Fix - Multilingual event titles were not displayed in event dialog in calendar editor * Fix - No alert displayed while trying to move or resize a booked event * Fix - JS error while trying to compute group availability if events of the group were not retrieved yet * Fix - PHP notices on activation: Multiple primary keys
5 years ago
add_settings_field(
'started_groups_bookable',
** Booking Activities 1.7.0 ** * Feature - Add a WC product to cart when you click on an event or when you submit a booking form * Feature - Redirect to a URL when you click on an event or when you submit a booking form * Feature - Redirect to a WC product page when you click on an event or when you submit a booking form * Feature - Backup, archive and restore old bookings and events * Feature - Support WP tools for exporting and erasing personal data * Feature - Edit users phone number on their profile page * Tweak - Allow HTML in events and groups of events title * Tweak - Notifications are send to the user when he cancels or reschedule a booking from the frontend * Tweak - Order calendars, activities, group categories and groups of events by title * Tweak - List of activities in calendar editor can now be scrolled * Tweak - Add the {booking_list_raw} notification tag * Tweak - Support more parameters in bookingactivities_list shortcode (all booking filters) * Tweak - Allow to filter bookings by user even if the user is not in the selectbox * Tweak - Limit the amount of emails that can be sent to a single user per minute (20), hour (200) and day (2000) (spam protection) * Tweak - Backend javascript and css files are loaded only on Booking Activities screens to avoid conflicts * Fix - Notification were sometimes sent twice when used with WooCommerce in asynchronous mode * Fix - Overlapping of the event list in emails * Fix - WC order became "refunded" when a reservation was refunded, even if another reservation was still "cancelled" * Fix - Cancellation delays were not working properly * Fix - The "user_id" parameter of the bookingactivities_list shortcode didn't work while explicitly set to "current" * Fix - The "status" and "order_by" parameters of the bookingactivities_list shortcode didn't work * Fix - Booking row was not properly updated after cancelling a booking (group) * Fix - Can't refund booking groups paid with WooCommerce * Fix - Events not loaded when a WC product variation was loaded by default, and events were loaded "After page load" * Fix - PHP notice when trying to get translated messages * Fix - PHP notice when displaying WC products having a deprecated config available * Fix - PHP warning when a form with no "User Data (Login / Registration)" field is submitted * Fix - PHP error on booking form list if the booking form author account has been deleted * Fix - The bottom bulk actions selectbox didn't work on Bookings page * Fix - Wrong quantity displayed in reschedule dialog * Fix - The "Cancel" custom label was not applied to the right buttons * Fix - Repeated events on exceptions dates were exported * Fix - The time zone of the exported events was incorrect (UTC instead of yours) * Dev - Prefill a booking form thanks to URL parameters * Dev - Use all booking list filters via URL * Dev - Filter booking list by multiple form id, user id, group category id, group of events id * Lib - Update FullCalendar to 3.10.0 and Moment JS to 2.23.0
4 years ago
esc_html__( 'Are started groups of events bookable?', BOOKACTI_PLUGIN_NAME ),
** Booking Activities 1.4.0 ** * Feature - Set the advance booking period: customers can book events from X to Y days from today (global option and calendar option) * Feature - Set the minimum booking quantity required per user (activity option and group category option) * Feature - Set the maximum booking quantity allowed per user (activity option and group category option) * Feature - Set the maximum number of different users allowed to book the same (group of) event(s) (for private events) (activity option and group category option) * Feature - Set which user roles are allowed to book wich (group of) event(s) (activity option and group category option) * Feature - Set the booking changes deadline per activity: customers can change their events X days before they start (global option already exists) * Feature - Set whether to allow to book started groups of events (global option and group category option) * Tweak - Groups of events can be unselected in calendar editor * Optimization - Only the required groups of events data are retrieved on frontend * Optimization - Do not process the whole render function while dragging or resizing events * Optimization - Instant JS alert while dragging or resizing a booked event instead of waiting for PHP check * Optimization - Get event / group of events availability with a single query * Fix - Wrong error message when quantity <= 0 in booking form * Fix - PHP notice when updating single events and activity or calendar with no managers * Fix - Don't display booking actions in emails * Fix - PHP warnings and notices when a WooCommerce order was made and notifications sent * Fix - JS error on WC variation loaded with another default booking method than "Calendar" * Fix - Incorrect booking groups user ids if users made their bookings before logging in * Fix - PHP notices after updating custom parameters in calendar editor * Fix - JS errors when an event of a group was past * Fix - Australia and Arctic timezones added * Fix - Multilingual event titles were not displayed in event dialog in calendar editor * Fix - No alert displayed while trying to move or resize a booked event * Fix - JS error while trying to compute group availability if events of the group were not retrieved yet * Fix - PHP notices on activation: Multiple primary keys
5 years ago
'bookacti_settings_field_started_groups_bookable_callback',
'bookacti_general_settings',
'bookacti_settings_section_general'
);
add_settings_field(
'availability_period_start',
/* translators: Followed by a field indicating a number of days before the event. E.g.: "Events will be bookable in 2 days from today". */
** Booking Activities 1.7.0 ** * Feature - Add a WC product to cart when you click on an event or when you submit a booking form * Feature - Redirect to a URL when you click on an event or when you submit a booking form * Feature - Redirect to a WC product page when you click on an event or when you submit a booking form * Feature - Backup, archive and restore old bookings and events * Feature - Support WP tools for exporting and erasing personal data * Feature - Edit users phone number on their profile page * Tweak - Allow HTML in events and groups of events title * Tweak - Notifications are send to the user when he cancels or reschedule a booking from the frontend * Tweak - Order calendars, activities, group categories and groups of events by title * Tweak - List of activities in calendar editor can now be scrolled * Tweak - Add the {booking_list_raw} notification tag * Tweak - Support more parameters in bookingactivities_list shortcode (all booking filters) * Tweak - Allow to filter bookings by user even if the user is not in the selectbox * Tweak - Limit the amount of emails that can be sent to a single user per minute (20), hour (200) and day (2000) (spam protection) * Tweak - Backend javascript and css files are loaded only on Booking Activities screens to avoid conflicts * Fix - Notification were sometimes sent twice when used with WooCommerce in asynchronous mode * Fix - Overlapping of the event list in emails * Fix - WC order became "refunded" when a reservation was refunded, even if another reservation was still "cancelled" * Fix - Cancellation delays were not working properly * Fix - The "user_id" parameter of the bookingactivities_list shortcode didn't work while explicitly set to "current" * Fix - The "status" and "order_by" parameters of the bookingactivities_list shortcode didn't work * Fix - Booking row was not properly updated after cancelling a booking (group) * Fix - Can't refund booking groups paid with WooCommerce * Fix - Events not loaded when a WC product variation was loaded by default, and events were loaded "After page load" * Fix - PHP notice when trying to get translated messages * Fix - PHP notice when displaying WC products having a deprecated config available * Fix - PHP warning when a form with no "User Data (Login / Registration)" field is submitted * Fix - PHP error on booking form list if the booking form author account has been deleted * Fix - The bottom bulk actions selectbox didn't work on Bookings page * Fix - Wrong quantity displayed in reschedule dialog * Fix - The "Cancel" custom label was not applied to the right buttons * Fix - Repeated events on exceptions dates were exported * Fix - The time zone of the exported events was incorrect (UTC instead of yours) * Dev - Prefill a booking form thanks to URL parameters * Dev - Use all booking list filters via URL * Dev - Filter booking list by multiple form id, user id, group category id, group of events id * Lib - Update FullCalendar to 3.10.0 and Moment JS to 2.23.0
4 years ago
esc_html__( 'Events will be bookable in', BOOKACTI_PLUGIN_NAME ),
** Booking Activities 1.4.0 ** * Feature - Set the advance booking period: customers can book events from X to Y days from today (global option and calendar option) * Feature - Set the minimum booking quantity required per user (activity option and group category option) * Feature - Set the maximum booking quantity allowed per user (activity option and group category option) * Feature - Set the maximum number of different users allowed to book the same (group of) event(s) (for private events) (activity option and group category option) * Feature - Set which user roles are allowed to book wich (group of) event(s) (activity option and group category option) * Feature - Set the booking changes deadline per activity: customers can change their events X days before they start (global option already exists) * Feature - Set whether to allow to book started groups of events (global option and group category option) * Tweak - Groups of events can be unselected in calendar editor * Optimization - Only the required groups of events data are retrieved on frontend * Optimization - Do not process the whole render function while dragging or resizing events * Optimization - Instant JS alert while dragging or resizing a booked event instead of waiting for PHP check * Optimization - Get event / group of events availability with a single query * Fix - Wrong error message when quantity <= 0 in booking form * Fix - PHP notice when updating single events and activity or calendar with no managers * Fix - Don't display booking actions in emails * Fix - PHP warnings and notices when a WooCommerce order was made and notifications sent * Fix - JS error on WC variation loaded with another default booking method than "Calendar" * Fix - Incorrect booking groups user ids if users made their bookings before logging in * Fix - PHP notices after updating custom parameters in calendar editor * Fix - JS errors when an event of a group was past * Fix - Australia and Arctic timezones added * Fix - Multilingual event titles were not displayed in event dialog in calendar editor * Fix - No alert displayed while trying to move or resize a booked event * Fix - JS error while trying to compute group availability if events of the group were not retrieved yet * Fix - PHP notices on activation: Multiple primary keys
5 years ago
'bookacti_settings_field_availability_period_start_callback',
'bookacti_general_settings',
'bookacti_settings_section_general'
);
add_settings_field(
'availability_period_end',
/* translators: Followed by a field indicating a number of days before the event. E.g.: "Events are bookable for up to 30 days from today". */
** Booking Activities 1.7.0 ** * Feature - Add a WC product to cart when you click on an event or when you submit a booking form * Feature - Redirect to a URL when you click on an event or when you submit a booking form * Feature - Redirect to a WC product page when you click on an event or when you submit a booking form * Feature - Backup, archive and restore old bookings and events * Feature - Support WP tools for exporting and erasing personal data * Feature - Edit users phone number on their profile page * Tweak - Allow HTML in events and groups of events title * Tweak - Notifications are send to the user when he cancels or reschedule a booking from the frontend * Tweak - Order calendars, activities, group categories and groups of events by title * Tweak - List of activities in calendar editor can now be scrolled * Tweak - Add the {booking_list_raw} notification tag * Tweak - Support more parameters in bookingactivities_list shortcode (all booking filters) * Tweak - Allow to filter bookings by user even if the user is not in the selectbox * Tweak - Limit the amount of emails that can be sent to a single user per minute (20), hour (200) and day (2000) (spam protection) * Tweak - Backend javascript and css files are loaded only on Booking Activities screens to avoid conflicts * Fix - Notification were sometimes sent twice when used with WooCommerce in asynchronous mode * Fix - Overlapping of the event list in emails * Fix - WC order became "refunded" when a reservation was refunded, even if another reservation was still "cancelled" * Fix - Cancellation delays were not working properly * Fix - The "user_id" parameter of the bookingactivities_list shortcode didn't work while explicitly set to "current" * Fix - The "status" and "order_by" parameters of the bookingactivities_list shortcode didn't work * Fix - Booking row was not properly updated after cancelling a booking (group) * Fix - Can't refund booking groups paid with WooCommerce * Fix - Events not loaded when a WC product variation was loaded by default, and events were loaded "After page load" * Fix - PHP notice when trying to get translated messages * Fix - PHP notice when displaying WC products having a deprecated config available * Fix - PHP warning when a form with no "User Data (Login / Registration)" field is submitted * Fix - PHP error on booking form list if the booking form author account has been deleted * Fix - The bottom bulk actions selectbox didn't work on Bookings page * Fix - Wrong quantity displayed in reschedule dialog * Fix - The "Cancel" custom label was not applied to the right buttons * Fix - Repeated events on exceptions dates were exported * Fix - The time zone of the exported events was incorrect (UTC instead of yours) * Dev - Prefill a booking form thanks to URL parameters * Dev - Use all booking list filters via URL * Dev - Filter booking list by multiple form id, user id, group category id, group of events id * Lib - Update FullCalendar to 3.10.0 and Moment JS to 2.23.0
4 years ago
esc_html__( 'Events are bookable for up to', BOOKACTI_PLUGIN_NAME ),
** Booking Activities 1.4.0 ** * Feature - Set the advance booking period: customers can book events from X to Y days from today (global option and calendar option) * Feature - Set the minimum booking quantity required per user (activity option and group category option) * Feature - Set the maximum booking quantity allowed per user (activity option and group category option) * Feature - Set the maximum number of different users allowed to book the same (group of) event(s) (for private events) (activity option and group category option) * Feature - Set which user roles are allowed to book wich (group of) event(s) (activity option and group category option) * Feature - Set the booking changes deadline per activity: customers can change their events X days before they start (global option already exists) * Feature - Set whether to allow to book started groups of events (global option and group category option) * Tweak - Groups of events can be unselected in calendar editor * Optimization - Only the required groups of events data are retrieved on frontend * Optimization - Do not process the whole render function while dragging or resizing events * Optimization - Instant JS alert while dragging or resizing a booked event instead of waiting for PHP check * Optimization - Get event / group of events availability with a single query * Fix - Wrong error message when quantity <= 0 in booking form * Fix - PHP notice when updating single events and activity or calendar with no managers * Fix - Don't display booking actions in emails * Fix - PHP warnings and notices when a WooCommerce order was made and notifications sent * Fix - JS error on WC variation loaded with another default booking method than "Calendar" * Fix - Incorrect booking groups user ids if users made their bookings before logging in * Fix - PHP notices after updating custom parameters in calendar editor * Fix - JS errors when an event of a group was past * Fix - Australia and Arctic timezones added * Fix - Multilingual event titles were not displayed in event dialog in calendar editor * Fix - No alert displayed while trying to move or resize a booked event * Fix - JS error while trying to compute group availability if events of the group were not retrieved yet * Fix - PHP notices on activation: Multiple primary keys
5 years ago
'bookacti_settings_field_availability_period_end_callback',
'bookacti_general_settings',
'bookacti_settings_section_general'
);
= 1.1.0 - 2017/07/16 = * Optimization - Calendars are now loaded faster and on page load (possibility to load after page load in Booking Activities settings) * Feature - Manage groups of events! You can group events and make your customer book a bundle of events instead of a single one. * Feature - Bind multiple calendars and activities to one product in WooCommerce! * Feature - Choose the default booking status after a customer complete the booking form or a WooCommerce order. * Feature - Calendars events are now related to your business timezone, and no longer to users' timezone. Customers around the world cannot see / book a past event because of time offset. * Tweak - You can change your calendars period regardless of the bookings already done * Fix - Apostrophe characters in template / activity / events names are now correctly displayed * Fix - Dates are now translated everywhere * Fix - Copy a shortcode in calendar editor now copy only plain text, no more undesired html * Fix - Cart expiration is now checked on each page load. This means that you cart counter will now always be up to date. * Fix - Fixed booking method checks in JS files (misuse of inArray) * Fix - Fixed permission error after closing a dialog in template editor * Fix - All global JS variables are stored in bookacti object in order to avoid collisions * Delete - Removed trashes from editor, to delete calendars, activities and events please use their respective settings dialogs * Delete - Deleted events 'occurrence id' since it is not a relevant identifier. All events can be identified by id + start + end datetimes. * Delete - Deleted unused bookings global actions * Delete - bookacti_display_booking_system() function replaced by bookacti_get_booking_system() which MUST be used to display a booking system * Dev - A lot of hooks has been changed, added or removed. Please go to the website for the [complete changelog](https://booking-activities.fr/en/documentation/changelog/?utm_source=wp-plugin-page&utm_medium=wordpress&utm_content=readme).
5 years ago
add_settings_field(
'default_booking_state',
** Booking Activities 1.7.0 ** * Feature - Add a WC product to cart when you click on an event or when you submit a booking form * Feature - Redirect to a URL when you click on an event or when you submit a booking form * Feature - Redirect to a WC product page when you click on an event or when you submit a booking form * Feature - Backup, archive and restore old bookings and events * Feature - Support WP tools for exporting and erasing personal data * Feature - Edit users phone number on their profile page * Tweak - Allow HTML in events and groups of events title * Tweak - Notifications are send to the user when he cancels or reschedule a booking from the frontend * Tweak - Order calendars, activities, group categories and groups of events by title * Tweak - List of activities in calendar editor can now be scrolled * Tweak - Add the {booking_list_raw} notification tag * Tweak - Support more parameters in bookingactivities_list shortcode (all booking filters) * Tweak - Allow to filter bookings by user even if the user is not in the selectbox * Tweak - Limit the amount of emails that can be sent to a single user per minute (20), hour (200) and day (2000) (spam protection) * Tweak - Backend javascript and css files are loaded only on Booking Activities screens to avoid conflicts * Fix - Notification were sometimes sent twice when used with WooCommerce in asynchronous mode * Fix - Overlapping of the event list in emails * Fix - WC order became "refunded" when a reservation was refunded, even if another reservation was still "cancelled" * Fix - Cancellation delays were not working properly * Fix - The "user_id" parameter of the bookingactivities_list shortcode didn't work while explicitly set to "current" * Fix - The "status" and "order_by" parameters of the bookingactivities_list shortcode didn't work * Fix - Booking row was not properly updated after cancelling a booking (group) * Fix - Can't refund booking groups paid with WooCommerce * Fix - Events not loaded when a WC product variation was loaded by default, and events were loaded "After page load" * Fix - PHP notice when trying to get translated messages * Fix - PHP notice when displaying WC products having a deprecated config available * Fix - PHP warning when a form with no "User Data (Login / Registration)" field is submitted * Fix - PHP error on booking form list if the booking form author account has been deleted * Fix - The bottom bulk actions selectbox didn't work on Bookings page * Fix - Wrong quantity displayed in reschedule dialog * Fix - The "Cancel" custom label was not applied to the right buttons * Fix - Repeated events on exceptions dates were exported * Fix - The time zone of the exported events was incorrect (UTC instead of yours) * Dev - Prefill a booking form thanks to URL parameters * Dev - Use all booking list filters via URL * Dev - Filter booking list by multiple form id, user id, group category id, group of events id * Lib - Update FullCalendar to 3.10.0 and Moment JS to 2.23.0
4 years ago
esc_html__( 'Default booking state', BOOKACTI_PLUGIN_NAME ),
= 1.1.0 - 2017/07/16 = * Optimization - Calendars are now loaded faster and on page load (possibility to load after page load in Booking Activities settings) * Feature - Manage groups of events! You can group events and make your customer book a bundle of events instead of a single one. * Feature - Bind multiple calendars and activities to one product in WooCommerce! * Feature - Choose the default booking status after a customer complete the booking form or a WooCommerce order. * Feature - Calendars events are now related to your business timezone, and no longer to users' timezone. Customers around the world cannot see / book a past event because of time offset. * Tweak - You can change your calendars period regardless of the bookings already done * Fix - Apostrophe characters in template / activity / events names are now correctly displayed * Fix - Dates are now translated everywhere * Fix - Copy a shortcode in calendar editor now copy only plain text, no more undesired html * Fix - Cart expiration is now checked on each page load. This means that you cart counter will now always be up to date. * Fix - Fixed booking method checks in JS files (misuse of inArray) * Fix - Fixed permission error after closing a dialog in template editor * Fix - All global JS variables are stored in bookacti object in order to avoid collisions * Delete - Removed trashes from editor, to delete calendars, activities and events please use their respective settings dialogs * Delete - Deleted events 'occurrence id' since it is not a relevant identifier. All events can be identified by id + start + end datetimes. * Delete - Deleted unused bookings global actions * Delete - bookacti_display_booking_system() function replaced by bookacti_get_booking_system() which MUST be used to display a booking system * Dev - A lot of hooks has been changed, added or removed. Please go to the website for the [complete changelog](https://booking-activities.fr/en/documentation/changelog/?utm_source=wp-plugin-page&utm_medium=wordpress&utm_content=readme).
5 years ago
'bookacti_settings_field_default_booking_state_callback',
'bookacti_general_settings',
'bookacti_settings_section_general'
);
add_settings_field(
** Booking Activities 1.3.0 ** * Tweak - Bookings page has been redesigned * Feature - Filter your booking list by calendars, activities, status, date, and customers (and also by events like before) * Feature - The booking list is now paginated and columns can be hidden (in screen options) and sorted * Feature - Bookings have a new "Payment status" property, with 3 possible values: No payment required, owed, paid. * Feature - Display your customers' bookings calendar with the shortcode [bookingactivities_calendar bookings_only="true" user_id="current" past_events="true"] * Feature - Customize frontend dialogs titles and buttons labels (and content for some of them) * Tweak - In-cart bookings are no longer active when the cart expiration is deactivated. The availability check is made on checkout. * Tweak - Date format can be set more specifically, and the separator between dates can be changed * Tweak - ON/OFF button: clearly display "ON" and "OFF" for a better understanding * Tweak - Email refund option is no longer offered to administrators * Fix - Activities with a title containing special characters triggered a fatal error when an event was dropped * Fix - Picking a group of events not already loaded triggered a fatal error (events of the group still need to be rendered) * Fix - Error notice about wpdb::prepare since WP 4.9+ (can cause fatal error if WP_DEBUG was set to true) * Fix - Show / Hide activities in calendar editor triggers fatal error * Fix - Shop Managers (WooCommerce role) were not able to edit activities * Fix - WooCommerce [product_page] shortcode is now working with variable product marked as activity * Fix - Bookings in a WooCommerce order containing a non-activity products were still "Pending" after payment is received * **Breaking change** - Date format needs to be set again in Booking Activities settings, in "Messages" tab
5 years ago
'default_payment_status',
** Booking Activities 1.7.0 ** * Feature - Add a WC product to cart when you click on an event or when you submit a booking form * Feature - Redirect to a URL when you click on an event or when you submit a booking form * Feature - Redirect to a WC product page when you click on an event or when you submit a booking form * Feature - Backup, archive and restore old bookings and events * Feature - Support WP tools for exporting and erasing personal data * Feature - Edit users phone number on their profile page * Tweak - Allow HTML in events and groups of events title * Tweak - Notifications are send to the user when he cancels or reschedule a booking from the frontend * Tweak - Order calendars, activities, group categories and groups of events by title * Tweak - List of activities in calendar editor can now be scrolled * Tweak - Add the {booking_list_raw} notification tag * Tweak - Support more parameters in bookingactivities_list shortcode (all booking filters) * Tweak - Allow to filter bookings by user even if the user is not in the selectbox * Tweak - Limit the amount of emails that can be sent to a single user per minute (20), hour (200) and day (2000) (spam protection) * Tweak - Backend javascript and css files are loaded only on Booking Activities screens to avoid conflicts * Fix - Notification were sometimes sent twice when used with WooCommerce in asynchronous mode * Fix - Overlapping of the event list in emails * Fix - WC order became "refunded" when a reservation was refunded, even if another reservation was still "cancelled" * Fix - Cancellation delays were not working properly * Fix - The "user_id" parameter of the bookingactivities_list shortcode didn't work while explicitly set to "current" * Fix - The "status" and "order_by" parameters of the bookingactivities_list shortcode didn't work * Fix - Booking row was not properly updated after cancelling a booking (group) * Fix - Can't refund booking groups paid with WooCommerce * Fix - Events not loaded when a WC product variation was loaded by default, and events were loaded "After page load" * Fix - PHP notice when trying to get translated messages * Fix - PHP notice when displaying WC products having a deprecated config available * Fix - PHP warning when a form with no "User Data (Login / Registration)" field is submitted * Fix - PHP error on booking form list if the booking form author account has been deleted * Fix - The bottom bulk actions selectbox didn't work on Bookings page * Fix - Wrong quantity displayed in reschedule dialog * Fix - The "Cancel" custom label was not applied to the right buttons * Fix - Repeated events on exceptions dates were exported * Fix - The time zone of the exported events was incorrect (UTC instead of yours) * Dev - Prefill a booking form thanks to URL parameters * Dev - Use all booking list filters via URL * Dev - Filter booking list by multiple form id, user id, group category id, group of events id * Lib - Update FullCalendar to 3.10.0 and Moment JS to 2.23.0
4 years ago
esc_html__( 'Default payment status', BOOKACTI_PLUGIN_NAME ),
** Booking Activities 1.3.0 ** * Tweak - Bookings page has been redesigned * Feature - Filter your booking list by calendars, activities, status, date, and customers (and also by events like before) * Feature - The booking list is now paginated and columns can be hidden (in screen options) and sorted * Feature - Bookings have a new "Payment status" property, with 3 possible values: No payment required, owed, paid. * Feature - Display your customers' bookings calendar with the shortcode [bookingactivities_calendar bookings_only="true" user_id="current" past_events="true"] * Feature - Customize frontend dialogs titles and buttons labels (and content for some of them) * Tweak - In-cart bookings are no longer active when the cart expiration is deactivated. The availability check is made on checkout. * Tweak - Date format can be set more specifically, and the separator between dates can be changed * Tweak - ON/OFF button: clearly display "ON" and "OFF" for a better understanding * Tweak - Email refund option is no longer offered to administrators * Fix - Activities with a title containing special characters triggered a fatal error when an event was dropped * Fix - Picking a group of events not already loaded triggered a fatal error (events of the group still need to be rendered) * Fix - Error notice about wpdb::prepare since WP 4.9+ (can cause fatal error if WP_DEBUG was set to true) * Fix - Show / Hide activities in calendar editor triggers fatal error * Fix - Shop Managers (WooCommerce role) were not able to edit activities * Fix - WooCommerce [product_page] shortcode is now working with variable product marked as activity * Fix - Bookings in a WooCommerce order containing a non-activity products were still "Pending" after payment is received * **Breaking change** - Date format needs to be set again in Booking Activities settings, in "Messages" tab
5 years ago
'bookacti_settings_field_default_payment_status_callback',
= 1.1.0 - 2017/07/16 = * Optimization - Calendars are now loaded faster and on page load (possibility to load after page load in Booking Activities settings) * Feature - Manage groups of events! You can group events and make your customer book a bundle of events instead of a single one. * Feature - Bind multiple calendars and activities to one product in WooCommerce! * Feature - Choose the default booking status after a customer complete the booking form or a WooCommerce order. * Feature - Calendars events are now related to your business timezone, and no longer to users' timezone. Customers around the world cannot see / book a past event because of time offset. * Tweak - You can change your calendars period regardless of the bookings already done * Fix - Apostrophe characters in template / activity / events names are now correctly displayed * Fix - Dates are now translated everywhere * Fix - Copy a shortcode in calendar editor now copy only plain text, no more undesired html * Fix - Cart expiration is now checked on each page load. This means that you cart counter will now always be up to date. * Fix - Fixed booking method checks in JS files (misuse of inArray) * Fix - Fixed permission error after closing a dialog in template editor * Fix - All global JS variables are stored in bookacti object in order to avoid collisions * Delete - Removed trashes from editor, to delete calendars, activities and events please use their respective settings dialogs * Delete - Deleted events 'occurrence id' since it is not a relevant identifier. All events can be identified by id + start + end datetimes. * Delete - Deleted unused bookings global actions * Delete - bookacti_display_booking_system() function replaced by bookacti_get_booking_system() which MUST be used to display a booking system * Dev - A lot of hooks has been changed, added or removed. Please go to the website for the [complete changelog](https://booking-activities.fr/en/documentation/changelog/?utm_source=wp-plugin-page&utm_medium=wordpress&utm_content=readme).
5 years ago
'bookacti_general_settings',
'bookacti_settings_section_general'
);
add_settings_field(
** Booking Activities 1.3.0 ** * Tweak - Bookings page has been redesigned * Feature - Filter your booking list by calendars, activities, status, date, and customers (and also by events like before) * Feature - The booking list is now paginated and columns can be hidden (in screen options) and sorted * Feature - Bookings have a new "Payment status" property, with 3 possible values: No payment required, owed, paid. * Feature - Display your customers' bookings calendar with the shortcode [bookingactivities_calendar bookings_only="true" user_id="current" past_events="true"] * Feature - Customize frontend dialogs titles and buttons labels (and content for some of them) * Tweak - In-cart bookings are no longer active when the cart expiration is deactivated. The availability check is made on checkout. * Tweak - Date format can be set more specifically, and the separator between dates can be changed * Tweak - ON/OFF button: clearly display "ON" and "OFF" for a better understanding * Tweak - Email refund option is no longer offered to administrators * Fix - Activities with a title containing special characters triggered a fatal error when an event was dropped * Fix - Picking a group of events not already loaded triggered a fatal error (events of the group still need to be rendered) * Fix - Error notice about wpdb::prepare since WP 4.9+ (can cause fatal error if WP_DEBUG was set to true) * Fix - Show / Hide activities in calendar editor triggers fatal error * Fix - Shop Managers (WooCommerce role) were not able to edit activities * Fix - WooCommerce [product_page] shortcode is now working with variable product marked as activity * Fix - Bookings in a WooCommerce order containing a non-activity products were still "Pending" after payment is received * **Breaking change** - Date format needs to be set again in Booking Activities settings, in "Messages" tab
5 years ago
'timezone',
** Booking Activities 1.7.0 ** * Feature - Add a WC product to cart when you click on an event or when you submit a booking form * Feature - Redirect to a URL when you click on an event or when you submit a booking form * Feature - Redirect to a WC product page when you click on an event or when you submit a booking form * Feature - Backup, archive and restore old bookings and events * Feature - Support WP tools for exporting and erasing personal data * Feature - Edit users phone number on their profile page * Tweak - Allow HTML in events and groups of events title * Tweak - Notifications are send to the user when he cancels or reschedule a booking from the frontend * Tweak - Order calendars, activities, group categories and groups of events by title * Tweak - List of activities in calendar editor can now be scrolled * Tweak - Add the {booking_list_raw} notification tag * Tweak - Support more parameters in bookingactivities_list shortcode (all booking filters) * Tweak - Allow to filter bookings by user even if the user is not in the selectbox * Tweak - Limit the amount of emails that can be sent to a single user per minute (20), hour (200) and day (2000) (spam protection) * Tweak - Backend javascript and css files are loaded only on Booking Activities screens to avoid conflicts * Fix - Notification were sometimes sent twice when used with WooCommerce in asynchronous mode * Fix - Overlapping of the event list in emails * Fix - WC order became "refunded" when a reservation was refunded, even if another reservation was still "cancelled" * Fix - Cancellation delays were not working properly * Fix - The "user_id" parameter of the bookingactivities_list shortcode didn't work while explicitly set to "current" * Fix - The "status" and "order_by" parameters of the bookingactivities_list shortcode didn't work * Fix - Booking row was not properly updated after cancelling a booking (group) * Fix - Can't refund booking groups paid with WooCommerce * Fix - Events not loaded when a WC product variation was loaded by default, and events were loaded "After page load" * Fix - PHP notice when trying to get translated messages * Fix - PHP notice when displaying WC products having a deprecated config available * Fix - PHP warning when a form with no "User Data (Login / Registration)" field is submitted * Fix - PHP error on booking form list if the booking form author account has been deleted * Fix - The bottom bulk actions selectbox didn't work on Bookings page * Fix - Wrong quantity displayed in reschedule dialog * Fix - The "Cancel" custom label was not applied to the right buttons * Fix - Repeated events on exceptions dates were exported * Fix - The time zone of the exported events was incorrect (UTC instead of yours) * Dev - Prefill a booking form thanks to URL parameters * Dev - Use all booking list filters via URL * Dev - Filter booking list by multiple form id, user id, group category id, group of events id * Lib - Update FullCalendar to 3.10.0 and Moment JS to 2.23.0
4 years ago
esc_html__( 'Calendars timezone', BOOKACTI_PLUGIN_NAME ),
** Booking Activities 1.3.0 ** * Tweak - Bookings page has been redesigned * Feature - Filter your booking list by calendars, activities, status, date, and customers (and also by events like before) * Feature - The booking list is now paginated and columns can be hidden (in screen options) and sorted * Feature - Bookings have a new "Payment status" property, with 3 possible values: No payment required, owed, paid. * Feature - Display your customers' bookings calendar with the shortcode [bookingactivities_calendar bookings_only="true" user_id="current" past_events="true"] * Feature - Customize frontend dialogs titles and buttons labels (and content for some of them) * Tweak - In-cart bookings are no longer active when the cart expiration is deactivated. The availability check is made on checkout. * Tweak - Date format can be set more specifically, and the separator between dates can be changed * Tweak - ON/OFF button: clearly display "ON" and "OFF" for a better understanding * Tweak - Email refund option is no longer offered to administrators * Fix - Activities with a title containing special characters triggered a fatal error when an event was dropped * Fix - Picking a group of events not already loaded triggered a fatal error (events of the group still need to be rendered) * Fix - Error notice about wpdb::prepare since WP 4.9+ (can cause fatal error if WP_DEBUG was set to true) * Fix - Show / Hide activities in calendar editor triggers fatal error * Fix - Shop Managers (WooCommerce role) were not able to edit activities * Fix - WooCommerce [product_page] shortcode is now working with variable product marked as activity * Fix - Bookings in a WooCommerce order containing a non-activity products were still "Pending" after payment is received * **Breaking change** - Date format needs to be set again in Booking Activities settings, in "Messages" tab
5 years ago
'bookacti_settings_field_timezone_callback',
= 1.1.0 - 2017/07/16 = * Optimization - Calendars are now loaded faster and on page load (possibility to load after page load in Booking Activities settings) * Feature - Manage groups of events! You can group events and make your customer book a bundle of events instead of a single one. * Feature - Bind multiple calendars and activities to one product in WooCommerce! * Feature - Choose the default booking status after a customer complete the booking form or a WooCommerce order. * Feature - Calendars events are now related to your business timezone, and no longer to users' timezone. Customers around the world cannot see / book a past event because of time offset. * Tweak - You can change your calendars period regardless of the bookings already done * Fix - Apostrophe characters in template / activity / events names are now correctly displayed * Fix - Dates are now translated everywhere * Fix - Copy a shortcode in calendar editor now copy only plain text, no more undesired html * Fix - Cart expiration is now checked on each page load. This means that you cart counter will now always be up to date. * Fix - Fixed booking method checks in JS files (misuse of inArray) * Fix - Fixed permission error after closing a dialog in template editor * Fix - All global JS variables are stored in bookacti object in order to avoid collisions * Delete - Removed trashes from editor, to delete calendars, activities and events please use their respective settings dialogs * Delete - Deleted events 'occurrence id' since it is not a relevant identifier. All events can be identified by id + start + end datetimes. * Delete - Deleted unused bookings global actions * Delete - bookacti_display_booking_system() function replaced by bookacti_get_booking_system() which MUST be used to display a booking system * Dev - A lot of hooks has been changed, added or removed. Please go to the website for the [complete changelog](https://booking-activities.fr/en/documentation/changelog/?utm_source=wp-plugin-page&utm_medium=wordpress&utm_content=readme).
5 years ago
'bookacti_general_settings',
'bookacti_settings_section_general'
);
** Booking Activities 1.5.0 ** * Feature - Customizable booking forms ! * Feature - You can now delete your bookings and your booking groups from the booking list * Feature - You can display past events on frontend, they can be bookable or not * Feature - Responsive default calendar view: display day view for small calendars instead of week view (set the threshold in settings) * Tweak - Add a "Product" column in booking list (if the reservation was made with WooCommerce) * Tweak - Add a dismissible admin notice to inform that WooCommerce "guest checkout" option isn't supported * Tweak - Use core dashicons instead of additional images in backend * Tweak - When to load the events? setting now also apply to product variation if a default variation is set * Fix - Booking groups sometimes not appearing in booking list * Fix - Show / Hide columns according to page options in booking list after a row is refreshed * Fix - Booking list pagination didn't allow to jump to a specific page * Fix - Couldn't drag and drop activities in calendar editor with touch devices * Fix - PHP warning during AJAX request which needs to create an instance of the Booking List * Fix - PHP warning when deleting a non-booking order item in the admin panel * Fix - PHP warning sometimes occurs before sending a notification * Fix - If the snap frequency was 00:00, it wasn't possible to drop an event on the calendar editor * Fix - Woocommerce 2.6 backward compatibility various checkout issues * **Breaking change** - Refund actions in Booking Activities settings must be set again
5 years ago
add_settings_field(
'default_calendar_view_threshold',
esc_html__( 'Load the "Day" view if the calendar width is less than', BOOKACTI_PLUGIN_NAME ),
** Booking Activities 1.5.0 ** * Feature - Customizable booking forms ! * Feature - You can now delete your bookings and your booking groups from the booking list * Feature - You can display past events on frontend, they can be bookable or not * Feature - Responsive default calendar view: display day view for small calendars instead of week view (set the threshold in settings) * Tweak - Add a "Product" column in booking list (if the reservation was made with WooCommerce) * Tweak - Add a dismissible admin notice to inform that WooCommerce "guest checkout" option isn't supported * Tweak - Use core dashicons instead of additional images in backend * Tweak - When to load the events? setting now also apply to product variation if a default variation is set * Fix - Booking groups sometimes not appearing in booking list * Fix - Show / Hide columns according to page options in booking list after a row is refreshed * Fix - Booking list pagination didn't allow to jump to a specific page * Fix - Couldn't drag and drop activities in calendar editor with touch devices * Fix - PHP warning during AJAX request which needs to create an instance of the Booking List * Fix - PHP warning when deleting a non-booking order item in the admin panel * Fix - PHP warning sometimes occurs before sending a notification * Fix - If the snap frequency was 00:00, it wasn't possible to drop an event on the calendar editor * Fix - Woocommerce 2.6 backward compatibility various checkout issues * **Breaking change** - Refund actions in Booking Activities settings must be set again
5 years ago
'bookacti_settings_field_default_calendar_view_threshold_callback',
'bookacti_general_settings',
'bookacti_settings_section_general'
);
** Booking Activities 1.6.0 ** * Feature - Book without account * Feature - WooCommerce guest checkout supported * Feature - Export your events to ical (ics) files * Feature - Synchronize your events with third-party apps (e.g.: Google Agenda) (one way: export only) * Feature - Add {user_ical_url} notification tag to let your customers export and synchronize their bookings on their calendar app * Feature - Export your bookings to CSV files * Feature - Synchronize your booking list to third-party apps (e.g.: Google Sheet) (one way: export only) * Feature - Frontend booking lists are paginated * Feature - You can use any booking filters as parameters in the bookingactivities_list shortcode * Feature - Add a "Delivered" booking status, in order to flag when the customer has attended the booking * Feature - Add {price} notification tag to display the WC order item price bound to the booking * Optimization - Booking lists are displayed faster (backend and frontend) * Tweak - Events dropped on the month view now start at the time set in the "Day begin" option * Tweak - Display shortcuts in calendar editor * Tweak - Change the "Refunded" label to "Refunded with coupon ..." if it was refunded with a coupon * Tweak - Add an option to delete all Booking Activities data on uninstall, in order to avoid accidental data deletion * Tweak - Set default snap frequency to 5 minutes instead of 30 * Tweak - The calendar appearence on the backend booking list no longer changes according to the selected calendars * Fix - Booking form not appearing on WC variable product pages if the default variation was non-activity * Fix - Possible PHP error while checking templates, activities and forms permission if they are not set
4 years ago
add_settings_field(
'delete_data_on_uninstall',
esc_html__( 'Delete data on uninstall', BOOKACTI_PLUGIN_NAME ),
'bookacti_settings_field_delete_data_on_uninstall_callback',
'bookacti_general_settings',
'bookacti_settings_section_general'
);
6 years ago
/* Cancellation settings Section */
add_settings_section(
'bookacti_settings_section_cancellation',
** Booking Activities 1.7.0 ** * Feature - Add a WC product to cart when you click on an event or when you submit a booking form * Feature - Redirect to a URL when you click on an event or when you submit a booking form * Feature - Redirect to a WC product page when you click on an event or when you submit a booking form * Feature - Backup, archive and restore old bookings and events * Feature - Support WP tools for exporting and erasing personal data * Feature - Edit users phone number on their profile page * Tweak - Allow HTML in events and groups of events title * Tweak - Notifications are send to the user when he cancels or reschedule a booking from the frontend * Tweak - Order calendars, activities, group categories and groups of events by title * Tweak - List of activities in calendar editor can now be scrolled * Tweak - Add the {booking_list_raw} notification tag * Tweak - Support more parameters in bookingactivities_list shortcode (all booking filters) * Tweak - Allow to filter bookings by user even if the user is not in the selectbox * Tweak - Limit the amount of emails that can be sent to a single user per minute (20), hour (200) and day (2000) (spam protection) * Tweak - Backend javascript and css files are loaded only on Booking Activities screens to avoid conflicts * Fix - Notification were sometimes sent twice when used with WooCommerce in asynchronous mode * Fix - Overlapping of the event list in emails * Fix - WC order became "refunded" when a reservation was refunded, even if another reservation was still "cancelled" * Fix - Cancellation delays were not working properly * Fix - The "user_id" parameter of the bookingactivities_list shortcode didn't work while explicitly set to "current" * Fix - The "status" and "order_by" parameters of the bookingactivities_list shortcode didn't work * Fix - Booking row was not properly updated after cancelling a booking (group) * Fix - Can't refund booking groups paid with WooCommerce * Fix - Events not loaded when a WC product variation was loaded by default, and events were loaded "After page load" * Fix - PHP notice when trying to get translated messages * Fix - PHP notice when displaying WC products having a deprecated config available * Fix - PHP warning when a form with no "User Data (Login / Registration)" field is submitted * Fix - PHP error on booking form list if the booking form author account has been deleted * Fix - The bottom bulk actions selectbox didn't work on Bookings page * Fix - Wrong quantity displayed in reschedule dialog * Fix - The "Cancel" custom label was not applied to the right buttons * Fix - Repeated events on exceptions dates were exported * Fix - The time zone of the exported events was incorrect (UTC instead of yours) * Dev - Prefill a booking form thanks to URL parameters * Dev - Use all booking list filters via URL * Dev - Filter booking list by multiple form id, user id, group category id, group of events id * Lib - Update FullCalendar to 3.10.0 and Moment JS to 2.23.0
4 years ago
esc_html__( 'Cancellation settings', BOOKACTI_PLUGIN_NAME ),
6 years ago
'bookacti_settings_section_cancellation_callback',
'bookacti_cancellation_settings'
);
add_settings_field(
'allow_customers_to_cancel',
** Booking Activities 1.7.0 ** * Feature - Add a WC product to cart when you click on an event or when you submit a booking form * Feature - Redirect to a URL when you click on an event or when you submit a booking form * Feature - Redirect to a WC product page when you click on an event or when you submit a booking form * Feature - Backup, archive and restore old bookings and events * Feature - Support WP tools for exporting and erasing personal data * Feature - Edit users phone number on their profile page * Tweak - Allow HTML in events and groups of events title * Tweak - Notifications are send to the user when he cancels or reschedule a booking from the frontend * Tweak - Order calendars, activities, group categories and groups of events by title * Tweak - List of activities in calendar editor can now be scrolled * Tweak - Add the {booking_list_raw} notification tag * Tweak - Support more parameters in bookingactivities_list shortcode (all booking filters) * Tweak - Allow to filter bookings by user even if the user is not in the selectbox * Tweak - Limit the amount of emails that can be sent to a single user per minute (20), hour (200) and day (2000) (spam protection) * Tweak - Backend javascript and css files are loaded only on Booking Activities screens to avoid conflicts * Fix - Notification were sometimes sent twice when used with WooCommerce in asynchronous mode * Fix - Overlapping of the event list in emails * Fix - WC order became "refunded" when a reservation was refunded, even if another reservation was still "cancelled" * Fix - Cancellation delays were not working properly * Fix - The "user_id" parameter of the bookingactivities_list shortcode didn't work while explicitly set to "current" * Fix - The "status" and "order_by" parameters of the bookingactivities_list shortcode didn't work * Fix - Booking row was not properly updated after cancelling a booking (group) * Fix - Can't refund booking groups paid with WooCommerce * Fix - Events not loaded when a WC product variation was loaded by default, and events were loaded "After page load" * Fix - PHP notice when trying to get translated messages * Fix - PHP notice when displaying WC products having a deprecated config available * Fix - PHP warning when a form with no "User Data (Login / Registration)" field is submitted * Fix - PHP error on booking form list if the booking form author account has been deleted * Fix - The bottom bulk actions selectbox didn't work on Bookings page * Fix - Wrong quantity displayed in reschedule dialog * Fix - The "Cancel" custom label was not applied to the right buttons * Fix - Repeated events on exceptions dates were exported * Fix - The time zone of the exported events was incorrect (UTC instead of yours) * Dev - Prefill a booking form thanks to URL parameters * Dev - Use all booking list filters via URL * Dev - Filter booking list by multiple form id, user id, group category id, group of events id * Lib - Update FullCalendar to 3.10.0 and Moment JS to 2.23.0
4 years ago
esc_html__( 'Allow customers to cancel their bookings', BOOKACTI_PLUGIN_NAME ),
6 years ago
'bookacti_settings_field_activate_cancel_callback',
'bookacti_cancellation_settings',
'bookacti_settings_section_cancellation'
);
add_settings_field(
'allow_customers_to_reschedule',
__( 'Allow customers to reschedule their bookings', BOOKACTI_PLUGIN_NAME ),
'bookacti_settings_field_activate_reschedule_callback',
'bookacti_cancellation_settings',
'bookacti_settings_section_cancellation'
);
add_settings_field(
** Booking Activities 1.4.0 ** * Feature - Set the advance booking period: customers can book events from X to Y days from today (global option and calendar option) * Feature - Set the minimum booking quantity required per user (activity option and group category option) * Feature - Set the maximum booking quantity allowed per user (activity option and group category option) * Feature - Set the maximum number of different users allowed to book the same (group of) event(s) (for private events) (activity option and group category option) * Feature - Set which user roles are allowed to book wich (group of) event(s) (activity option and group category option) * Feature - Set the booking changes deadline per activity: customers can change their events X days before they start (global option already exists) * Feature - Set whether to allow to book started groups of events (global option and group category option) * Tweak - Groups of events can be unselected in calendar editor * Optimization - Only the required groups of events data are retrieved on frontend * Optimization - Do not process the whole render function while dragging or resizing events * Optimization - Instant JS alert while dragging or resizing a booked event instead of waiting for PHP check * Optimization - Get event / group of events availability with a single query * Fix - Wrong error message when quantity <= 0 in booking form * Fix - PHP notice when updating single events and activity or calendar with no managers * Fix - Don't display booking actions in emails * Fix - PHP warnings and notices when a WooCommerce order was made and notifications sent * Fix - JS error on WC variation loaded with another default booking method than "Calendar" * Fix - Incorrect booking groups user ids if users made their bookings before logging in * Fix - PHP notices after updating custom parameters in calendar editor * Fix - JS errors when an event of a group was past * Fix - Australia and Arctic timezones added * Fix - Multilingual event titles were not displayed in event dialog in calendar editor * Fix - No alert displayed while trying to move or resize a booked event * Fix - JS error while trying to compute group availability if events of the group were not retrieved yet * Fix - PHP notices on activation: Multiple primary keys
5 years ago
'cancellation_min_delay_before_event',
/* translators: Followed by a field indicating a number of days before the event. E.g.: "Changes permitted up to 2 days before the event". */
** Booking Activities 1.7.0 ** * Feature - Add a WC product to cart when you click on an event or when you submit a booking form * Feature - Redirect to a URL when you click on an event or when you submit a booking form * Feature - Redirect to a WC product page when you click on an event or when you submit a booking form * Feature - Backup, archive and restore old bookings and events * Feature - Support WP tools for exporting and erasing personal data * Feature - Edit users phone number on their profile page * Tweak - Allow HTML in events and groups of events title * Tweak - Notifications are send to the user when he cancels or reschedule a booking from the frontend * Tweak - Order calendars, activities, group categories and groups of events by title * Tweak - List of activities in calendar editor can now be scrolled * Tweak - Add the {booking_list_raw} notification tag * Tweak - Support more parameters in bookingactivities_list shortcode (all booking filters) * Tweak - Allow to filter bookings by user even if the user is not in the selectbox * Tweak - Limit the amount of emails that can be sent to a single user per minute (20), hour (200) and day (2000) (spam protection) * Tweak - Backend javascript and css files are loaded only on Booking Activities screens to avoid conflicts * Fix - Notification were sometimes sent twice when used with WooCommerce in asynchronous mode * Fix - Overlapping of the event list in emails * Fix - WC order became "refunded" when a reservation was refunded, even if another reservation was still "cancelled" * Fix - Cancellation delays were not working properly * Fix - The "user_id" parameter of the bookingactivities_list shortcode didn't work while explicitly set to "current" * Fix - The "status" and "order_by" parameters of the bookingactivities_list shortcode didn't work * Fix - Booking row was not properly updated after cancelling a booking (group) * Fix - Can't refund booking groups paid with WooCommerce * Fix - Events not loaded when a WC product variation was loaded by default, and events were loaded "After page load" * Fix - PHP notice when trying to get translated messages * Fix - PHP notice when displaying WC products having a deprecated config available * Fix - PHP warning when a form with no "User Data (Login / Registration)" field is submitted * Fix - PHP error on booking form list if the booking form author account has been deleted * Fix - The bottom bulk actions selectbox didn't work on Bookings page * Fix - Wrong quantity displayed in reschedule dialog * Fix - The "Cancel" custom label was not applied to the right buttons * Fix - Repeated events on exceptions dates were exported * Fix - The time zone of the exported events was incorrect (UTC instead of yours) * Dev - Prefill a booking form thanks to URL parameters * Dev - Use all booking list filters via URL * Dev - Filter booking list by multiple form id, user id, group category id, group of events id * Lib - Update FullCalendar to 3.10.0 and Moment JS to 2.23.0
4 years ago
esc_html__( 'Changes permitted up to', BOOKACTI_PLUGIN_NAME ),
6 years ago
'bookacti_settings_field_cancellation_delay_callback',
'bookacti_cancellation_settings',
'bookacti_settings_section_cancellation'
);
add_settings_field(
'refund_actions_after_cancellation',
** Booking Activities 1.7.0 ** * Feature - Add a WC product to cart when you click on an event or when you submit a booking form * Feature - Redirect to a URL when you click on an event or when you submit a booking form * Feature - Redirect to a WC product page when you click on an event or when you submit a booking form * Feature - Backup, archive and restore old bookings and events * Feature - Support WP tools for exporting and erasing personal data * Feature - Edit users phone number on their profile page * Tweak - Allow HTML in events and groups of events title * Tweak - Notifications are send to the user when he cancels or reschedule a booking from the frontend * Tweak - Order calendars, activities, group categories and groups of events by title * Tweak - List of activities in calendar editor can now be scrolled * Tweak - Add the {booking_list_raw} notification tag * Tweak - Support more parameters in bookingactivities_list shortcode (all booking filters) * Tweak - Allow to filter bookings by user even if the user is not in the selectbox * Tweak - Limit the amount of emails that can be sent to a single user per minute (20), hour (200) and day (2000) (spam protection) * Tweak - Backend javascript and css files are loaded only on Booking Activities screens to avoid conflicts * Fix - Notification were sometimes sent twice when used with WooCommerce in asynchronous mode * Fix - Overlapping of the event list in emails * Fix - WC order became "refunded" when a reservation was refunded, even if another reservation was still "cancelled" * Fix - Cancellation delays were not working properly * Fix - The "user_id" parameter of the bookingactivities_list shortcode didn't work while explicitly set to "current" * Fix - The "status" and "order_by" parameters of the bookingactivities_list shortcode didn't work * Fix - Booking row was not properly updated after cancelling a booking (group) * Fix - Can't refund booking groups paid with WooCommerce * Fix - Events not loaded when a WC product variation was loaded by default, and events were loaded "After page load" * Fix - PHP notice when trying to get translated messages * Fix - PHP notice when displaying WC products having a deprecated config available * Fix - PHP warning when a form with no "User Data (Login / Registration)" field is submitted * Fix - PHP error on booking form list if the booking form author account has been deleted * Fix - The bottom bulk actions selectbox didn't work on Bookings page * Fix - Wrong quantity displayed in reschedule dialog * Fix - The "Cancel" custom label was not applied to the right buttons * Fix - Repeated events on exceptions dates were exported * Fix - The time zone of the exported events was incorrect (UTC instead of yours) * Dev - Prefill a booking form thanks to URL parameters * Dev - Use all booking list filters via URL * Dev - Filter booking list by multiple form id, user id, group category id, group of events id * Lib - Update FullCalendar to 3.10.0 and Moment JS to 2.23.0
4 years ago
esc_html__( 'Possible actions customers can take to be refunded', BOOKACTI_PLUGIN_NAME ),
'bookacti_settings_field_cancellation_refund_actions_callback',
'bookacti_cancellation_settings',
'bookacti_settings_section_cancellation'
);
/* Notifications settings Section - 1 - General settings */
add_settings_section(
'bookacti_settings_section_notifications_general',
** Booking Activities 1.7.0 ** * Feature - Add a WC product to cart when you click on an event or when you submit a booking form * Feature - Redirect to a URL when you click on an event or when you submit a booking form * Feature - Redirect to a WC product page when you click on an event or when you submit a booking form * Feature - Backup, archive and restore old bookings and events * Feature - Support WP tools for exporting and erasing personal data * Feature - Edit users phone number on their profile page * Tweak - Allow HTML in events and groups of events title * Tweak - Notifications are send to the user when he cancels or reschedule a booking from the frontend * Tweak - Order calendars, activities, group categories and groups of events by title * Tweak - List of activities in calendar editor can now be scrolled * Tweak - Add the {booking_list_raw} notification tag * Tweak - Support more parameters in bookingactivities_list shortcode (all booking filters) * Tweak - Allow to filter bookings by user even if the user is not in the selectbox * Tweak - Limit the amount of emails that can be sent to a single user per minute (20), hour (200) and day (2000) (spam protection) * Tweak - Backend javascript and css files are loaded only on Booking Activities screens to avoid conflicts * Fix - Notification were sometimes sent twice when used with WooCommerce in asynchronous mode * Fix - Overlapping of the event list in emails * Fix - WC order became "refunded" when a reservation was refunded, even if another reservation was still "cancelled" * Fix - Cancellation delays were not working properly * Fix - The "user_id" parameter of the bookingactivities_list shortcode didn't work while explicitly set to "current" * Fix - The "status" and "order_by" parameters of the bookingactivities_list shortcode didn't work * Fix - Booking row was not properly updated after cancelling a booking (group) * Fix - Can't refund booking groups paid with WooCommerce * Fix - Events not loaded when a WC product variation was loaded by default, and events were loaded "After page load" * Fix - PHP notice when trying to get translated messages * Fix - PHP notice when displaying WC products having a deprecated config available * Fix - PHP warning when a form with no "User Data (Login / Registration)" field is submitted * Fix - PHP error on booking form list if the booking form author account has been deleted * Fix - The bottom bulk actions selectbox didn't work on Bookings page * Fix - Wrong quantity displayed in reschedule dialog * Fix - The "Cancel" custom label was not applied to the right buttons * Fix - Repeated events on exceptions dates were exported * Fix - The time zone of the exported events was incorrect (UTC instead of yours) * Dev - Prefill a booking form thanks to URL parameters * Dev - Use all booking list filters via URL * Dev - Filter booking list by multiple form id, user id, group category id, group of events id * Lib - Update FullCalendar to 3.10.0 and Moment JS to 2.23.0
4 years ago
esc_html__( 'Notifications', BOOKACTI_PLUGIN_NAME ),
'bookacti_settings_section_notifications_general_callback',
'bookacti_notifications_settings'
);
add_settings_field(
'notifications_async',
** Booking Activities 1.7.0 ** * Feature - Add a WC product to cart when you click on an event or when you submit a booking form * Feature - Redirect to a URL when you click on an event or when you submit a booking form * Feature - Redirect to a WC product page when you click on an event or when you submit a booking form * Feature - Backup, archive and restore old bookings and events * Feature - Support WP tools for exporting and erasing personal data * Feature - Edit users phone number on their profile page * Tweak - Allow HTML in events and groups of events title * Tweak - Notifications are send to the user when he cancels or reschedule a booking from the frontend * Tweak - Order calendars, activities, group categories and groups of events by title * Tweak - List of activities in calendar editor can now be scrolled * Tweak - Add the {booking_list_raw} notification tag * Tweak - Support more parameters in bookingactivities_list shortcode (all booking filters) * Tweak - Allow to filter bookings by user even if the user is not in the selectbox * Tweak - Limit the amount of emails that can be sent to a single user per minute (20), hour (200) and day (2000) (spam protection) * Tweak - Backend javascript and css files are loaded only on Booking Activities screens to avoid conflicts * Fix - Notification were sometimes sent twice when used with WooCommerce in asynchronous mode * Fix - Overlapping of the event list in emails * Fix - WC order became "refunded" when a reservation was refunded, even if another reservation was still "cancelled" * Fix - Cancellation delays were not working properly * Fix - The "user_id" parameter of the bookingactivities_list shortcode didn't work while explicitly set to "current" * Fix - The "status" and "order_by" parameters of the bookingactivities_list shortcode didn't work * Fix - Booking row was not properly updated after cancelling a booking (group) * Fix - Can't refund booking groups paid with WooCommerce * Fix - Events not loaded when a WC product variation was loaded by default, and events were loaded "After page load" * Fix - PHP notice when trying to get translated messages * Fix - PHP notice when displaying WC products having a deprecated config available * Fix - PHP warning when a form with no "User Data (Login / Registration)" field is submitted * Fix - PHP error on booking form list if the booking form author account has been deleted * Fix - The bottom bulk actions selectbox didn't work on Bookings page * Fix - Wrong quantity displayed in reschedule dialog * Fix - The "Cancel" custom label was not applied to the right buttons * Fix - Repeated events on exceptions dates were exported * Fix - The time zone of the exported events was incorrect (UTC instead of yours) * Dev - Prefill a booking form thanks to URL parameters * Dev - Use all booking list filters via URL * Dev - Filter booking list by multiple form id, user id, group category id, group of events id * Lib - Update FullCalendar to 3.10.0 and Moment JS to 2.23.0
4 years ago
esc_html__( 'Asynchronous notifications', BOOKACTI_PLUGIN_NAME ),
'bookacti_settings_field_notifications_async_callback',
'bookacti_notifications_settings',
'bookacti_settings_section_notifications_general'
);
/* Notifications settings Section - 2 - Email settings */
add_settings_section(
'bookacti_settings_section_notifications_email',
** Booking Activities 1.7.0 ** * Feature - Add a WC product to cart when you click on an event or when you submit a booking form * Feature - Redirect to a URL when you click on an event or when you submit a booking form * Feature - Redirect to a WC product page when you click on an event or when you submit a booking form * Feature - Backup, archive and restore old bookings and events * Feature - Support WP tools for exporting and erasing personal data * Feature - Edit users phone number on their profile page * Tweak - Allow HTML in events and groups of events title * Tweak - Notifications are send to the user when he cancels or reschedule a booking from the frontend * Tweak - Order calendars, activities, group categories and groups of events by title * Tweak - List of activities in calendar editor can now be scrolled * Tweak - Add the {booking_list_raw} notification tag * Tweak - Support more parameters in bookingactivities_list shortcode (all booking filters) * Tweak - Allow to filter bookings by user even if the user is not in the selectbox * Tweak - Limit the amount of emails that can be sent to a single user per minute (20), hour (200) and day (2000) (spam protection) * Tweak - Backend javascript and css files are loaded only on Booking Activities screens to avoid conflicts * Fix - Notification were sometimes sent twice when used with WooCommerce in asynchronous mode * Fix - Overlapping of the event list in emails * Fix - WC order became "refunded" when a reservation was refunded, even if another reservation was still "cancelled" * Fix - Cancellation delays were not working properly * Fix - The "user_id" parameter of the bookingactivities_list shortcode didn't work while explicitly set to "current" * Fix - The "status" and "order_by" parameters of the bookingactivities_list shortcode didn't work * Fix - Booking row was not properly updated after cancelling a booking (group) * Fix - Can't refund booking groups paid with WooCommerce * Fix - Events not loaded when a WC product variation was loaded by default, and events were loaded "After page load" * Fix - PHP notice when trying to get translated messages * Fix - PHP notice when displaying WC products having a deprecated config available * Fix - PHP warning when a form with no "User Data (Login / Registration)" field is submitted * Fix - PHP error on booking form list if the booking form author account has been deleted * Fix - The bottom bulk actions selectbox didn't work on Bookings page * Fix - Wrong quantity displayed in reschedule dialog * Fix - The "Cancel" custom label was not applied to the right buttons * Fix - Repeated events on exceptions dates were exported * Fix - The time zone of the exported events was incorrect (UTC instead of yours) * Dev - Prefill a booking form thanks to URL parameters * Dev - Use all booking list filters via URL * Dev - Filter booking list by multiple form id, user id, group category id, group of events id * Lib - Update FullCalendar to 3.10.0 and Moment JS to 2.23.0
4 years ago
esc_html__( 'Email notifications settings', BOOKACTI_PLUGIN_NAME ),
'bookacti_settings_section_notifications_email_callback',
'bookacti_notifications_settings'
);
add_settings_field(
'notifications_from_name',
** Booking Activities 1.7.0 ** * Feature - Add a WC product to cart when you click on an event or when you submit a booking form * Feature - Redirect to a URL when you click on an event or when you submit a booking form * Feature - Redirect to a WC product page when you click on an event or when you submit a booking form * Feature - Backup, archive and restore old bookings and events * Feature - Support WP tools for exporting and erasing personal data * Feature - Edit users phone number on their profile page * Tweak - Allow HTML in events and groups of events title * Tweak - Notifications are send to the user when he cancels or reschedule a booking from the frontend * Tweak - Order calendars, activities, group categories and groups of events by title * Tweak - List of activities in calendar editor can now be scrolled * Tweak - Add the {booking_list_raw} notification tag * Tweak - Support more parameters in bookingactivities_list shortcode (all booking filters) * Tweak - Allow to filter bookings by user even if the user is not in the selectbox * Tweak - Limit the amount of emails that can be sent to a single user per minute (20), hour (200) and day (2000) (spam protection) * Tweak - Backend javascript and css files are loaded only on Booking Activities screens to avoid conflicts * Fix - Notification were sometimes sent twice when used with WooCommerce in asynchronous mode * Fix - Overlapping of the event list in emails * Fix - WC order became "refunded" when a reservation was refunded, even if another reservation was still "cancelled" * Fix - Cancellation delays were not working properly * Fix - The "user_id" parameter of the bookingactivities_list shortcode didn't work while explicitly set to "current" * Fix - The "status" and "order_by" parameters of the bookingactivities_list shortcode didn't work * Fix - Booking row was not properly updated after cancelling a booking (group) * Fix - Can't refund booking groups paid with WooCommerce * Fix - Events not loaded when a WC product variation was loaded by default, and events were loaded "After page load" * Fix - PHP notice when trying to get translated messages * Fix - PHP notice when displaying WC products having a deprecated config available * Fix - PHP warning when a form with no "User Data (Login / Registration)" field is submitted * Fix - PHP error on booking form list if the booking form author account has been deleted * Fix - The bottom bulk actions selectbox didn't work on Bookings page * Fix - Wrong quantity displayed in reschedule dialog * Fix - The "Cancel" custom label was not applied to the right buttons * Fix - Repeated events on exceptions dates were exported * Fix - The time zone of the exported events was incorrect (UTC instead of yours) * Dev - Prefill a booking form thanks to URL parameters * Dev - Use all booking list filters via URL * Dev - Filter booking list by multiple form id, user id, group category id, group of events id * Lib - Update FullCalendar to 3.10.0 and Moment JS to 2.23.0
4 years ago
esc_html__( 'From name', BOOKACTI_PLUGIN_NAME ),
'bookacti_settings_field_notifications_from_name_callback',
'bookacti_notifications_settings',
'bookacti_settings_section_notifications_email'
);
add_settings_field(
'notifications_from_email',
** Booking Activities 1.7.0 ** * Feature - Add a WC product to cart when you click on an event or when you submit a booking form * Feature - Redirect to a URL when you click on an event or when you submit a booking form * Feature - Redirect to a WC product page when you click on an event or when you submit a booking form * Feature - Backup, archive and restore old bookings and events * Feature - Support WP tools for exporting and erasing personal data * Feature - Edit users phone number on their profile page * Tweak - Allow HTML in events and groups of events title * Tweak - Notifications are send to the user when he cancels or reschedule a booking from the frontend * Tweak - Order calendars, activities, group categories and groups of events by title * Tweak - List of activities in calendar editor can now be scrolled * Tweak - Add the {booking_list_raw} notification tag * Tweak - Support more parameters in bookingactivities_list shortcode (all booking filters) * Tweak - Allow to filter bookings by user even if the user is not in the selectbox * Tweak - Limit the amount of emails that can be sent to a single user per minute (20), hour (200) and day (2000) (spam protection) * Tweak - Backend javascript and css files are loaded only on Booking Activities screens to avoid conflicts * Fix - Notification were sometimes sent twice when used with WooCommerce in asynchronous mode * Fix - Overlapping of the event list in emails * Fix - WC order became "refunded" when a reservation was refunded, even if another reservation was still "cancelled" * Fix - Cancellation delays were not working properly * Fix - The "user_id" parameter of the bookingactivities_list shortcode didn't work while explicitly set to "current" * Fix - The "status" and "order_by" parameters of the bookingactivities_list shortcode didn't work * Fix - Booking row was not properly updated after cancelling a booking (group) * Fix - Can't refund booking groups paid with WooCommerce * Fix - Events not loaded when a WC product variation was loaded by default, and events were loaded "After page load" * Fix - PHP notice when trying to get translated messages * Fix - PHP notice when displaying WC products having a deprecated config available * Fix - PHP warning when a form with no "User Data (Login / Registration)" field is submitted * Fix - PHP error on booking form list if the booking form author account has been deleted * Fix - The bottom bulk actions selectbox didn't work on Bookings page * Fix - Wrong quantity displayed in reschedule dialog * Fix - The "Cancel" custom label was not applied to the right buttons * Fix - Repeated events on exceptions dates were exported * Fix - The time zone of the exported events was incorrect (UTC instead of yours) * Dev - Prefill a booking form thanks to URL parameters * Dev - Use all booking list filters via URL * Dev - Filter booking list by multiple form id, user id, group category id, group of events id * Lib - Update FullCalendar to 3.10.0 and Moment JS to 2.23.0
4 years ago
esc_html__( 'From email', BOOKACTI_PLUGIN_NAME ),
'bookacti_settings_field_notifications_from_email_callback',
'bookacti_notifications_settings',
'bookacti_settings_section_notifications_email'
);
/* Messages settings Section */
add_settings_section(
'bookacti_settings_section_messages',
** Booking Activities 1.7.0 ** * Feature - Add a WC product to cart when you click on an event or when you submit a booking form * Feature - Redirect to a URL when you click on an event or when you submit a booking form * Feature - Redirect to a WC product page when you click on an event or when you submit a booking form * Feature - Backup, archive and restore old bookings and events * Feature - Support WP tools for exporting and erasing personal data * Feature - Edit users phone number on their profile page * Tweak - Allow HTML in events and groups of events title * Tweak - Notifications are send to the user when he cancels or reschedule a booking from the frontend * Tweak - Order calendars, activities, group categories and groups of events by title * Tweak - List of activities in calendar editor can now be scrolled * Tweak - Add the {booking_list_raw} notification tag * Tweak - Support more parameters in bookingactivities_list shortcode (all booking filters) * Tweak - Allow to filter bookings by user even if the user is not in the selectbox * Tweak - Limit the amount of emails that can be sent to a single user per minute (20), hour (200) and day (2000) (spam protection) * Tweak - Backend javascript and css files are loaded only on Booking Activities screens to avoid conflicts * Fix - Notification were sometimes sent twice when used with WooCommerce in asynchronous mode * Fix - Overlapping of the event list in emails * Fix - WC order became "refunded" when a reservation was refunded, even if another reservation was still "cancelled" * Fix - Cancellation delays were not working properly * Fix - The "user_id" parameter of the bookingactivities_list shortcode didn't work while explicitly set to "current" * Fix - The "status" and "order_by" parameters of the bookingactivities_list shortcode didn't work * Fix - Booking row was not properly updated after cancelling a booking (group) * Fix - Can't refund booking groups paid with WooCommerce * Fix - Events not loaded when a WC product variation was loaded by default, and events were loaded "After page load" * Fix - PHP notice when trying to get translated messages * Fix - PHP notice when displaying WC products having a deprecated config available * Fix - PHP warning when a form with no "User Data (Login / Registration)" field is submitted * Fix - PHP error on booking form list if the booking form author account has been deleted * Fix - The bottom bulk actions selectbox didn't work on Bookings page * Fix - Wrong quantity displayed in reschedule dialog * Fix - The "Cancel" custom label was not applied to the right buttons * Fix - Repeated events on exceptions dates were exported * Fix - The time zone of the exported events was incorrect (UTC instead of yours) * Dev - Prefill a booking form thanks to URL parameters * Dev - Use all booking list filters via URL * Dev - Filter booking list by multiple form id, user id, group category id, group of events id * Lib - Update FullCalendar to 3.10.0 and Moment JS to 2.23.0
4 years ago
esc_html__( 'Messages', BOOKACTI_PLUGIN_NAME ),
'bookacti_settings_section_messages_callback',
'bookacti_messages_settings'
6 years ago
);
** Booking Activities 1.7.0 ** * Feature - Add a WC product to cart when you click on an event or when you submit a booking form * Feature - Redirect to a URL when you click on an event or when you submit a booking form * Feature - Redirect to a WC product page when you click on an event or when you submit a booking form * Feature - Backup, archive and restore old bookings and events * Feature - Support WP tools for exporting and erasing personal data * Feature - Edit users phone number on their profile page * Tweak - Allow HTML in events and groups of events title * Tweak - Notifications are send to the user when he cancels or reschedule a booking from the frontend * Tweak - Order calendars, activities, group categories and groups of events by title * Tweak - List of activities in calendar editor can now be scrolled * Tweak - Add the {booking_list_raw} notification tag * Tweak - Support more parameters in bookingactivities_list shortcode (all booking filters) * Tweak - Allow to filter bookings by user even if the user is not in the selectbox * Tweak - Limit the amount of emails that can be sent to a single user per minute (20), hour (200) and day (2000) (spam protection) * Tweak - Backend javascript and css files are loaded only on Booking Activities screens to avoid conflicts * Fix - Notification were sometimes sent twice when used with WooCommerce in asynchronous mode * Fix - Overlapping of the event list in emails * Fix - WC order became "refunded" when a reservation was refunded, even if another reservation was still "cancelled" * Fix - Cancellation delays were not working properly * Fix - The "user_id" parameter of the bookingactivities_list shortcode didn't work while explicitly set to "current" * Fix - The "status" and "order_by" parameters of the bookingactivities_list shortcode didn't work * Fix - Booking row was not properly updated after cancelling a booking (group) * Fix - Can't refund booking groups paid with WooCommerce * Fix - Events not loaded when a WC product variation was loaded by default, and events were loaded "After page load" * Fix - PHP notice when trying to get translated messages * Fix - PHP notice when displaying WC products having a deprecated config available * Fix - PHP warning when a form with no "User Data (Login / Registration)" field is submitted * Fix - PHP error on booking form list if the booking form author account has been deleted * Fix - The bottom bulk actions selectbox didn't work on Bookings page * Fix - Wrong quantity displayed in reschedule dialog * Fix - The "Cancel" custom label was not applied to the right buttons * Fix - Repeated events on exceptions dates were exported * Fix - The time zone of the exported events was incorrect (UTC instead of yours) * Dev - Prefill a booking form thanks to URL parameters * Dev - Use all booking list filters via URL * Dev - Filter booking list by multiple form id, user id, group category id, group of events id * Lib - Update FullCalendar to 3.10.0 and Moment JS to 2.23.0
4 years ago
/* Messages settings Section */
add_settings_section(
'bookacti_settings_section_system',
esc_html__( 'System', BOOKACTI_PLUGIN_NAME ),
'bookacti_settings_section_system_callback',
'bookacti_system_settings'
);
6 years ago
do_action( 'bookacti_add_settings' );
register_setting( 'bookacti_general_settings', 'bookacti_general_settings' );
register_setting( 'bookacti_cancellation_settings', 'bookacti_cancellation_settings' );
register_setting( 'bookacti_notifications_settings', 'bookacti_notifications_settings' );
register_setting( 'bookacti_messages_settings', 'bookacti_messages_settings' );
** Booking Activities 1.7.0 ** * Feature - Add a WC product to cart when you click on an event or when you submit a booking form * Feature - Redirect to a URL when you click on an event or when you submit a booking form * Feature - Redirect to a WC product page when you click on an event or when you submit a booking form * Feature - Backup, archive and restore old bookings and events * Feature - Support WP tools for exporting and erasing personal data * Feature - Edit users phone number on their profile page * Tweak - Allow HTML in events and groups of events title * Tweak - Notifications are send to the user when he cancels or reschedule a booking from the frontend * Tweak - Order calendars, activities, group categories and groups of events by title * Tweak - List of activities in calendar editor can now be scrolled * Tweak - Add the {booking_list_raw} notification tag * Tweak - Support more parameters in bookingactivities_list shortcode (all booking filters) * Tweak - Allow to filter bookings by user even if the user is not in the selectbox * Tweak - Limit the amount of emails that can be sent to a single user per minute (20), hour (200) and day (2000) (spam protection) * Tweak - Backend javascript and css files are loaded only on Booking Activities screens to avoid conflicts * Fix - Notification were sometimes sent twice when used with WooCommerce in asynchronous mode * Fix - Overlapping of the event list in emails * Fix - WC order became "refunded" when a reservation was refunded, even if another reservation was still "cancelled" * Fix - Cancellation delays were not working properly * Fix - The "user_id" parameter of the bookingactivities_list shortcode didn't work while explicitly set to "current" * Fix - The "status" and "order_by" parameters of the bookingactivities_list shortcode didn't work * Fix - Booking row was not properly updated after cancelling a booking (group) * Fix - Can't refund booking groups paid with WooCommerce * Fix - Events not loaded when a WC product variation was loaded by default, and events were loaded "After page load" * Fix - PHP notice when trying to get translated messages * Fix - PHP notice when displaying WC products having a deprecated config available * Fix - PHP warning when a form with no "User Data (Login / Registration)" field is submitted * Fix - PHP error on booking form list if the booking form author account has been deleted * Fix - The bottom bulk actions selectbox didn't work on Bookings page * Fix - Wrong quantity displayed in reschedule dialog * Fix - The "Cancel" custom label was not applied to the right buttons * Fix - Repeated events on exceptions dates were exported * Fix - The time zone of the exported events was incorrect (UTC instead of yours) * Dev - Prefill a booking form thanks to URL parameters * Dev - Use all booking list filters via URL * Dev - Filter booking list by multiple form id, user id, group category id, group of events id * Lib - Update FullCalendar to 3.10.0 and Moment JS to 2.23.0
4 years ago
register_setting( 'bookacti_system_settings', 'bookacti_system_settings' );
6 years ago
}
add_action( 'admin_init', 'bookacti_init_settings' );
6 years ago
** Booking Activities 1.3.0 ** * Tweak - Bookings page has been redesigned * Feature - Filter your booking list by calendars, activities, status, date, and customers (and also by events like before) * Feature - The booking list is now paginated and columns can be hidden (in screen options) and sorted * Feature - Bookings have a new "Payment status" property, with 3 possible values: No payment required, owed, paid. * Feature - Display your customers' bookings calendar with the shortcode [bookingactivities_calendar bookings_only="true" user_id="current" past_events="true"] * Feature - Customize frontend dialogs titles and buttons labels (and content for some of them) * Tweak - In-cart bookings are no longer active when the cart expiration is deactivated. The availability check is made on checkout. * Tweak - Date format can be set more specifically, and the separator between dates can be changed * Tweak - ON/OFF button: clearly display "ON" and "OFF" for a better understanding * Tweak - Email refund option is no longer offered to administrators * Fix - Activities with a title containing special characters triggered a fatal error when an event was dropped * Fix - Picking a group of events not already loaded triggered a fatal error (events of the group still need to be rendered) * Fix - Error notice about wpdb::prepare since WP 4.9+ (can cause fatal error if WP_DEBUG was set to true) * Fix - Show / Hide activities in calendar editor triggers fatal error * Fix - Shop Managers (WooCommerce role) were not able to edit activities * Fix - WooCommerce [product_page] shortcode is now working with variable product marked as activity * Fix - Bookings in a WooCommerce order containing a non-activity products were still "Pending" after payment is received * **Breaking change** - Date format needs to be set again in Booking Activities settings, in "Messages" tab
5 years ago
// SCREEN OPTIONS
/**
* Add screen options
*
* @since 1.3.0
** Booking Activities 1.5.0 ** * Feature - Customizable booking forms ! * Feature - You can now delete your bookings and your booking groups from the booking list * Feature - You can display past events on frontend, they can be bookable or not * Feature - Responsive default calendar view: display day view for small calendars instead of week view (set the threshold in settings) * Tweak - Add a "Product" column in booking list (if the reservation was made with WooCommerce) * Tweak - Add a dismissible admin notice to inform that WooCommerce "guest checkout" option isn't supported * Tweak - Use core dashicons instead of additional images in backend * Tweak - When to load the events? setting now also apply to product variation if a default variation is set * Fix - Booking groups sometimes not appearing in booking list * Fix - Show / Hide columns according to page options in booking list after a row is refreshed * Fix - Booking list pagination didn't allow to jump to a specific page * Fix - Couldn't drag and drop activities in calendar editor with touch devices * Fix - PHP warning during AJAX request which needs to create an instance of the Booking List * Fix - PHP warning when deleting a non-booking order item in the admin panel * Fix - PHP warning sometimes occurs before sending a notification * Fix - If the snap frequency was 00:00, it wasn't possible to drop an event on the calendar editor * Fix - Woocommerce 2.6 backward compatibility various checkout issues * **Breaking change** - Refund actions in Booking Activities settings must be set again
5 years ago
* @version 1.5.0
** Booking Activities 1.3.0 ** * Tweak - Bookings page has been redesigned * Feature - Filter your booking list by calendars, activities, status, date, and customers (and also by events like before) * Feature - The booking list is now paginated and columns can be hidden (in screen options) and sorted * Feature - Bookings have a new "Payment status" property, with 3 possible values: No payment required, owed, paid. * Feature - Display your customers' bookings calendar with the shortcode [bookingactivities_calendar bookings_only="true" user_id="current" past_events="true"] * Feature - Customize frontend dialogs titles and buttons labels (and content for some of them) * Tweak - In-cart bookings are no longer active when the cart expiration is deactivated. The availability check is made on checkout. * Tweak - Date format can be set more specifically, and the separator between dates can be changed * Tweak - ON/OFF button: clearly display "ON" and "OFF" for a better understanding * Tweak - Email refund option is no longer offered to administrators * Fix - Activities with a title containing special characters triggered a fatal error when an event was dropped * Fix - Picking a group of events not already loaded triggered a fatal error (events of the group still need to be rendered) * Fix - Error notice about wpdb::prepare since WP 4.9+ (can cause fatal error if WP_DEBUG was set to true) * Fix - Show / Hide activities in calendar editor triggers fatal error * Fix - Shop Managers (WooCommerce role) were not able to edit activities * Fix - WooCommerce [product_page] shortcode is now working with variable product marked as activity * Fix - Bookings in a WooCommerce order containing a non-activity products were still "Pending" after payment is received * **Breaking change** - Date format needs to be set again in Booking Activities settings, in "Messages" tab
5 years ago
*/
function bookacti_add_screen_options() {
add_action( 'load-booking-activities_page_bookacti_bookings', 'bookacti_display_bookings_screen_options' );
** Booking Activities 1.5.0 ** * Feature - Customizable booking forms ! * Feature - You can now delete your bookings and your booking groups from the booking list * Feature - You can display past events on frontend, they can be bookable or not * Feature - Responsive default calendar view: display day view for small calendars instead of week view (set the threshold in settings) * Tweak - Add a "Product" column in booking list (if the reservation was made with WooCommerce) * Tweak - Add a dismissible admin notice to inform that WooCommerce "guest checkout" option isn't supported * Tweak - Use core dashicons instead of additional images in backend * Tweak - When to load the events? setting now also apply to product variation if a default variation is set * Fix - Booking groups sometimes not appearing in booking list * Fix - Show / Hide columns according to page options in booking list after a row is refreshed * Fix - Booking list pagination didn't allow to jump to a specific page * Fix - Couldn't drag and drop activities in calendar editor with touch devices * Fix - PHP warning during AJAX request which needs to create an instance of the Booking List * Fix - PHP warning when deleting a non-booking order item in the admin panel * Fix - PHP warning sometimes occurs before sending a notification * Fix - If the snap frequency was 00:00, it wasn't possible to drop an event on the calendar editor * Fix - Woocommerce 2.6 backward compatibility various checkout issues * **Breaking change** - Refund actions in Booking Activities settings must be set again
5 years ago
add_action( 'load-booking-activities_page_bookacti_forms', 'bookacti_display_forms_screen_options' );
** Booking Activities 1.3.0 ** * Tweak - Bookings page has been redesigned * Feature - Filter your booking list by calendars, activities, status, date, and customers (and also by events like before) * Feature - The booking list is now paginated and columns can be hidden (in screen options) and sorted * Feature - Bookings have a new "Payment status" property, with 3 possible values: No payment required, owed, paid. * Feature - Display your customers' bookings calendar with the shortcode [bookingactivities_calendar bookings_only="true" user_id="current" past_events="true"] * Feature - Customize frontend dialogs titles and buttons labels (and content for some of them) * Tweak - In-cart bookings are no longer active when the cart expiration is deactivated. The availability check is made on checkout. * Tweak - Date format can be set more specifically, and the separator between dates can be changed * Tweak - ON/OFF button: clearly display "ON" and "OFF" for a better understanding * Tweak - Email refund option is no longer offered to administrators * Fix - Activities with a title containing special characters triggered a fatal error when an event was dropped * Fix - Picking a group of events not already loaded triggered a fatal error (events of the group still need to be rendered) * Fix - Error notice about wpdb::prepare since WP 4.9+ (can cause fatal error if WP_DEBUG was set to true) * Fix - Show / Hide activities in calendar editor triggers fatal error * Fix - Shop Managers (WooCommerce role) were not able to edit activities * Fix - WooCommerce [product_page] shortcode is now working with variable product marked as activity * Fix - Bookings in a WooCommerce order containing a non-activity products were still "Pending" after payment is received * **Breaking change** - Date format needs to be set again in Booking Activities settings, in "Messages" tab
5 years ago
}
add_action( 'admin_menu', 'bookacti_add_screen_options', 20 );
** Booking Activities 1.5.0 ** * Feature - Customizable booking forms ! * Feature - You can now delete your bookings and your booking groups from the booking list * Feature - You can display past events on frontend, they can be bookable or not * Feature - Responsive default calendar view: display day view for small calendars instead of week view (set the threshold in settings) * Tweak - Add a "Product" column in booking list (if the reservation was made with WooCommerce) * Tweak - Add a dismissible admin notice to inform that WooCommerce "guest checkout" option isn't supported * Tweak - Use core dashicons instead of additional images in backend * Tweak - When to load the events? setting now also apply to product variation if a default variation is set * Fix - Booking groups sometimes not appearing in booking list * Fix - Show / Hide columns according to page options in booking list after a row is refreshed * Fix - Booking list pagination didn't allow to jump to a specific page * Fix - Couldn't drag and drop activities in calendar editor with touch devices * Fix - PHP warning during AJAX request which needs to create an instance of the Booking List * Fix - PHP warning when deleting a non-booking order item in the admin panel * Fix - PHP warning sometimes occurs before sending a notification * Fix - If the snap frequency was 00:00, it wasn't possible to drop an event on the calendar editor * Fix - Woocommerce 2.6 backward compatibility various checkout issues * **Breaking change** - Refund actions in Booking Activities settings must be set again
5 years ago
** Booking Activities 1.3.0 ** * Tweak - Bookings page has been redesigned * Feature - Filter your booking list by calendars, activities, status, date, and customers (and also by events like before) * Feature - The booking list is now paginated and columns can be hidden (in screen options) and sorted * Feature - Bookings have a new "Payment status" property, with 3 possible values: No payment required, owed, paid. * Feature - Display your customers' bookings calendar with the shortcode [bookingactivities_calendar bookings_only="true" user_id="current" past_events="true"] * Feature - Customize frontend dialogs titles and buttons labels (and content for some of them) * Tweak - In-cart bookings are no longer active when the cart expiration is deactivated. The availability check is made on checkout. * Tweak - Date format can be set more specifically, and the separator between dates can be changed * Tweak - ON/OFF button: clearly display "ON" and "OFF" for a better understanding * Tweak - Email refund option is no longer offered to administrators * Fix - Activities with a title containing special characters triggered a fatal error when an event was dropped * Fix - Picking a group of events not already loaded triggered a fatal error (events of the group still need to be rendered) * Fix - Error notice about wpdb::prepare since WP 4.9+ (can cause fatal error if WP_DEBUG was set to true) * Fix - Show / Hide activities in calendar editor triggers fatal error * Fix - Shop Managers (WooCommerce role) were not able to edit activities * Fix - WooCommerce [product_page] shortcode is now working with variable product marked as activity * Fix - Bookings in a WooCommerce order containing a non-activity products were still "Pending" after payment is received * **Breaking change** - Date format needs to be set again in Booking Activities settings, in "Messages" tab
5 years ago
/**
* Add booking page columns screen options
** Booking Activities 1.5.0 ** * Feature - Customizable booking forms ! * Feature - You can now delete your bookings and your booking groups from the booking list * Feature - You can display past events on frontend, they can be bookable or not * Feature - Responsive default calendar view: display day view for small calendars instead of week view (set the threshold in settings) * Tweak - Add a "Product" column in booking list (if the reservation was made with WooCommerce) * Tweak - Add a dismissible admin notice to inform that WooCommerce "guest checkout" option isn't supported * Tweak - Use core dashicons instead of additional images in backend * Tweak - When to load the events? setting now also apply to product variation if a default variation is set * Fix - Booking groups sometimes not appearing in booking list * Fix - Show / Hide columns according to page options in booking list after a row is refreshed * Fix - Booking list pagination didn't allow to jump to a specific page * Fix - Couldn't drag and drop activities in calendar editor with touch devices * Fix - PHP warning during AJAX request which needs to create an instance of the Booking List * Fix - PHP warning when deleting a non-booking order item in the admin panel * Fix - PHP warning sometimes occurs before sending a notification * Fix - If the snap frequency was 00:00, it wasn't possible to drop an event on the calendar editor * Fix - Woocommerce 2.6 backward compatibility various checkout issues * **Breaking change** - Refund actions in Booking Activities settings must be set again
5 years ago
* @since 1.3.0
** Booking Activities 1.6.0 ** * Feature - Book without account * Feature - WooCommerce guest checkout supported * Feature - Export your events to ical (ics) files * Feature - Synchronize your events with third-party apps (e.g.: Google Agenda) (one way: export only) * Feature - Add {user_ical_url} notification tag to let your customers export and synchronize their bookings on their calendar app * Feature - Export your bookings to CSV files * Feature - Synchronize your booking list to third-party apps (e.g.: Google Sheet) (one way: export only) * Feature - Frontend booking lists are paginated * Feature - You can use any booking filters as parameters in the bookingactivities_list shortcode * Feature - Add a "Delivered" booking status, in order to flag when the customer has attended the booking * Feature - Add {price} notification tag to display the WC order item price bound to the booking * Optimization - Booking lists are displayed faster (backend and frontend) * Tweak - Events dropped on the month view now start at the time set in the "Day begin" option * Tweak - Display shortcuts in calendar editor * Tweak - Change the "Refunded" label to "Refunded with coupon ..." if it was refunded with a coupon * Tweak - Add an option to delete all Booking Activities data on uninstall, in order to avoid accidental data deletion * Tweak - Set default snap frequency to 5 minutes instead of 30 * Tweak - The calendar appearence on the backend booking list no longer changes according to the selected calendars * Fix - Booking form not appearing on WC variable product pages if the default variation was non-activity * Fix - Possible PHP error while checking templates, activities and forms permission if they are not set
4 years ago
* @version 1.6.0
** Booking Activities 1.3.0 ** * Tweak - Bookings page has been redesigned * Feature - Filter your booking list by calendars, activities, status, date, and customers (and also by events like before) * Feature - The booking list is now paginated and columns can be hidden (in screen options) and sorted * Feature - Bookings have a new "Payment status" property, with 3 possible values: No payment required, owed, paid. * Feature - Display your customers' bookings calendar with the shortcode [bookingactivities_calendar bookings_only="true" user_id="current" past_events="true"] * Feature - Customize frontend dialogs titles and buttons labels (and content for some of them) * Tweak - In-cart bookings are no longer active when the cart expiration is deactivated. The availability check is made on checkout. * Tweak - Date format can be set more specifically, and the separator between dates can be changed * Tweak - ON/OFF button: clearly display "ON" and "OFF" for a better understanding * Tweak - Email refund option is no longer offered to administrators * Fix - Activities with a title containing special characters triggered a fatal error when an event was dropped * Fix - Picking a group of events not already loaded triggered a fatal error (events of the group still need to be rendered) * Fix - Error notice about wpdb::prepare since WP 4.9+ (can cause fatal error if WP_DEBUG was set to true) * Fix - Show / Hide activities in calendar editor triggers fatal error * Fix - Shop Managers (WooCommerce role) were not able to edit activities * Fix - WooCommerce [product_page] shortcode is now working with variable product marked as activity * Fix - Bookings in a WooCommerce order containing a non-activity products were still "Pending" after payment is received * **Breaking change** - Date format needs to be set again in Booking Activities settings, in "Messages" tab
5 years ago
*/
function bookacti_add_booking_page_screen_option() {
** Booking Activities 1.6.0 ** * Feature - Book without account * Feature - WooCommerce guest checkout supported * Feature - Export your events to ical (ics) files * Feature - Synchronize your events with third-party apps (e.g.: Google Agenda) (one way: export only) * Feature - Add {user_ical_url} notification tag to let your customers export and synchronize their bookings on their calendar app * Feature - Export your bookings to CSV files * Feature - Synchronize your booking list to third-party apps (e.g.: Google Sheet) (one way: export only) * Feature - Frontend booking lists are paginated * Feature - You can use any booking filters as parameters in the bookingactivities_list shortcode * Feature - Add a "Delivered" booking status, in order to flag when the customer has attended the booking * Feature - Add {price} notification tag to display the WC order item price bound to the booking * Optimization - Booking lists are displayed faster (backend and frontend) * Tweak - Events dropped on the month view now start at the time set in the "Day begin" option * Tweak - Display shortcuts in calendar editor * Tweak - Change the "Refunded" label to "Refunded with coupon ..." if it was refunded with a coupon * Tweak - Add an option to delete all Booking Activities data on uninstall, in order to avoid accidental data deletion * Tweak - Set default snap frequency to 5 minutes instead of 30 * Tweak - The calendar appearence on the backend booking list no longer changes according to the selected calendars * Fix - Booking form not appearing on WC variable product pages if the default variation was non-activity * Fix - Possible PHP error while checking templates, activities and forms permission if they are not set
4 years ago
$booking_list = new Bookings_List_Table();
$booking_list->process_bulk_action();
** Booking Activities 1.3.0 ** * Tweak - Bookings page has been redesigned * Feature - Filter your booking list by calendars, activities, status, date, and customers (and also by events like before) * Feature - The booking list is now paginated and columns can be hidden (in screen options) and sorted * Feature - Bookings have a new "Payment status" property, with 3 possible values: No payment required, owed, paid. * Feature - Display your customers' bookings calendar with the shortcode [bookingactivities_calendar bookings_only="true" user_id="current" past_events="true"] * Feature - Customize frontend dialogs titles and buttons labels (and content for some of them) * Tweak - In-cart bookings are no longer active when the cart expiration is deactivated. The availability check is made on checkout. * Tweak - Date format can be set more specifically, and the separator between dates can be changed * Tweak - ON/OFF button: clearly display "ON" and "OFF" for a better understanding * Tweak - Email refund option is no longer offered to administrators * Fix - Activities with a title containing special characters triggered a fatal error when an event was dropped * Fix - Picking a group of events not already loaded triggered a fatal error (events of the group still need to be rendered) * Fix - Error notice about wpdb::prepare since WP 4.9+ (can cause fatal error if WP_DEBUG was set to true) * Fix - Show / Hide activities in calendar editor triggers fatal error * Fix - Shop Managers (WooCommerce role) were not able to edit activities * Fix - WooCommerce [product_page] shortcode is now working with variable product marked as activity * Fix - Bookings in a WooCommerce order containing a non-activity products were still "Pending" after payment is received * **Breaking change** - Date format needs to be set again in Booking Activities settings, in "Messages" tab
5 years ago
}
add_action( 'admin_head-booking-activities_page_bookacti_bookings', 'bookacti_add_booking_page_screen_option' );
** Booking Activities 1.5.0 ** * Feature - Customizable booking forms ! * Feature - You can now delete your bookings and your booking groups from the booking list * Feature - You can display past events on frontend, they can be bookable or not * Feature - Responsive default calendar view: display day view for small calendars instead of week view (set the threshold in settings) * Tweak - Add a "Product" column in booking list (if the reservation was made with WooCommerce) * Tweak - Add a dismissible admin notice to inform that WooCommerce "guest checkout" option isn't supported * Tweak - Use core dashicons instead of additional images in backend * Tweak - When to load the events? setting now also apply to product variation if a default variation is set * Fix - Booking groups sometimes not appearing in booking list * Fix - Show / Hide columns according to page options in booking list after a row is refreshed * Fix - Booking list pagination didn't allow to jump to a specific page * Fix - Couldn't drag and drop activities in calendar editor with touch devices * Fix - PHP warning during AJAX request which needs to create an instance of the Booking List * Fix - PHP warning when deleting a non-booking order item in the admin panel * Fix - PHP warning sometimes occurs before sending a notification * Fix - If the snap frequency was 00:00, it wasn't possible to drop an event on the calendar editor * Fix - Woocommerce 2.6 backward compatibility various checkout issues * **Breaking change** - Refund actions in Booking Activities settings must be set again
5 years ago
/**
* Add form page columns screen options
* @since 1.5.0
*/
function bookacti_add_form_page_screen_option() {
if( empty( $_REQUEST[ 'action' ] ) || ! in_array( $_REQUEST[ 'action' ], array( 'edit', 'new' ), true ) ) {
new Forms_List_Table();
}
}
add_action( 'admin_head-booking-activities_page_bookacti_forms', 'bookacti_add_form_page_screen_option' );
** Booking Activities 1.3.0 ** * Tweak - Bookings page has been redesigned * Feature - Filter your booking list by calendars, activities, status, date, and customers (and also by events like before) * Feature - The booking list is now paginated and columns can be hidden (in screen options) and sorted * Feature - Bookings have a new "Payment status" property, with 3 possible values: No payment required, owed, paid. * Feature - Display your customers' bookings calendar with the shortcode [bookingactivities_calendar bookings_only="true" user_id="current" past_events="true"] * Feature - Customize frontend dialogs titles and buttons labels (and content for some of them) * Tweak - In-cart bookings are no longer active when the cart expiration is deactivated. The availability check is made on checkout. * Tweak - Date format can be set more specifically, and the separator between dates can be changed * Tweak - ON/OFF button: clearly display "ON" and "OFF" for a better understanding * Tweak - Email refund option is no longer offered to administrators * Fix - Activities with a title containing special characters triggered a fatal error when an event was dropped * Fix - Picking a group of events not already loaded triggered a fatal error (events of the group still need to be rendered) * Fix - Error notice about wpdb::prepare since WP 4.9+ (can cause fatal error if WP_DEBUG was set to true) * Fix - Show / Hide activities in calendar editor triggers fatal error * Fix - Shop Managers (WooCommerce role) were not able to edit activities * Fix - WooCommerce [product_page] shortcode is now working with variable product marked as activity * Fix - Bookings in a WooCommerce order containing a non-activity products were still "Pending" after payment is received * **Breaking change** - Date format needs to be set again in Booking Activities settings, in "Messages" tab
5 years ago
/**
* Save screen options
** Booking Activities 1.5.0 ** * Feature - Customizable booking forms ! * Feature - You can now delete your bookings and your booking groups from the booking list * Feature - You can display past events on frontend, they can be bookable or not * Feature - Responsive default calendar view: display day view for small calendars instead of week view (set the threshold in settings) * Tweak - Add a "Product" column in booking list (if the reservation was made with WooCommerce) * Tweak - Add a dismissible admin notice to inform that WooCommerce "guest checkout" option isn't supported * Tweak - Use core dashicons instead of additional images in backend * Tweak - When to load the events? setting now also apply to product variation if a default variation is set * Fix - Booking groups sometimes not appearing in booking list * Fix - Show / Hide columns according to page options in booking list after a row is refreshed * Fix - Booking list pagination didn't allow to jump to a specific page * Fix - Couldn't drag and drop activities in calendar editor with touch devices * Fix - PHP warning during AJAX request which needs to create an instance of the Booking List * Fix - PHP warning when deleting a non-booking order item in the admin panel * Fix - PHP warning sometimes occurs before sending a notification * Fix - If the snap frequency was 00:00, it wasn't possible to drop an event on the calendar editor * Fix - Woocommerce 2.6 backward compatibility various checkout issues * **Breaking change** - Refund actions in Booking Activities settings must be set again
5 years ago
* @since 1.5.0 (was bookacti_save_bookings_screen_options)
** Booking Activities 1.3.0 ** * Tweak - Bookings page has been redesigned * Feature - Filter your booking list by calendars, activities, status, date, and customers (and also by events like before) * Feature - The booking list is now paginated and columns can be hidden (in screen options) and sorted * Feature - Bookings have a new "Payment status" property, with 3 possible values: No payment required, owed, paid. * Feature - Display your customers' bookings calendar with the shortcode [bookingactivities_calendar bookings_only="true" user_id="current" past_events="true"] * Feature - Customize frontend dialogs titles and buttons labels (and content for some of them) * Tweak - In-cart bookings are no longer active when the cart expiration is deactivated. The availability check is made on checkout. * Tweak - Date format can be set more specifically, and the separator between dates can be changed * Tweak - ON/OFF button: clearly display "ON" and "OFF" for a better understanding * Tweak - Email refund option is no longer offered to administrators * Fix - Activities with a title containing special characters triggered a fatal error when an event was dropped * Fix - Picking a group of events not already loaded triggered a fatal error (events of the group still need to be rendered) * Fix - Error notice about wpdb::prepare since WP 4.9+ (can cause fatal error if WP_DEBUG was set to true) * Fix - Show / Hide activities in calendar editor triggers fatal error * Fix - Shop Managers (WooCommerce role) were not able to edit activities * Fix - WooCommerce [product_page] shortcode is now working with variable product marked as activity * Fix - Bookings in a WooCommerce order containing a non-activity products were still "Pending" after payment is received * **Breaking change** - Date format needs to be set again in Booking Activities settings, in "Messages" tab
5 years ago
*/
** Booking Activities 1.5.0 ** * Feature - Customizable booking forms ! * Feature - You can now delete your bookings and your booking groups from the booking list * Feature - You can display past events on frontend, they can be bookable or not * Feature - Responsive default calendar view: display day view for small calendars instead of week view (set the threshold in settings) * Tweak - Add a "Product" column in booking list (if the reservation was made with WooCommerce) * Tweak - Add a dismissible admin notice to inform that WooCommerce "guest checkout" option isn't supported * Tweak - Use core dashicons instead of additional images in backend * Tweak - When to load the events? setting now also apply to product variation if a default variation is set * Fix - Booking groups sometimes not appearing in booking list * Fix - Show / Hide columns according to page options in booking list after a row is refreshed * Fix - Booking list pagination didn't allow to jump to a specific page * Fix - Couldn't drag and drop activities in calendar editor with touch devices * Fix - PHP warning during AJAX request which needs to create an instance of the Booking List * Fix - PHP warning when deleting a non-booking order item in the admin panel * Fix - PHP warning sometimes occurs before sending a notification * Fix - If the snap frequency was 00:00, it wasn't possible to drop an event on the calendar editor * Fix - Woocommerce 2.6 backward compatibility various checkout issues * **Breaking change** - Refund actions in Booking Activities settings must be set again
5 years ago
function bookacti_save_screen_options( $status, $option, $value ) {
if( 'bookacti_bookings_per_page' == $option || 'bookacti_forms_per_page' == $option ) {
** Booking Activities 1.3.0 ** * Tweak - Bookings page has been redesigned * Feature - Filter your booking list by calendars, activities, status, date, and customers (and also by events like before) * Feature - The booking list is now paginated and columns can be hidden (in screen options) and sorted * Feature - Bookings have a new "Payment status" property, with 3 possible values: No payment required, owed, paid. * Feature - Display your customers' bookings calendar with the shortcode [bookingactivities_calendar bookings_only="true" user_id="current" past_events="true"] * Feature - Customize frontend dialogs titles and buttons labels (and content for some of them) * Tweak - In-cart bookings are no longer active when the cart expiration is deactivated. The availability check is made on checkout. * Tweak - Date format can be set more specifically, and the separator between dates can be changed * Tweak - ON/OFF button: clearly display "ON" and "OFF" for a better understanding * Tweak - Email refund option is no longer offered to administrators * Fix - Activities with a title containing special characters triggered a fatal error when an event was dropped * Fix - Picking a group of events not already loaded triggered a fatal error (events of the group still need to be rendered) * Fix - Error notice about wpdb::prepare since WP 4.9+ (can cause fatal error if WP_DEBUG was set to true) * Fix - Show / Hide activities in calendar editor triggers fatal error * Fix - Shop Managers (WooCommerce role) were not able to edit activities * Fix - WooCommerce [product_page] shortcode is now working with variable product marked as activity * Fix - Bookings in a WooCommerce order containing a non-activity products were still "Pending" after payment is received * **Breaking change** - Date format needs to be set again in Booking Activities settings, in "Messages" tab
5 years ago
return $value;
}
return $status;
}
** Booking Activities 1.5.0 ** * Feature - Customizable booking forms ! * Feature - You can now delete your bookings and your booking groups from the booking list * Feature - You can display past events on frontend, they can be bookable or not * Feature - Responsive default calendar view: display day view for small calendars instead of week view (set the threshold in settings) * Tweak - Add a "Product" column in booking list (if the reservation was made with WooCommerce) * Tweak - Add a dismissible admin notice to inform that WooCommerce "guest checkout" option isn't supported * Tweak - Use core dashicons instead of additional images in backend * Tweak - When to load the events? setting now also apply to product variation if a default variation is set * Fix - Booking groups sometimes not appearing in booking list * Fix - Show / Hide columns according to page options in booking list after a row is refreshed * Fix - Booking list pagination didn't allow to jump to a specific page * Fix - Couldn't drag and drop activities in calendar editor with touch devices * Fix - PHP warning during AJAX request which needs to create an instance of the Booking List * Fix - PHP warning when deleting a non-booking order item in the admin panel * Fix - PHP warning sometimes occurs before sending a notification * Fix - If the snap frequency was 00:00, it wasn't possible to drop an event on the calendar editor * Fix - Woocommerce 2.6 backward compatibility various checkout issues * **Breaking change** - Refund actions in Booking Activities settings must be set again
5 years ago
add_filter( 'set-screen-option', 'bookacti_save_screen_options', 10, 3 );
** Booking Activities 1.3.0 ** * Tweak - Bookings page has been redesigned * Feature - Filter your booking list by calendars, activities, status, date, and customers (and also by events like before) * Feature - The booking list is now paginated and columns can be hidden (in screen options) and sorted * Feature - Bookings have a new "Payment status" property, with 3 possible values: No payment required, owed, paid. * Feature - Display your customers' bookings calendar with the shortcode [bookingactivities_calendar bookings_only="true" user_id="current" past_events="true"] * Feature - Customize frontend dialogs titles and buttons labels (and content for some of them) * Tweak - In-cart bookings are no longer active when the cart expiration is deactivated. The availability check is made on checkout. * Tweak - Date format can be set more specifically, and the separator between dates can be changed * Tweak - ON/OFF button: clearly display "ON" and "OFF" for a better understanding * Tweak - Email refund option is no longer offered to administrators * Fix - Activities with a title containing special characters triggered a fatal error when an event was dropped * Fix - Picking a group of events not already loaded triggered a fatal error (events of the group still need to be rendered) * Fix - Error notice about wpdb::prepare since WP 4.9+ (can cause fatal error if WP_DEBUG was set to true) * Fix - Show / Hide activities in calendar editor triggers fatal error * Fix - Shop Managers (WooCommerce role) were not able to edit activities * Fix - WooCommerce [product_page] shortcode is now working with variable product marked as activity * Fix - Bookings in a WooCommerce order containing a non-activity products were still "Pending" after payment is received * **Breaking change** - Date format needs to be set again in Booking Activities settings, in "Messages" tab
5 years ago
// NOTIFICATIONS
/**
* Create a settings page for each notification
*
* @since 1.2.1 (was bookacti_fill_notifications_settings_section in 1.2.1)
* @param string $notification_id
*/
function bookacti_fill_notification_settings_page( $notification_id ) {
if( ! $notification_id ) { return; }
$notification_settings = bookacti_get_notification_settings( $notification_id );
?>
<h2><?php echo __( 'Notification', BOOKACTI_PLUGIN_NAME ) . ' - ' . $notification_settings[ 'title' ]; ?></h2>
<p>
<a href='<?php echo esc_url( '?page=bookacti_settings&tab=notifications' ); ?>' >
<?php _e( 'Go back to notifications settings', BOOKACTI_PLUGIN_NAME ); ?>
</a>
</p>
<p><?php echo $notification_settings[ 'description' ]; ?></p>
<?php do_action( 'bookacti_notification_settings_page_before', $notification_settings, $notification_id ); ?>
** Booking Activities 1.5.0 ** * Feature - Customizable booking forms ! * Feature - You can now delete your bookings and your booking groups from the booking list * Feature - You can display past events on frontend, they can be bookable or not * Feature - Responsive default calendar view: display day view for small calendars instead of week view (set the threshold in settings) * Tweak - Add a "Product" column in booking list (if the reservation was made with WooCommerce) * Tweak - Add a dismissible admin notice to inform that WooCommerce "guest checkout" option isn't supported * Tweak - Use core dashicons instead of additional images in backend * Tweak - When to load the events? setting now also apply to product variation if a default variation is set * Fix - Booking groups sometimes not appearing in booking list * Fix - Show / Hide columns according to page options in booking list after a row is refreshed * Fix - Booking list pagination didn't allow to jump to a specific page * Fix - Couldn't drag and drop activities in calendar editor with touch devices * Fix - PHP warning during AJAX request which needs to create an instance of the Booking List * Fix - PHP warning when deleting a non-booking order item in the admin panel * Fix - PHP warning sometimes occurs before sending a notification * Fix - If the snap frequency was 00:00, it wasn't possible to drop an event on the calendar editor * Fix - Woocommerce 2.6 backward compatibility various checkout issues * **Breaking change** - Refund actions in Booking Activities settings must be set again
5 years ago
<h3><?php _e( 'Global notifications settings', BOOKACTI_PLUGIN_NAME ); ?></h3>
<table class='form-table' id='bookacti-notification-global-settings' >
<tbody>
<tr>
<th scope='row' ><?php _e( 'Enable', BOOKACTI_PLUGIN_NAME ); ?></th>
<td>
<?php
$args = array(
'type' => 'checkbox',
'name' => 'bookacti_notification[active]',
'id' => 'bookacti_notification_' . $notification_id . 'active',
'value' => $notification_settings[ 'active' ] ? $notification_settings[ 'active' ] : 0,
'tip' => __( 'Enable or disable this automatic notification.', BOOKACTI_PLUGIN_NAME )
);
bookacti_display_field( $args );
?>
</td>
</tr>
<?php do_action( 'bookacti_notification_settings_page_global', $notification_settings, $notification_id ); ?>
</tbody>
</table>
<h3><?php _e( 'Email notifications settings', BOOKACTI_PLUGIN_NAME ); ?></h3>
<table class='form-table' id='bookacti-notification-email-settings' >
<tbody>
<?php
do_action( 'bookacti_notification_settings_page_email_before', $notification_settings, $notification_id );
if( substr( $notification_id, 0, 8 ) !== 'customer' ) { ?>
<tr>
<th scope='row' ><?php _e( 'Recipient(s)', BOOKACTI_PLUGIN_NAME ); ?></th>
<td>
<?php
$args = array(
'type' => 'text',
'name' => 'bookacti_notification[email][to]',
'id' => 'bookacti_notification_' . $notification_id . '_email_to',
'value' => is_array( $notification_settings[ 'email' ][ 'to' ] ) ? implode( ',', $notification_settings[ 'email' ][ 'to' ] ) : strval( $notification_settings[ 'email' ][ 'to' ] ),
'tip' => __( 'Recipient(s) email address(es) (comma separated).', BOOKACTI_PLUGIN_NAME )
);
bookacti_display_field( $args );
?>
</td>
</tr>
<?php } ?>
<tr>
<th scope='row' ><?php _ex( 'Subject', 'email subject', BOOKACTI_PLUGIN_NAME ); ?></th>
<td>
<?php
$args = array(
'type' => 'text',
'name' => 'bookacti_notification[email][subject]',
'id' => 'bookacti_notification_' . $notification_id . '_email_subject',
'value' => $notification_settings[ 'email' ][ 'subject' ] ? $notification_settings[ 'email' ][ 'subject' ] : '',
'tip' => __( 'The email subject.', BOOKACTI_PLUGIN_NAME )
);
bookacti_display_field( $args );
?>
</td>
</tr>
<tr>
<th scope='row' >
<?php
_ex( 'Email content', 'email message', BOOKACTI_PLUGIN_NAME );
$tags = bookacti_get_notifications_tags( $notification_id );
if( $tags ) {
?>
<div class='bookacti-notifications-tags-list' >
<p><?php _e( 'Use these tags:', BOOKACTI_PLUGIN_NAME ); ?></p>
<?php
foreach( $tags as $tag => $tip ) {
?>
<div class='bookacti-notifications-tag' >
<code><?php echo $tag; ?></code>
<?php bookacti_help_tip( $tip ); ?>
</div>
<?php
}
// Notification Pack promo
$is_plugin_active = bookacti_is_plugin_active( 'ba-notification-pack/ba-notification-pack.php' );
if( ! $is_plugin_active ) {
$addon_link = '<a href="https://booking-activities.fr/en/downloads/notification-pack/?utm_source=plugin&utm_medium=plugin&utm_campaign=notification-pack&utm_content=settings-notification-list" target="_blank" >Notification Pack</a>';
/* translators: %1$s is the placeholder for Notification Pack add-on link */
$tip = sprintf( esc_html__( 'You can set a specific message on events, activities, groups of events and group categories and use it in your notifications thanks to %1$s add-on.', BOOKACTI_PLUGIN_NAME ), $addon_link );
?>
<div class='bookacti-notifications-tag' >
<code class='bookacti-notifications-tag-promo' >{specific_message}</code>
<?php bookacti_help_tip( $tip ); ?>
</div>
<?php
}
?>
</div>
<?php
}
?>
</th>
<td>
<?php
$args = array(
'type' => 'editor',
'name' => 'bookacti_notification[email][message]',
'id' => 'bookacti_notification_' . $notification_id . '_email_message',
'value' => $notification_settings[ 'email' ][ 'message' ] ? $notification_settings[ 'email' ][ 'message' ] : ''
);
bookacti_display_field( $args );
?>
</td>
</tr>
<?php do_action( 'bookacti_notification_settings_page_email_after', $notification_settings, $notification_id ); ?>
</tbody>
</table>
<?php
do_action( 'bookacti_notification_settings_page_after', $notification_settings, $notification_id );
}
add_action( 'bookacti_notification_settings_page', 'bookacti_fill_notification_settings_page', 10, 1 );
/**
* Update notifications data
*
* @since 1.2.0
* @version 1.2.1
*/
function bookacti_controller_update_notification() {
$option_page = sanitize_title_with_dashes( $_POST[ 'option_page' ] );
// Check nonce and capabilities
$is_nonce_valid = check_ajax_referer( $option_page, '_wpnonce', false );
$is_allowed = current_user_can( 'bookacti_manage_booking_activities_settings' );
if( $is_nonce_valid && $is_allowed ) {
if( ! $_POST[ 'bookacti_notification' ] || ! $_POST[ 'notification_id' ] ) {
wp_send_json( array( 'status' => 'failed', 'error' => 'missing_data' ) );
}
// Sanitize values
$notification_settings = bookacti_sanitize_notification_settings( $_POST[ 'bookacti_notification' ], $_POST[ 'notification_id' ] );
$updated = update_option( $option_page, $notification_settings );
if( $updated ) {
wp_send_json( array( 'status' => 'success' ) );
} else {
wp_send_json( array( 'status' => 'failed', 'error' => 'not_updated' ) );
}
}
wp_send_json( array( 'status' => 'failed', 'error' => 'not_allowed' ) );
}
add_action( 'wp_ajax_bookactiUpdateNotification', 'bookacti_controller_update_notification' );
** Booking Activities 1.3.0 ** * Tweak - Bookings page has been redesigned * Feature - Filter your booking list by calendars, activities, status, date, and customers (and also by events like before) * Feature - The booking list is now paginated and columns can be hidden (in screen options) and sorted * Feature - Bookings have a new "Payment status" property, with 3 possible values: No payment required, owed, paid. * Feature - Display your customers' bookings calendar with the shortcode [bookingactivities_calendar bookings_only="true" user_id="current" past_events="true"] * Feature - Customize frontend dialogs titles and buttons labels (and content for some of them) * Tweak - In-cart bookings are no longer active when the cart expiration is deactivated. The availability check is made on checkout. * Tweak - Date format can be set more specifically, and the separator between dates can be changed * Tweak - ON/OFF button: clearly display "ON" and "OFF" for a better understanding * Tweak - Email refund option is no longer offered to administrators * Fix - Activities with a title containing special characters triggered a fatal error when an event was dropped * Fix - Picking a group of events not already loaded triggered a fatal error (events of the group still need to be rendered) * Fix - Error notice about wpdb::prepare since WP 4.9+ (can cause fatal error if WP_DEBUG was set to true) * Fix - Show / Hide activities in calendar editor triggers fatal error * Fix - Shop Managers (WooCommerce role) were not able to edit activities * Fix - WooCommerce [product_page] shortcode is now working with variable product marked as activity * Fix - Bookings in a WooCommerce order containing a non-activity products were still "Pending" after payment is received * **Breaking change** - Date format needs to be set again in Booking Activities settings, in "Messages" tab
5 years ago
// MESSAGES
/**
* Display messages fields
* @since 1.2.0