diff --git a/README.txt b/README.txt index 29d11cb..da99cee 100644 --- a/README.txt +++ b/README.txt @@ -5,8 +5,8 @@ Tags: bookings, calendar, appointments, booking calendar, scheduling, availabili Requires at least: 5.1.0 Tested up to: 6.1.1 WC requires at least: 5.1.0 -WC tested up to: 7.3.0 -Stable tag: 3.0.6 +WC tested up to: 7.4.1 +Stable tag: 3.0.7 Requires PHP: 7.2 License: GNU General Public License v3.0 License URI: http://www.gnu.org/licenses/gpl-3.0.html @@ -19,7 +19,7 @@ Bookings for WooCommerce offer easy booking management, confirm/reject bookings, WooCommerce Booking and Appointment plugin is a powerful plugin that enables store owners to create an online booking system that allows them to turn their products into online booking solutions and make them available to customers for a set period of time. -You can now simply book WordPress time slots booking, confirm/reject bookings, display reservation calendar listings, enable booking cancellations, promote booking availability, regulate booking duration, and much more using the [**Bookings Plugin**](https://wpswings.com/product/bookings-for-woocommerce-pro/?utm_source=wpswings-bookings-pro&utm_medium=bookings-org-page&utm_campaign=bookings-pro) plugin's capabilities. +You can now simply book WordPress time slots booking, confirm/reject bookings, display reservation calendar listings, enable booking cancellations, promote booking availability, regulate booking duration, and much more using the [**WooCommerce Bookings Plugin**](https://wpswings.com/product/bookings-for-woocommerce-pro/?utm_source=wpswings-bookings-pro&utm_medium=bookings-org-page&utm_campaign=bookings-pro) plugin's capabilities. [youtube https://www.youtube.com/watch?v=QTIiZDAtWKA?rel=0] @@ -38,7 +38,7 @@ You can now simply book WordPress time slots booking, confirm/reject bookings, d == WHAT’S INCLUDED IN OUR FREE WOOCOMMERCE BOOKINGS PLUGIN: == **1) Enable Bookings** -Using the WordPress Bookings plugin General Settings tab toggle button functionality, admin managers can simply enable/disable the plugin as well as the plugin's bookings feature. +Using the WordPress Bookings plugin General Settings tab toggle button functionality, admin managers can simply enable/disable the plugin as well as the plugin's WooCommerce bookings feature. **2) Flexible Bookings** With the Appointment Booking Calendar, customers can tailor their booking criteria to their specific Booking unit (hour, day), budget, event, and requirements. You can make reservations without bothering to place a call, thus you can do so from the comfort of your home following easy booking management. @@ -61,7 +61,7 @@ The WooCommerce Calendar Booking view allows merchants to build and analyze how With the Free Online Booking system for WordPress, Admin managers can easily create WooCommerce booking services and additional costs using the backend settings, and easily display them over the checkout page and over the individual bookable resource page. **8) Responsive Interface** -WordPress Online Booking provides an online mobile-friendly WooCommerce easy booking interface, i.e. a responsive UI that works on a variety of devices. In short, offering ease of access for their customers for online appointment booking products. +WordPress Appointment Plugin provides an online mobile-friendly WooCommerce easy booking interface, i.e. a responsive UI that works on a variety of devices. In short, offering ease of access for their customers for online appointment booking products. **9) Easy Uptime Schedule Outlining** With the help of the WooCommerce Calendar Booking, retailers can easily create and monitor their monthly bookings. Customers can also use such information to find out the start and end times of your service and easily start booking an appointment for them. Yes, retailers may now quickly specify the start and end times of the service for each day on the booking calendar. Moreover, let your clients have timetables that are simple to learn. @@ -100,7 +100,7 @@ Visit [**Bookings for WooCommerce Documentation**](https://docs.wpswings.com/boo * Admin can also reject Bookings after days. * Can define maximum bookings per hour/day. * Render setting to show/hide the Additional Booking details. -* Advance Bookings setting options. +* Advance Booking Appointment setting options. * Admins can offer Early Bird Discounts. * Customizable business type Templates. * Export your Booking Order Data in a .csv format.. @@ -220,6 +220,11 @@ Check out [**WooCommerce Bookings knowledge base**](https://support.wpswings.com == Changelog == += 3.0.7 - Released on 13 March 2023 = + * Fix: Issue in updating another post + * New: Compatible with the latest WP(6.1.1) and WC(7.4.1) + + = 3.0.6 - Released on 17 February 2023 = * New: Choose Single Upcoming Days * New: Add Booking to Google Calendar @@ -290,10 +295,6 @@ Check out [**WooCommerce Bookings knowledge base**](https://support.wpswings.com * First version == Upgrade Notice == -= 3.0.6 - Released on 17 February 2023 = - * New: Choose Single Upcoming Days - * New: Add Booking to Google Calendar - * New: Disable Setting For Availability by days setting - * New: My Booking Tab Added - * New: Compatible with the latest WP and WC - += 3.0.7 - Released on 13 March 2023 = + * Fix: Issue in updating another post + * New: Compatible with the latest WP(6.1.1) and WC(7.4.1) \ No newline at end of file diff --git a/includes/class-mwb-bookings-for-woocommerce.php b/includes/class-mwb-bookings-for-woocommerce.php index 2138f39..215bdb7 100644 --- a/includes/class-mwb-bookings-for-woocommerce.php +++ b/includes/class-mwb-bookings-for-woocommerce.php @@ -76,7 +76,7 @@ public function __construct() { $this->version = MWB_BOOKINGS_FOR_WOOCOMMERCE_VERSION; } else { - $this->version = '3.0.6'; + $this->version = '3.0.7'; } $this->plugin_name = 'bookings-for-woocommerce'; diff --git a/includes/class-wc-product-mwb-booking.php b/includes/class-wc-product-mwb-booking.php index e5c1ed9..65f9564 100644 --- a/includes/class-wc-product-mwb-booking.php +++ b/includes/class-wc-product-mwb-booking.php @@ -122,7 +122,10 @@ public function set_product_url( $product_url ) { * @return string */ public function get_product_url( $context = 'view' ) { - return esc_url_raw( $this->get_prop( 'product_url', $context ) ); + if( ! empty ($this->get_prop( 'product_url', $context ) ) ) { + + return esc_url_raw( $this->get_prop( 'product_url', $context ) ); + } } /** diff --git a/languages/mwb-bookings-for-woocommerce-en_US.mo b/languages/mwb-bookings-for-woocommerce-en_US.mo index fb731d4..dc48d10 100644 Binary files a/languages/mwb-bookings-for-woocommerce-en_US.mo and b/languages/mwb-bookings-for-woocommerce-en_US.mo differ diff --git a/languages/mwb-bookings-for-woocommerce-en_US.po b/languages/mwb-bookings-for-woocommerce-en_US.po index 41b4bbf..5f8ba15 100644 --- a/languages/mwb-bookings-for-woocommerce-en_US.po +++ b/languages/mwb-bookings-for-woocommerce-en_US.po @@ -1,8 +1,8 @@ msgid "" msgstr "" -"Project-Id-Version: Bookings For WooCommerce 3.0.6\n" -"POT-Creation-Date: 2023-02-14 12:03+0530\n" -"PO-Revision-Date: 2023-02-14 12:09+0530\n" +"Project-Id-Version: Bookings For WooCommerce 3.0.7\n" +"POT-Creation-Date: 2023-03-07 14:16+0530\n" +"PO-Revision-Date: 2023-03-07 14:18+0530\n" "Last-Translator: \n" "Language-Team: WP Swings\n" "Language: en_US\n" @@ -144,7 +144,7 @@ msgstr "" #: admin/class-mwb-bookings-for-woocommerce-admin.php:600 #: includes/class-mwb-bookings-for-woocommerce.php:389 msgid "General Settings" -msgstr "" +msgstr "General Settings" #: admin/class-mwb-bookings-for-woocommerce-admin.php:606 msgid "Costs" @@ -154,7 +154,7 @@ msgstr "" #: admin/class-mwb-bookings-for-woocommerce-admin.php:1224 #: admin/class-mwb-bookings-for-woocommerce-admin.php:1447 #: common/class-mwb-bookings-for-woocommerce-common.php:667 -#: public/class-mwb-bookings-for-woocommerce-public.php:350 +#: public/class-mwb-bookings-for-woocommerce-public.php:353 #: public/templates/mwb-bookings-for-woocommerce-public-show-people-option.php:21 msgid "People" msgstr "" @@ -540,19 +540,19 @@ msgstr "" #: admin/class-mwb-bookings-for-woocommerce-admin.php:1601 #: common/class-mwb-bookings-for-woocommerce-common.php:707 -#: public/class-mwb-bookings-for-woocommerce-public.php:267 -#: public/class-mwb-bookings-for-woocommerce-public.php:277 -#: public/class-mwb-bookings-for-woocommerce-public.php:290 -#: public/class-mwb-bookings-for-woocommerce-public.php:383 +#: public/class-mwb-bookings-for-woocommerce-public.php:270 +#: public/class-mwb-bookings-for-woocommerce-public.php:280 +#: public/class-mwb-bookings-for-woocommerce-public.php:293 +#: public/class-mwb-bookings-for-woocommerce-public.php:386 msgid "From" msgstr "" #: admin/class-mwb-bookings-for-woocommerce-admin.php:1603 #: common/class-mwb-bookings-for-woocommerce-common.php:710 -#: public/class-mwb-bookings-for-woocommerce-public.php:268 -#: public/class-mwb-bookings-for-woocommerce-public.php:278 -#: public/class-mwb-bookings-for-woocommerce-public.php:294 -#: public/class-mwb-bookings-for-woocommerce-public.php:387 +#: public/class-mwb-bookings-for-woocommerce-public.php:271 +#: public/class-mwb-bookings-for-woocommerce-public.php:281 +#: public/class-mwb-bookings-for-woocommerce-public.php:297 +#: public/class-mwb-bookings-for-woocommerce-public.php:390 msgid "To" msgstr "" @@ -1003,11 +1003,11 @@ msgid "Book Now" msgstr "" #: includes/class-wc-product-mwb-booking.php:89 -#: public/class-mwb-bookings-for-woocommerce-public.php:411 +#: public/class-mwb-bookings-for-woocommerce-public.php:414 msgid "View Details" msgstr "" -#: includes/class-wc-product-mwb-booking.php:157 +#: includes/class-wc-product-mwb-booking.php:160 #, php-format msgid "Book “%s”" msgstr "" @@ -1062,36 +1062,36 @@ msgstr "" msgid "Skip For Now" msgstr "" -#: public/class-mwb-bookings-for-woocommerce-public.php:97 +#: public/class-mwb-bookings-for-woocommerce-public.php:100 msgid "To date can not be less than from date." msgstr "" -#: public/class-mwb-bookings-for-woocommerce-public.php:98 +#: public/class-mwb-bookings-for-woocommerce-public.php:101 msgid "From date can not be greater than To date." msgstr "" -#: public/class-mwb-bookings-for-woocommerce-public.php:189 +#: public/class-mwb-bookings-for-woocommerce-public.php:192 msgid "Additional services" msgstr "" -#: public/class-mwb-bookings-for-woocommerce-public.php:272 +#: public/class-mwb-bookings-for-woocommerce-public.php:275 msgid "Check in" msgstr "" -#: public/class-mwb-bookings-for-woocommerce-public.php:273 +#: public/class-mwb-bookings-for-woocommerce-public.php:276 msgid "Check out" msgstr "" -#: public/class-mwb-bookings-for-woocommerce-public.php:361 -#: public/class-mwb-bookings-for-woocommerce-public.php:371 +#: public/class-mwb-bookings-for-woocommerce-public.php:364 +#: public/class-mwb-bookings-for-woocommerce-public.php:374 msgid "not found" msgstr "" -#: public/class-mwb-bookings-for-woocommerce-public.php:377 +#: public/class-mwb-bookings-for-woocommerce-public.php:380 msgid "Service" msgstr "" -#: public/class-mwb-bookings-for-woocommerce-public.php:559 +#: public/class-mwb-bookings-for-woocommerce-public.php:562 msgid "my bookings" msgstr "" diff --git a/languages/mwb-bookings-for-woocommerce.pot b/languages/mwb-bookings-for-woocommerce.pot index b071e30..4aea789 100644 --- a/languages/mwb-bookings-for-woocommerce.pot +++ b/languages/mwb-bookings-for-woocommerce.pot @@ -1,7 +1,8 @@ +#, fuzzy msgid "" msgstr "" -"Project-Id-Version: Bookings For WooCommerce 3.0.6\n" -"POT-Creation-Date: 2023-02-14 12:03+0530\n" +"Project-Id-Version: Bookings For WooCommerce 3.0.7\n" +"POT-Creation-Date: 2023-03-07 14:16+0530\n" "PO-Revision-Date: 2023-02-14 12:03+0530\n" "Last-Translator: \n" "Language-Team: WP Swings\n" @@ -154,7 +155,7 @@ msgstr "" #: admin/class-mwb-bookings-for-woocommerce-admin.php:1224 #: admin/class-mwb-bookings-for-woocommerce-admin.php:1447 #: common/class-mwb-bookings-for-woocommerce-common.php:667 -#: public/class-mwb-bookings-for-woocommerce-public.php:350 +#: public/class-mwb-bookings-for-woocommerce-public.php:353 #: public/templates/mwb-bookings-for-woocommerce-public-show-people-option.php:21 msgid "People" msgstr "" @@ -540,19 +541,19 @@ msgstr "" #: admin/class-mwb-bookings-for-woocommerce-admin.php:1601 #: common/class-mwb-bookings-for-woocommerce-common.php:707 -#: public/class-mwb-bookings-for-woocommerce-public.php:267 -#: public/class-mwb-bookings-for-woocommerce-public.php:277 -#: public/class-mwb-bookings-for-woocommerce-public.php:290 -#: public/class-mwb-bookings-for-woocommerce-public.php:383 +#: public/class-mwb-bookings-for-woocommerce-public.php:270 +#: public/class-mwb-bookings-for-woocommerce-public.php:280 +#: public/class-mwb-bookings-for-woocommerce-public.php:293 +#: public/class-mwb-bookings-for-woocommerce-public.php:386 msgid "From" msgstr "" #: admin/class-mwb-bookings-for-woocommerce-admin.php:1603 #: common/class-mwb-bookings-for-woocommerce-common.php:710 -#: public/class-mwb-bookings-for-woocommerce-public.php:268 -#: public/class-mwb-bookings-for-woocommerce-public.php:278 -#: public/class-mwb-bookings-for-woocommerce-public.php:294 -#: public/class-mwb-bookings-for-woocommerce-public.php:387 +#: public/class-mwb-bookings-for-woocommerce-public.php:271 +#: public/class-mwb-bookings-for-woocommerce-public.php:281 +#: public/class-mwb-bookings-for-woocommerce-public.php:297 +#: public/class-mwb-bookings-for-woocommerce-public.php:390 msgid "To" msgstr "" @@ -1003,11 +1004,11 @@ msgid "Book Now" msgstr "" #: includes/class-wc-product-mwb-booking.php:89 -#: public/class-mwb-bookings-for-woocommerce-public.php:411 +#: public/class-mwb-bookings-for-woocommerce-public.php:414 msgid "View Details" msgstr "" -#: includes/class-wc-product-mwb-booking.php:157 +#: includes/class-wc-product-mwb-booking.php:160 #, php-format msgid "Book “%s”" msgstr "" @@ -1062,36 +1063,36 @@ msgstr "" msgid "Skip For Now" msgstr "" -#: public/class-mwb-bookings-for-woocommerce-public.php:97 +#: public/class-mwb-bookings-for-woocommerce-public.php:100 msgid "To date can not be less than from date." msgstr "" -#: public/class-mwb-bookings-for-woocommerce-public.php:98 +#: public/class-mwb-bookings-for-woocommerce-public.php:101 msgid "From date can not be greater than To date." msgstr "" -#: public/class-mwb-bookings-for-woocommerce-public.php:189 +#: public/class-mwb-bookings-for-woocommerce-public.php:192 msgid "Additional services" msgstr "" -#: public/class-mwb-bookings-for-woocommerce-public.php:272 +#: public/class-mwb-bookings-for-woocommerce-public.php:275 msgid "Check in" msgstr "" -#: public/class-mwb-bookings-for-woocommerce-public.php:273 +#: public/class-mwb-bookings-for-woocommerce-public.php:276 msgid "Check out" msgstr "" -#: public/class-mwb-bookings-for-woocommerce-public.php:361 -#: public/class-mwb-bookings-for-woocommerce-public.php:371 +#: public/class-mwb-bookings-for-woocommerce-public.php:364 +#: public/class-mwb-bookings-for-woocommerce-public.php:374 msgid "not found" msgstr "" -#: public/class-mwb-bookings-for-woocommerce-public.php:377 +#: public/class-mwb-bookings-for-woocommerce-public.php:380 msgid "Service" msgstr "" -#: public/class-mwb-bookings-for-woocommerce-public.php:559 +#: public/class-mwb-bookings-for-woocommerce-public.php:562 msgid "my bookings" msgstr "" diff --git a/mwb-bookings-for-woocommerce.php b/mwb-bookings-for-woocommerce.php index abce031..84fa89b 100644 --- a/mwb-bookings-for-woocommerce.php +++ b/mwb-bookings-for-woocommerce.php @@ -15,18 +15,18 @@ * Plugin Name: Bookings For WooCommerce * Plugin URI: https://wordpress.org/plugins/mwb-bookings-for-woocommerce/ * Description: Bookings for WooCommerce enable store owners to create an online booking system that allows them to turn their products into Booking Solutions. Elevate your e-commerce store by exploring more on WP Swings . - * Version: 3.0.6 + * Version: 3.0.7 * Author: WP Swings * Author URI: https://wpswings.com/?utm_source=wpswings-bookings-official&utm_medium=bookings-org-page&utm_campaign=official * Text Domain: mwb-bookings-for-woocommerce * Domain Path: /languages * - * Requires at least: 5.1.0 + * Requires at least: 5.5.0 * Tested up to: 6.1.1 - * WC requires at least: 5.1.0 - * WC tested up to: 7.3.0 + * WC requires at least: 5.5.0 + * WC tested up to: 7.4.1 * Requires PHP: 7.2 - * Stable tag: 3.0.6 + * Stable tag: 3.0.7 * * License: GNU General Public License v3.0 * License URI: http://www.gnu.org/licenses/gpl-3.0.html @@ -45,7 +45,7 @@ * @since 2.0.0 */ function define_mwb_bookings_for_woocommerce_constants() { - mwb_bookings_for_woocommerce_constants( 'MWB_BOOKINGS_FOR_WOOCOMMERCE_VERSION', '3.0.6' ); + mwb_bookings_for_woocommerce_constants( 'MWB_BOOKINGS_FOR_WOOCOMMERCE_VERSION', '3.0.7' ); mwb_bookings_for_woocommerce_constants( 'MWB_BOOKINGS_FOR_WOOCOMMERCE_DIR_PATH', plugin_dir_path( __FILE__ ) ); mwb_bookings_for_woocommerce_constants( 'MWB_BOOKINGS_FOR_WOOCOMMERCE_DIR_URL', plugin_dir_url( __FILE__ ) ); mwb_bookings_for_woocommerce_constants( 'MWB_BOOKINGS_FOR_WOOCOMMERCE_SERVER_URL', 'https://wpswings.com' ); diff --git a/public/class-mwb-bookings-for-woocommerce-public.php b/public/class-mwb-bookings-for-woocommerce-public.php index 30c38b1..17a4acc 100644 --- a/public/class-mwb-bookings-for-woocommerce-public.php +++ b/public/class-mwb-bookings-for-woocommerce-public.php @@ -74,13 +74,16 @@ public function mbfw_public_enqueue_scripts() { global $post; $product_id = $post->ID; $temp_product = wc_get_product( $product_id ); + if( ! empty( $temp_product ) ) { + + if ( 'mwb_booking' == $temp_product->get_type() ) { + $daily_start_time = get_post_meta( $product_id, 'mwb_mbfw_daily_calendar_start_time', true ); + $daily_end_time = get_post_meta( $product_id, 'mwb_mbfw_daily_calendar_end_time', true ); + $upcoming_holiday = get_post_meta( $product_id, 'mwb_mbfw_choose_holiday', true ); + $upcoming_holiday = gmdate( 'Y-m-d', strtotime( $upcoming_holiday ) ); + } + } - if ( 'mwb_booking' == $temp_product->get_type() ) { - $daily_start_time = get_post_meta( $product_id, 'mwb_mbfw_daily_calendar_start_time', true ); - $daily_end_time = get_post_meta( $product_id, 'mwb_mbfw_daily_calendar_end_time', true ); - $upcoming_holiday = get_post_meta( $product_id, 'mwb_mbfw_choose_holiday', true ); - $upcoming_holiday = gmdate( 'Y-m-d', strtotime( $upcoming_holiday ) ); - } } $active_plugins = get_option( 'active_plugins' );