Booking Calendar - Version 8.3.2

Version Description

  • Changes in all versions:
    • New Set pending days as available in booking form. You can receive as many bookings as you need to and stop receiving bookings on specific date(s), when you approve some booking on specific date(s). ( 8.3.2.2 )
  • Changes in Personal / Business Small / Business Medium / Business Large / MultiUser versions:
    • Fix Show pending days as available in search results during searching availability, if activated "Set pending days as available" option. (8.3.2.2) (Business Large, MultiUser)
    • Fix correct showing booking costs, if the cost was higher than 1000. Especially this issue was in search results during search availability, if in search form was used [cost_hint] shortcode. (8.3.2.1) (Business Small/Medium/Large, MultiUser)
Download this release

Release Info

Developer wpdevelop
Plugin Icon 128x128 Booking Calendar
Version 8.3.2
Comparing to
See all releases

Code changes from version 8.3.1 to 8.3.2

core/admin/api-settings.php CHANGED
@@ -781,7 +781,19 @@ class WPBC_Settings_API_General extends WPBC_Settings_API {
781
  , 'description' => ''
782
  , 'group' => 'advanced'
783
  );
784
-
 
 
 
 
 
 
 
 
 
 
 
 
785
  $this->fields = apply_filters( 'wpbc_settings_pending_days_as_available', $this->fields, $default_options_values );
786
 
787
  $this->fields['booking_check_on_server_if_dates_free'] = array(
@@ -943,7 +955,7 @@ class WPBC_Settings_API_General extends WPBC_Settings_API {
943
  <th scope="row" colspan="2">
944
  <hr/><p><strong>' . wp_kses_post( __('User permissions for plugin menu pages' ,'booking') ) . ':</strong></p>
945
  </th>
946
- </tr'
947
  );
948
 
949
  $field_options = array();
@@ -1207,7 +1219,21 @@ class WPBC_Settings_API_General extends WPBC_Settings_API {
1207
  this.checked = false;
1208
  }
1209
  }
1210
- } ); ";
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1211
  // Click on "Checking to prevent double booking, during submitting booking"
1212
  $js_script .= " jQuery('#set_gen_booking_check_on_server_if_dates_free').on( 'change', function(){
1213
  if ( this.checked ) {
@@ -1218,6 +1244,7 @@ class WPBC_Settings_API_General extends WPBC_Settings_API {
1218
  if ( answer) {
1219
  this.checked = true;
1220
  jQuery('#set_gen_booking_is_days_always_available').prop('checked', false );
 
1221
  } else {
1222
  this.checked = false;
1223
  }
781
  , 'description' => ''
782
  , 'group' => 'advanced'
783
  );
784
+
785
+ //FixIn: 8.3.2.2
786
+ if ( ! class_exists('wpdev_bk_biz_l') )
787
+ $this->fields['booking_is_show_pending_days_as_available'] = array(
788
+ 'type' => 'checkbox'
789
+ , 'default' => $default_options_values['booking_is_show_pending_days_as_available'] //_'Off'
790
+ , 'title' => __('Use pending days as available' ,'booking')
791
+ , 'label' => sprintf(__('Check this box if you want to show the pending days as available in calendars' ,'booking') )
792
+ , 'description' => ''
793
+ , 'group' => 'advanced'
794
+ , 'tr_class' => ''
795
+ );
796
+
797
  $this->fields = apply_filters( 'wpbc_settings_pending_days_as_available', $this->fields, $default_options_values );
798
 
799
  $this->fields['booking_check_on_server_if_dates_free'] = array(
955
  <th scope="row" colspan="2">
956
  <hr/><p><strong>' . wp_kses_post( __('User permissions for plugin menu pages' ,'booking') ) . ':</strong></p>
957
  </th>
958
+ </tr>'
959
  );
960
 
961
  $field_options = array();
1219
  this.checked = false;
1220
  }
1221
  }
1222
+ } ); ";
1223
+
1224
+ //FixIn: 8.3.2.2
1225
+ if ( ! class_exists('wpdev_bk_biz_l') ) {
1226
+ // Click on "Use pending days as available"
1227
+ $js_script .= " jQuery('#set_gen_booking_is_show_pending_days_as_available').on( 'change', function(){
1228
+ if ( this.checked ) {
1229
+ jQuery('#set_gen_booking_check_on_server_if_dates_free').prop('checked', false );
1230
+ jQuery('#set_gen_booking_is_days_always_available').prop('checked', false );
1231
+ } else {
1232
+
1233
+ }
1234
+ } ); ";
1235
+ }
1236
+ //FixIn: 8.3.2.2
1237
  // Click on "Checking to prevent double booking, during submitting booking"
1238
  $js_script .= " jQuery('#set_gen_booking_check_on_server_if_dates_free').on( 'change', function(){
1239
  if ( this.checked ) {
1244
  if ( answer) {
1245
  this.checked = true;
1246
  jQuery('#set_gen_booking_is_days_always_available').prop('checked', false );
1247
+ jQuery('#set_gen_booking_is_show_pending_days_as_available').prop('checked', false );
1248
  } else {
1249
  this.checked = false;
1250
  }
core/class/wpbc-class-welcome.php CHANGED
@@ -1912,10 +1912,10 @@ at the popup configuration dialog, during inserting booking shortcode into post
1912
  );
1913
 
1914
  $this->show_col_section( array(
1915
- array( 'h4' => 'Pending days as available',
1916
  'text' =>
1917
- '<p>' . 'Set **pending days as available** in booking form to prevent from SPAM bookings.' . '</p>'
1918
- . '<p>' . 'Activate **automatic cancelation** of **pending bookings** for specific date(s), if you **approved booking** on these date(s) at same booking resource.' . '</p>'
1919
  . '<p>' . '*You can activate this feature at the General Booking Settings page in "Advanced" section.*' . '</p>'
1920
  )
1921
  , array( 'img' => 'premium/pending-available.png', 'img_style'=>'margin:40px 0;width:99%;' )
1912
  );
1913
 
1914
  $this->show_col_section( array(
1915
+ array( 'h4' => 'Automatic cancelation of pending bookings',
1916
  'text' =>
1917
+ // '<p>' . 'Set **pending days as available** in booking form to prevent from SPAM bookings.' . '</p>'
1918
+ '<p>' . 'Activate **automatic cancelation** of **pending bookings** for specific date(s), if you **approved booking** on these date(s) at same booking resource.' . '</p>'
1919
  . '<p>' . '*You can activate this feature at the General Booking Settings page in "Advanced" section.*' . '</p>'
1920
  )
1921
  , array( 'img' => 'premium/pending-available.png', 'img_style'=>'margin:40px 0;width:99%;' )
core/lib/wpdev-booking-class.php CHANGED
@@ -305,8 +305,8 @@ class wpdev_booking {
305
  // No Booked days
306
 
307
  } else {
308
-
309
- if ( (class_exists('wpdev_bk_biz_l')) && (get_bk_option( 'booking_is_show_pending_days_as_available') == 'On') ){
310
  $dates_to_approve = array();
311
  $times_to_approve = array();
312
  } else {
305
  // No Booked days
306
 
307
  } else {
308
+ if ( get_bk_option( 'booking_is_show_pending_days_as_available') == 'On' ){ //FixIn: 8.3.2.2
309
+ // if ( (class_exists('wpdev_bk_biz_l')) && (get_bk_option( 'booking_is_show_pending_days_as_available') == 'On') ){
310
  $dates_to_approve = array();
311
  $times_to_approve = array();
312
  } else {
core/wpbc-activation.php CHANGED
@@ -929,7 +929,12 @@ function wpbc_get_default_options( $option_name = '', $is_get_multiuser_general_
929
 
930
 
931
  $default_options['booking_is_days_always_available'] = 'Off';
932
- $mu_option4delete[]='booking_is_days_always_available';
 
 
 
 
 
933
  $default_options['booking_check_on_server_if_dates_free'] = 'Off';
934
  $mu_option4delete[]='booking_check_on_server_if_dates_free';
935
  $default_options['booking_unavailable_days_num_from_today'] = '0';
929
 
930
 
931
  $default_options['booking_is_days_always_available'] = 'Off';
932
+ $mu_option4delete[]='booking_is_days_always_available';
933
+
934
+ //FixIn: 8.3.2.2
935
+ $default_options['booking_is_show_pending_days_as_available'] = 'Off';
936
+ $mu_option4delete[]='booking_is_show_pending_days_as_available';
937
+
938
  $default_options['booking_check_on_server_if_dates_free'] = 'Off';
939
  $mu_option4delete[]='booking_check_on_server_if_dates_free';
940
  $default_options['booking_unavailable_days_num_from_today'] = '0';
core/wpbc-constants.php CHANGED
@@ -26,7 +26,7 @@ if ( ! defined( 'WP_BK_CHECK_OUT_MINUS_DAY_SEARCH' ) ) { define( 'WP_BK_C
26
  ////////////////////////////////////////////////////////////
27
  // SYSTEM CONSTANTS //////////////
28
  ////////////////////////////////////////////////////////////
29
- if ( ! defined( 'WP_BK_VERSION_NUM' ) ) { define( 'WP_BK_VERSION_NUM', '8.3.1' ); }
30
  if ( ! defined( 'WP_BK_MINOR_UPDATE' ) ) { define( 'WP_BK_MINOR_UPDATE', true ); }
31
  if ( ! defined( 'WP_BK_RESPONSE' ) ) { define( 'WP_BK_RESPONSE', false ); }
32
  if ( ! defined( 'WP_BK_BETA_DATA_FILL' ) ) { define( 'WP_BK_BETA_DATA_FILL', 0 ); } // Set 0 for no filling or 2 for 241 bookings or more for more
26
  ////////////////////////////////////////////////////////////
27
  // SYSTEM CONSTANTS //////////////
28
  ////////////////////////////////////////////////////////////
29
+ if ( ! defined( 'WP_BK_VERSION_NUM' ) ) { define( 'WP_BK_VERSION_NUM', '8.3.2' ); }
30
  if ( ! defined( 'WP_BK_MINOR_UPDATE' ) ) { define( 'WP_BK_MINOR_UPDATE', true ); }
31
  if ( ! defined( 'WP_BK_RESPONSE' ) ) { define( 'WP_BK_RESPONSE', false ); }
32
  if ( ! defined( 'WP_BK_BETA_DATA_FILL' ) ) { define( 'WP_BK_BETA_DATA_FILL', 0 ); } // Set 0 for no filling or 2 for 241 bookings or more for more
core/wpbc-include.php CHANGED
@@ -55,7 +55,7 @@ require_once( WPBC_PLUGIN_DIR . '/core/admin/page-new.php' );
55
  require_once( WPBC_PLUGIN_DIR . '/core/admin/page-settings.php' ); // Settings page
56
  require_once( WPBC_PLUGIN_DIR . '/core/admin/api-settings.php' ); // Settings API
57
 
58
- require_once( WPBC_PLUGIN_DIR . '/core/admin/wpbc-gutenberg.php' ); // Settings page
59
 
60
  ////////////////////////////////////////////////////////////////////////////////
61
 
55
  require_once( WPBC_PLUGIN_DIR . '/core/admin/page-settings.php' ); // Settings page
56
  require_once( WPBC_PLUGIN_DIR . '/core/admin/api-settings.php' ); // Settings API
57
 
58
+ // require_once( WPBC_PLUGIN_DIR . '/core/admin/wpbc-gutenberg.php' ); // Settings page
59
 
60
  ////////////////////////////////////////////////////////////////////////////////
61
 
readme.txt CHANGED
@@ -5,7 +5,7 @@ Tags: booking calendar, booking system, availability calendar, events calendar,
5
  Requires at least: 4.0
6
  Requires PHP: 5.2.4
7
  Tested up to: 4.9
8
- Stable tag: 8.3.1
9
  License: GPLv2 or later
10
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
11
 
@@ -52,6 +52,7 @@ Booking Calendar is built to work out of the box. Just activate it and insert bo
52
  - Make bookings in **friendly booking interface** - select the date(s) and fill booking form fields.
53
  - **New**. **Timeslots bookings** in Booking Calendar Free version, as well. Ability to receive simple bookings for specific timeslots (times during selected day).
54
  - **Prevent of double booking** for already reserved days (1 booking per 1 day) or **allow multiple (unlimited) bookings per same day** in same calendar.
 
55
  - **New**. **Timeline** - Glance booking checking for a year (3 months or month), at front-end side of your website.
56
  - Booking form and calendar support fully **responsive design** that looks great on any device.
57
 
@@ -223,6 +224,13 @@ Please see [Video Guides](https://wpbookingcalendar.com/help/).
223
  13. **Time Slots**. Simple configuration of **time slots** selection in booking form.
224
 
225
  == Changelog ==
 
 
 
 
 
 
 
226
  = 8.3.1 =
227
  - Changes in **all** versions:
228
  * **Translation** Polish translation [100% completed] by R.
@@ -438,4 +446,4 @@ For more information, see the [full release notes](https://wpbookingcalendar.com
438
 
439
  == Upgrade Notice ==
440
  = 8.3 =
441
- Free version: Timeslots bookings. Simple configuration of timeslots selection in booking form. Paid versions: Early booking / Last minute bookings. Apply discount, if difference between "today" and "check in" day MORE / LESS than X days. Many other improvements.
5
  Requires at least: 4.0
6
  Requires PHP: 5.2.4
7
  Tested up to: 4.9
8
+ Stable tag: 8.3.2
9
  License: GPLv2 or later
10
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
11
 
52
  - Make bookings in **friendly booking interface** - select the date(s) and fill booking form fields.
53
  - **New**. **Timeslots bookings** in Booking Calendar Free version, as well. Ability to receive simple bookings for specific timeslots (times during selected day).
54
  - **Prevent of double booking** for already reserved days (1 booking per 1 day) or **allow multiple (unlimited) bookings per same day** in same calendar.
55
+ - **New** Set **pending days as available** in booking form. You can receive as many bookings as you need to and stop receiving bookings on specific date(s), when you approve some booking on specific date(s).
56
  - **New**. **Timeline** - Glance booking checking for a year (3 months or month), at front-end side of your website.
57
  - Booking form and calendar support fully **responsive design** that looks great on any device.
58
 
224
  13. **Time Slots**. Simple configuration of **time slots** selection in booking form.
225
 
226
  == Changelog ==
227
+ = 8.3.2 =
228
+ - Changes in **all** versions:
229
+ * **New** Set pending days as available in booking form. You can receive as many bookings as you need to and stop receiving bookings on specific date(s), when you approve some booking on specific date(s). ( 8.3.2.2 )
230
+ - Changes in **Personal / Business Small / Business Medium / Business Large / MultiUser** versions:
231
+ * **Fix** Show pending days as available in search results during searching availability, if activated "Set pending days as available" option. (8.3.2.2) *(Business Large, MultiUser)*
232
+ * **Fix** correct showing booking costs, if the cost was higher than 1000. Especially this issue was in search results during search availability, if in search form was used [cost_hint] shortcode. (8.3.2.1) *(Business Small/Medium/Large, MultiUser)*
233
+
234
  = 8.3.1 =
235
  - Changes in **all** versions:
236
  * **Translation** Polish translation [100% completed] by R.
446
 
447
  == Upgrade Notice ==
448
  = 8.3 =
449
+ Free version: Timeslots bookings. Simple configuration of timeslots selection in booking form. Set pending days as available in booking form. Paid versions: Early booking / Last minute bookings. Apply discount, if difference between "today" and "check in" day MORE / LESS than X days. Many other improvements.
wpdev-booking.php CHANGED
@@ -7,7 +7,7 @@ Author: wpdevelop, oplugins
7
  Author URI: https://wpbookingcalendar.com/
8
  Text Domain: booking
9
  Domain Path: /languages/
10
- Version: 8.3.1
11
  */
12
 
13
  /* Copyright 2009 - 2018 www.wpbookingcalendar.com (email: info@wpbookingcalendar.com),
7
  Author URI: https://wpbookingcalendar.com/
8
  Text Domain: booking
9
  Domain Path: /languages/
10
+ Version: 8.3.2
11
  */
12
 
13
  /* Copyright 2009 - 2018 www.wpbookingcalendar.com (email: info@wpbookingcalendar.com),