Changeset 2337392
- Timestamp:
- 07/08/2020 01:09:27 PM (6 years ago)
- Location:
- woocommerce-accommodation-bookings
- Files:
-
- 10 edited
- 1 copied
-
tags/1.1.18 (copied) (copied from woocommerce-accommodation-bookings/trunk)
-
tags/1.1.18/changelog.txt (modified) (1 diff)
-
tags/1.1.18/includes/class-wc-accommodation-booking-date-picker.php (modified) (3 diffs)
-
tags/1.1.18/languages/woocommerce-accommodation-bookings.pot (modified) (1 diff)
-
tags/1.1.18/readme.txt (modified) (2 diffs)
-
tags/1.1.18/woocommerce-accommodation-bookings.php (modified) (2 diffs)
-
trunk/changelog.txt (modified) (1 diff)
-
trunk/includes/class-wc-accommodation-booking-date-picker.php (modified) (3 diffs)
-
trunk/languages/woocommerce-accommodation-bookings.pot (modified) (1 diff)
-
trunk/readme.txt (modified) (2 diffs)
-
trunk/woocommerce-accommodation-bookings.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
woocommerce-accommodation-bookings/tags/1.1.18/changelog.txt
r2321555 r2337392 1 1 *** Changelog *** 2 3 = 1.1.18 - 2020-07-08 = 4 * Fix - Existing booking checkout date showed as fully booked and not selectable. 2 5 3 6 = 1.1.17 - 2020-06-10 = -
woocommerce-accommodation-bookings/tags/1.1.18/includes/class-wc-accommodation-booking-date-picker.php
r2250680 r2337392 89 89 */ 90 90 public function add_partially_booked_dates( $booked_data_array, $product ) { 91 // This function makes se sne only for duration type: night.91 // This function makes sense only for duration type: night. 92 92 if ( 'night' !== $product->get_duration_unit() ) { 93 93 return $booked_data_array; … … 98 98 99 99 // Go through each checkin and checkout days and mark them as partially booked. 100 foreach ( array( ' out' ) as $which ) {100 foreach ( array( 'in', 'out' ) as $which ) { 101 101 foreach ( $check_in_out_times[ $which ] as $resource_id => $times ) { 102 102 foreach ( $times as $time ) { 103 103 $day = date( 'Y-n-j', $time ); 104 104 if ( ! empty( $booked_data_array['partially_booked_days'][ $day ][ $resource_id ] ) ) { 105 // The day is already partially booked so lets skip pto the next day.105 // The day is already partially booked so lets skip to the next day. 106 106 continue; 107 107 } … … 114 114 } 115 115 $check = date("F j, Y, g:i a", $check_time ); 116 // Check freeleavailable blocks for resource. If some are available that means that the day is not fully booked.116 // Check available blocks for resource. If some are available that means that the day is not fully booked. 117 117 $not_fully_booked = $this->get_product_resource_available_blocks_on_time( $product, $resource_id, $check_time ); 118 118 if( $not_fully_booked ) { -
woocommerce-accommodation-bookings/tags/1.1.18/languages/woocommerce-accommodation-bookings.pot
r2321555 r2337392 3 3 msgid "" 4 4 msgstr "" 5 "Project-Id-Version: WooCommerce Accommodation Bookings 1.1.1 7\n"5 "Project-Id-Version: WooCommerce Accommodation Bookings 1.1.18\n" 6 6 "Report-Msgid-Bugs-To: " 7 7 "https://wordpress.org/support/plugin/woocommerce-accommodation-bookings\n" 8 "POT-Creation-Date: 2020-0 6-10 12:24:40+00:00\n"8 "POT-Creation-Date: 2020-07-08 12:56:23+00:00\n" 9 9 "MIME-Version: 1.0\n" 10 10 "Content-Type: text/plain; charset=utf-8\n" -
woocommerce-accommodation-bookings/tags/1.1.18/readme.txt
r2321555 r2337392 4 4 Requires at least: 4.1 5 5 Tested up to: 5.4 6 Stable tag: 1.1.1 76 Stable tag: 1.1.18 7 7 License: GNU General Public License v3.0 8 8 License URI: http://www.gnu.org/licenses/gpl-3.0.html … … 37 37 == Changelog == 38 38 39 = 1.1.18 - 2020-07-08 = 40 * Fix - Existing booking checkout date showed as fully booked and not selectable. 41 39 42 = 1.1.17 - 2020-06-10 = 40 43 * Tweak - WC tested up to 4.2. -
woocommerce-accommodation-bookings/tags/1.1.18/woocommerce-accommodation-bookings.php
r2321555 r2337392 4 4 * Plugin URI: https://woocommerce.com/products/woocommerce-accommodation-bookings/ 5 5 * Description: An accommodations add-on for the WooCommerce Bookings extension. 6 * Version: 1.1.1 76 * Version: 1.1.18 7 7 * Author: WooCommerce 8 8 * Author URI: https://woocommerce.com … … 21 21 } 22 22 23 define( 'WC_ACCOMMODATION_BOOKINGS_VERSION', '1.1.1 7' ); // WRCS: DEFINED_VERSION.23 define( 'WC_ACCOMMODATION_BOOKINGS_VERSION', '1.1.18' ); // WRCS: DEFINED_VERSION. 24 24 25 25 require_once( 'includes/class-wc-accommodation-bookings-plugin.php' ); -
woocommerce-accommodation-bookings/trunk/changelog.txt
r2321555 r2337392 1 1 *** Changelog *** 2 3 = 1.1.18 - 2020-07-08 = 4 * Fix - Existing booking checkout date showed as fully booked and not selectable. 2 5 3 6 = 1.1.17 - 2020-06-10 = -
woocommerce-accommodation-bookings/trunk/includes/class-wc-accommodation-booking-date-picker.php
r2250680 r2337392 89 89 */ 90 90 public function add_partially_booked_dates( $booked_data_array, $product ) { 91 // This function makes se sne only for duration type: night.91 // This function makes sense only for duration type: night. 92 92 if ( 'night' !== $product->get_duration_unit() ) { 93 93 return $booked_data_array; … … 98 98 99 99 // Go through each checkin and checkout days and mark them as partially booked. 100 foreach ( array( ' out' ) as $which ) {100 foreach ( array( 'in', 'out' ) as $which ) { 101 101 foreach ( $check_in_out_times[ $which ] as $resource_id => $times ) { 102 102 foreach ( $times as $time ) { 103 103 $day = date( 'Y-n-j', $time ); 104 104 if ( ! empty( $booked_data_array['partially_booked_days'][ $day ][ $resource_id ] ) ) { 105 // The day is already partially booked so lets skip pto the next day.105 // The day is already partially booked so lets skip to the next day. 106 106 continue; 107 107 } … … 114 114 } 115 115 $check = date("F j, Y, g:i a", $check_time ); 116 // Check freeleavailable blocks for resource. If some are available that means that the day is not fully booked.116 // Check available blocks for resource. If some are available that means that the day is not fully booked. 117 117 $not_fully_booked = $this->get_product_resource_available_blocks_on_time( $product, $resource_id, $check_time ); 118 118 if( $not_fully_booked ) { -
woocommerce-accommodation-bookings/trunk/languages/woocommerce-accommodation-bookings.pot
r2321555 r2337392 3 3 msgid "" 4 4 msgstr "" 5 "Project-Id-Version: WooCommerce Accommodation Bookings 1.1.1 7\n"5 "Project-Id-Version: WooCommerce Accommodation Bookings 1.1.18\n" 6 6 "Report-Msgid-Bugs-To: " 7 7 "https://wordpress.org/support/plugin/woocommerce-accommodation-bookings\n" 8 "POT-Creation-Date: 2020-0 6-10 12:24:40+00:00\n"8 "POT-Creation-Date: 2020-07-08 12:56:23+00:00\n" 9 9 "MIME-Version: 1.0\n" 10 10 "Content-Type: text/plain; charset=utf-8\n" -
woocommerce-accommodation-bookings/trunk/readme.txt
r2321555 r2337392 4 4 Requires at least: 4.1 5 5 Tested up to: 5.4 6 Stable tag: 1.1.1 76 Stable tag: 1.1.18 7 7 License: GNU General Public License v3.0 8 8 License URI: http://www.gnu.org/licenses/gpl-3.0.html … … 37 37 == Changelog == 38 38 39 = 1.1.18 - 2020-07-08 = 40 * Fix - Existing booking checkout date showed as fully booked and not selectable. 41 39 42 = 1.1.17 - 2020-06-10 = 40 43 * Tweak - WC tested up to 4.2. -
woocommerce-accommodation-bookings/trunk/woocommerce-accommodation-bookings.php
r2321555 r2337392 4 4 * Plugin URI: https://woocommerce.com/products/woocommerce-accommodation-bookings/ 5 5 * Description: An accommodations add-on for the WooCommerce Bookings extension. 6 * Version: 1.1.1 76 * Version: 1.1.18 7 7 * Author: WooCommerce 8 8 * Author URI: https://woocommerce.com … … 21 21 } 22 22 23 define( 'WC_ACCOMMODATION_BOOKINGS_VERSION', '1.1.1 7' ); // WRCS: DEFINED_VERSION.23 define( 'WC_ACCOMMODATION_BOOKINGS_VERSION', '1.1.18' ); // WRCS: DEFINED_VERSION. 24 24 25 25 require_once( 'includes/class-wc-accommodation-bookings-plugin.php' );
Note: See TracChangeset
for help on using the changeset viewer.