Skip to content

Commit

Permalink
v3.0.7
Browse files Browse the repository at this point in the history
  • Loading branch information
rishabhmwb committed Mar 13, 2023
1 parent 80660a8 commit b86b2d5
Show file tree
Hide file tree
Showing 8 changed files with 81 additions and 73 deletions.
27 changes: 14 additions & 13 deletions README.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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]

Expand All @@ -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.
Expand All @@ -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.
Expand Down Expand Up @@ -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..
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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)
2 changes: 1 addition & 1 deletion includes/class-mwb-bookings-for-woocommerce.php
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down
5 changes: 4 additions & 1 deletion includes/class-wc-product-mwb-booking.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 ) );
}
}

/**
Expand Down
Binary file modified languages/mwb-bookings-for-woocommerce-en_US.mo
Binary file not shown.
48 changes: 24 additions & 24 deletions languages/mwb-bookings-for-woocommerce-en_US.po
Original file line number Diff line number Diff line change
@@ -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"
Expand Down Expand Up @@ -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"
Expand All @@ -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 ""
Expand Down Expand Up @@ -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 ""

Expand Down Expand Up @@ -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 ""
Expand Down Expand Up @@ -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 ""

Expand Down
45 changes: 23 additions & 22 deletions languages/mwb-bookings-for-woocommerce.pot
Original file line number Diff line number Diff line change
@@ -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"
Expand Down Expand Up @@ -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 ""
Expand Down Expand Up @@ -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 ""

Expand Down Expand Up @@ -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 ""
Expand Down Expand Up @@ -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 ""

Expand Down
12 changes: 6 additions & 6 deletions mwb-bookings-for-woocommerce.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,18 +15,18 @@
* Plugin Name: Bookings For WooCommerce
* Plugin URI: https://wordpress.org/plugins/mwb-bookings-for-woocommerce/
* Description: <code><strong>Bookings for WooCommerce</strong></code> enable store owners to create an online booking system that allows them to turn their products into Booking Solutions.<a href="https://wpswings.com/woocommerce-plugins/?utm_source=wpswings-bookings&utm_medium=bookings-org-backend&utm_campaign=official" target="_blank"> Elevate your e-commerce store by exploring more on <strong> WP Swings </strong></a>.
* 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
Expand All @@ -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' );
Expand Down
15 changes: 9 additions & 6 deletions public/class-mwb-bookings-for-woocommerce-public.php
Original file line number Diff line number Diff line change
Expand Up @@ -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' );
Expand Down

0 comments on commit b86b2d5

Please sign in to comment.