diff --git a/common/class-mwb-bookings-for-woocommerce-common.php b/common/class-mwb-bookings-for-woocommerce-common.php
index f2f9a57..1ef3fa2 100644
--- a/common/class-mwb-bookings-for-woocommerce-common.php
+++ b/common/class-mwb-bookings-for-woocommerce-common.php
@@ -263,7 +263,12 @@ public function mwb_mbfw_show_extra_charges_in_total( $cart_object ) {
*/
$base_price = apply_filters( 'mwb_mbfw_vary_product_base_price', ( ! empty( $base_price ) ? (float) $base_price : 0 ), $custom_cart_data, $cart_object, $cart );
$unit_price = get_post_meta( $cart['product_id'], 'general_price', true );
- $unit = (int)($unit_price/$new_price);
+ if( 0 != $unit_price)
+ {
+ $unit = (int)($unit_price/$new_price);
+ } else{
+ $unit = 0;
+ }
/**
* Filter is for returning something.
@@ -499,6 +504,7 @@ public function mbfw_booking_total_listing_single_page( $charges, $quantity, $pr
*
* @param int $product_id current product id.
* @param int $people_number number of people in the booking.
+ * @param int $unit is used for pricing.
* @return float
*/
public function mbfw_extra_charges_calculation( $product_id, $people_number, $unit ) {
@@ -528,6 +534,7 @@ public function mbfw_extra_charges_calculation( $product_id, $people_number, $un
* @param array $services_checked array containing optional services checked by user.
* @param array $service_quantity quantity array containing services and there count.
* @param int $people_number number of people.
+ * @param int $unit is for pricing.
* @return float
*/
public function mbfw_extra_service_charge( $product_id, $services_checked, $service_quantity, $people_number, $unit ) {
diff --git a/common/js/mwb-common.js b/common/js/mwb-common.js
index 9c3c931..84e9323 100644
--- a/common/js/mwb-common.js
+++ b/common/js/mwb-common.js
@@ -51,6 +51,11 @@
timepicker : false,
minDate : mwb_mbfw_common_obj.minDate,
});
+ $('#mwb_mbfw_choose_holiday').datepicker({
+ dateFormat : 'dd-mm-yy',
+ minDate: mwb_mbfw_common_obj.minDate,
+
+ });
$('.mwb_mbfw_time_picker_frontend').datetimepicker({
format : 'H:i',
datepicker : false,
diff --git a/includes/class-mwb-bookings-for-woocommerce.php b/includes/class-mwb-bookings-for-woocommerce.php
index ec3a737..2138f39 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.5';
+ $this->version = '3.0.6';
}
$this->plugin_name = 'bookings-for-woocommerce';
@@ -244,6 +244,8 @@ private function mwb_bookings_for_woocommerce_admin_hooks() {
$this->loader->add_action( 'pre_get_posts', $mbfw_plugin_admin, 'mbfw_vary_query_to_list_only_booking_types' );
$this->loader->add_action( 'woocommerce_hidden_order_itemmeta', $mbfw_plugin_admin, 'mbfw_hide_order_item_meta_data' );
$this->loader->add_filter( 'woocommerce_order_item_display_meta_key', $mbfw_plugin_admin, 'mbfw_change_line_item_meta_key_order_edit_page', 10, 3 );
+ $this->loader->add_action('woocommerce_before_calculate_totals', $mbfw_plugin_admin, 'wps_mbfw_change_cart_item_quantities', 20, 1 );
+
}
$this->loader->add_action( 'wp_ajax_mwb_mbfw_get_all_events_date', $mbfw_plugin_admin, 'mwb_mbfw_get_all_events_date' );
}
@@ -302,7 +304,13 @@ private function mwb_bookings_for_woocommerce_public_hooks() {
$this->loader->add_action( 'mwb_mbfw_add_calender_or_time_selector_for_booking', $mbfw_plugin_public, 'mwb_mbfw_show_date_time_selector_on_single_product_page', 10, 2 );
$this->loader->add_filter( 'woocommerce_quantity_input_args', $mbfw_plugin_public, 'mwb_mbfw_set_max_quantity_to_be_booked_by_individual', 10, 2 );
$this->loader->add_action('mwb_booking_before_add_to_cart_button', $mbfw_plugin_public, 'mwb_mbfw_show_location_on_map', 10, 1 );
-
+ $this->loader->add_action( 'init', $mbfw_plugin_public, 'wps_my_bookings_register_endpoint' );
+ // Add query variable.
+ $this->loader->add_action( 'query_vars', $mbfw_plugin_public, 'wps_mybookings_endpoint_query_var', 0 );
+ // Inserting custom My Event tab.
+ $this->loader->add_action( 'woocommerce_account_menu_items', $mbfw_plugin_public, 'wps_bookings_add_mybookings_tab',1,1 );
+ // Populate mmbership details tab.
+ $this->loader->add_action( 'woocommerce_account_wps-mybookings-tab_endpoint', $mbfw_plugin_public, 'wps_mybookings_populate_tab' );
}
}
diff --git a/languages/mwb-bookings-for-woocommerce-en_US.mo b/languages/mwb-bookings-for-woocommerce-en_US.mo
index 2c74d66..fb731d4 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 a054b4f..41b4bbf 100644
--- a/languages/mwb-bookings-for-woocommerce-en_US.po
+++ b/languages/mwb-bookings-for-woocommerce-en_US.po
@@ -1,17 +1,22 @@
msgid ""
msgstr ""
-"Project-Id-Version: \n"
-"POT-Creation-Date: 2022-12-05 15:49+0530\n"
-"PO-Revision-Date: 2022-12-09 16:23+0530\n"
+"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"
"Last-Translator: \n"
-"Language-Team: \n"
+"Language-Team: WP Swings\n"
"Language: en_US\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
-"X-Generator: Poedit 2.3\n"
-"X-Poedit-Basepath: .\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
+"X-Generator: Poedit 3.2.2\n"
+"X-Poedit-Basepath: ..\n"
+"X-Poedit-SourceCharset: UTF-8\n"
+"X-Poedit-KeywordsList: __;_e;_n;_x;_ex;_nx;esc_attr__;esc_attr_e;esc_attr_x;"
+"esc_html;esc_html__;esc_html_e;esc_html_x;_n_noop;_nx_noop;"
+"translate_nooped_plural\n"
+"X-Poedit-SearchPath-0: .\n"
#: admin/class-mwb-bookings-for-woocommerce-admin.php:115
msgid "Today"
@@ -59,12 +64,12 @@ msgstr ""
#: admin/class-mwb-bookings-for-woocommerce-admin.php:354
#: admin/class-mwb-bookings-for-woocommerce-admin.php:409
-#: admin/class-mwb-bookings-for-woocommerce-admin.php:453
+#: admin/class-mwb-bookings-for-woocommerce-admin.php:463
msgid "Save Settings"
msgstr ""
#: admin/class-mwb-bookings-for-woocommerce-admin.php:370
-#: includes/class-mwb-bookings-for-woocommerce.php:428
+#: includes/class-mwb-bookings-for-woocommerce.php:436
msgid "Booking Form Settings"
msgstr ""
@@ -95,441 +100,459 @@ msgid ""
"quantities while booking."
msgstr ""
-#: admin/class-mwb-bookings-for-woocommerce-admin.php:425
-msgid "Daily Start Time"
+#: admin/class-mwb-bookings-for-woocommerce-admin.php:426
+msgid "Enable availability setting"
msgstr ""
#: admin/class-mwb-bookings-for-woocommerce-admin.php:431
msgid ""
+"Enable this to apply availability setting for your product, Your Product "
+"will appear only in available time set up by you."
+msgstr ""
+
+#: admin/class-mwb-bookings-for-woocommerce-admin.php:435
+msgid "Daily Start Time"
+msgstr ""
+
+#: admin/class-mwb-bookings-for-woocommerce-admin.php:441
+msgid ""
"Please choose daily start time, users will be able to book from this time."
msgstr ""
-#: admin/class-mwb-bookings-for-woocommerce-admin.php:434
+#: admin/class-mwb-bookings-for-woocommerce-admin.php:444
msgid "Daily End Time"
msgstr ""
-#: admin/class-mwb-bookings-for-woocommerce-admin.php:440
+#: admin/class-mwb-bookings-for-woocommerce-admin.php:450
msgid ""
"Please choose daily end time, bookings will be closed for users after this "
"time."
msgstr ""
-#: admin/class-mwb-bookings-for-woocommerce-admin.php:552
+#: admin/class-mwb-bookings-for-woocommerce-admin.php:563
msgid "Id of some field is missing"
msgstr ""
-#: admin/class-mwb-bookings-for-woocommerce-admin.php:555
+#: admin/class-mwb-bookings-for-woocommerce-admin.php:566
msgid "Settings saved Successfully"
msgstr ""
-#: admin/class-mwb-bookings-for-woocommerce-admin.php:569
+#: admin/class-mwb-bookings-for-woocommerce-admin.php:580
msgid "Booking product"
msgstr ""
-#: admin/class-mwb-bookings-for-woocommerce-admin.php:589
-#: includes/class-mwb-bookings-for-woocommerce.php:381
+#: admin/class-mwb-bookings-for-woocommerce-admin.php:600
+#: includes/class-mwb-bookings-for-woocommerce.php:389
msgid "General Settings"
msgstr ""
-#: admin/class-mwb-bookings-for-woocommerce-admin.php:595
+#: admin/class-mwb-bookings-for-woocommerce-admin.php:606
msgid "Costs"
msgstr ""
-#: admin/class-mwb-bookings-for-woocommerce-admin.php:601
-#: admin/class-mwb-bookings-for-woocommerce-admin.php:1191
-#: admin/class-mwb-bookings-for-woocommerce-admin.php:1414
-#: common/class-mwb-bookings-for-woocommerce-common.php:649
-#: public/class-mwb-bookings-for-woocommerce-public.php:332
+#: admin/class-mwb-bookings-for-woocommerce-admin.php:612
+#: 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/templates/mwb-bookings-for-woocommerce-public-show-people-option.php:21
msgid "People"
msgstr ""
-#: admin/class-mwb-bookings-for-woocommerce-admin.php:607
+#: admin/class-mwb-bookings-for-woocommerce-admin.php:618
#: mwb-bookings-for-woocommerce.php:189
msgid "Services"
msgstr ""
-#: admin/class-mwb-bookings-for-woocommerce-admin.php:613
+#: admin/class-mwb-bookings-for-woocommerce-admin.php:624
msgid "Availability"
msgstr ""
-#: admin/class-mwb-bookings-for-woocommerce-admin.php:634
-#: admin/class-mwb-bookings-for-woocommerce-admin.php:1418
+#: admin/class-mwb-bookings-for-woocommerce-admin.php:645
+#: admin/class-mwb-bookings-for-woocommerce-admin.php:1451
msgid "Quantity"
msgstr ""
-#: admin/class-mwb-bookings-for-woocommerce-admin.php:636
+#: admin/class-mwb-bookings-for-woocommerce-admin.php:647
msgid "Customers can choose"
msgstr ""
-#: admin/class-mwb-bookings-for-woocommerce-admin.php:637
+#: admin/class-mwb-bookings-for-woocommerce-admin.php:648
msgid "Fixed unit"
msgstr ""
-#: admin/class-mwb-bookings-for-woocommerce-admin.php:640
+#: admin/class-mwb-bookings-for-woocommerce-admin.php:651
msgid ""
"Please choose the booking criteria. if fixed please enter the fixed number, "
"else if customers can choose please choose the maximum number a user can "
"book."
msgstr ""
-#: admin/class-mwb-bookings-for-woocommerce-admin.php:645
+#: admin/class-mwb-bookings-for-woocommerce-admin.php:656
msgid "Max. Booking Per User"
msgstr ""
-#: admin/class-mwb-bookings-for-woocommerce-admin.php:648
+#: admin/class-mwb-bookings-for-woocommerce-admin.php:659
msgid "Maximum quantity of this product/service a user can book."
msgstr ""
-#: admin/class-mwb-bookings-for-woocommerce-admin.php:663
+#: admin/class-mwb-bookings-for-woocommerce-admin.php:674
msgid "Booking Confirmation"
msgstr ""
-#: admin/class-mwb-bookings-for-woocommerce-admin.php:664
+#: admin/class-mwb-bookings-for-woocommerce-admin.php:675
msgid "Booking confirmation required by admin."
msgstr ""
-#: admin/class-mwb-bookings-for-woocommerce-admin.php:672
+#: admin/class-mwb-bookings-for-woocommerce-admin.php:683
msgid "Cancellation Allowed"
msgstr ""
-#: admin/class-mwb-bookings-for-woocommerce-admin.php:673
+#: admin/class-mwb-bookings-for-woocommerce-admin.php:684
msgid ""
"When you enable this option, your users will be able to effortlessly cancel "
"any booking requests they previously placed."
msgstr ""
-#: admin/class-mwb-bookings-for-woocommerce-admin.php:686
+#: admin/class-mwb-bookings-for-woocommerce-admin.php:698
msgid "Order statuses"
msgstr ""
-#: admin/class-mwb-bookings-for-woocommerce-admin.php:690
+#: admin/class-mwb-bookings-for-woocommerce-admin.php:702
msgid ""
"Please select the desired order statuses at which the orders can be "
"cancelled by users."
msgstr ""
-#: admin/class-mwb-bookings-for-woocommerce-admin.php:700
+#: admin/class-mwb-bookings-for-woocommerce-admin.php:712
msgid "Booking Unit"
msgstr ""
-#: admin/class-mwb-bookings-for-woocommerce-admin.php:705
+#: admin/class-mwb-bookings-for-woocommerce-admin.php:717
msgid "Please select booking unit to consider while booking."
msgstr ""
-#: admin/class-mwb-bookings-for-woocommerce-admin.php:707
+#: admin/class-mwb-bookings-for-woocommerce-admin.php:719
msgid "Day(s)"
msgstr ""
-#: admin/class-mwb-bookings-for-woocommerce-admin.php:708
+#: admin/class-mwb-bookings-for-woocommerce-admin.php:720
msgid "Hour(s)"
msgstr ""
-#: admin/class-mwb-bookings-for-woocommerce-admin.php:718
+#: admin/class-mwb-bookings-for-woocommerce-admin.php:731
msgid "Enable to show time with date on calender"
msgstr ""
-#: admin/class-mwb-bookings-for-woocommerce-admin.php:719
+#: admin/class-mwb-bookings-for-woocommerce-admin.php:732
msgid ""
"This option would enable to show time with dates on calendar on the site ( a "
"calendar will be shown while booking )."
msgstr ""
-#: admin/class-mwb-bookings-for-woocommerce-admin.php:725
+#: admin/class-mwb-bookings-for-woocommerce-admin.php:738
msgid "Daily booking start time on calendar"
msgstr ""
-#: admin/class-mwb-bookings-for-woocommerce-admin.php:729
+#: admin/class-mwb-bookings-for-woocommerce-admin.php:742
msgid "Set daily booking start time on frond end"
msgstr ""
-#: admin/class-mwb-bookings-for-woocommerce-admin.php:737
+#: admin/class-mwb-bookings-for-woocommerce-admin.php:750
msgid "Daily booking end time on calendar"
msgstr ""
-#: admin/class-mwb-bookings-for-woocommerce-admin.php:741
+#: admin/class-mwb-bookings-for-woocommerce-admin.php:754
msgid "Set daily booking end time on frond end"
msgstr ""
-#: admin/class-mwb-bookings-for-woocommerce-admin.php:762
+#: admin/class-mwb-bookings-for-woocommerce-admin.php:775
msgid "Booking Unit Cost"
msgstr ""
-#: admin/class-mwb-bookings-for-woocommerce-admin.php:763
+#: admin/class-mwb-bookings-for-woocommerce-admin.php:776
msgid ""
"Enter unit cost i.e. the booking unit cost for the particular service that "
"you’re opting to book for."
msgstr ""
-#: admin/class-mwb-bookings-for-woocommerce-admin.php:774
+#: admin/class-mwb-bookings-for-woocommerce-admin.php:787
msgid "Booking Unit Cost Per People"
msgstr ""
-#: admin/class-mwb-bookings-for-woocommerce-admin.php:775
+#: admin/class-mwb-bookings-for-woocommerce-admin.php:788
msgid ""
"Enabling this would determine your booking unit cost multiplied by number of "
"people."
msgstr ""
-#: admin/class-mwb-bookings-for-woocommerce-admin.php:783
-#: common/class-mwb-bookings-for-woocommerce-common.php:398
+#: admin/class-mwb-bookings-for-woocommerce-admin.php:796
+#: common/class-mwb-bookings-for-woocommerce-common.php:405
msgid "Base Cost"
msgstr ""
-#: admin/class-mwb-bookings-for-woocommerce-admin.php:784
+#: admin/class-mwb-bookings-for-woocommerce-admin.php:797
msgid ""
"Enter base cost i.e. the base rental cost for the service that you’re opting "
"to book for. "
msgstr ""
-#: admin/class-mwb-bookings-for-woocommerce-admin.php:795
+#: admin/class-mwb-bookings-for-woocommerce-admin.php:808
msgid "Base Cost Per People"
msgstr ""
-#: admin/class-mwb-bookings-for-woocommerce-admin.php:796
+#: admin/class-mwb-bookings-for-woocommerce-admin.php:809
msgid ""
"Enabling this would determine your booking base cost multiplied by number of "
"people."
msgstr ""
-#: admin/class-mwb-bookings-for-woocommerce-admin.php:805
+#: admin/class-mwb-bookings-for-woocommerce-admin.php:818
#, php-format
msgid ""
"To Add Additional cost Please add Booking costs in the Booking costs "
"taxonomy %s , and select Booking costs tags."
msgstr ""
-#: admin/class-mwb-bookings-for-woocommerce-admin.php:823
+#: admin/class-mwb-bookings-for-woocommerce-admin.php:836
msgid "Enable People Option"
msgstr ""
-#: admin/class-mwb-bookings-for-woocommerce-admin.php:826
+#: admin/class-mwb-bookings-for-woocommerce-admin.php:839
msgid "People Option will be Visible While Booking."
msgstr ""
-#: admin/class-mwb-bookings-for-woocommerce-admin.php:835
+#: admin/class-mwb-bookings-for-woocommerce-admin.php:848
msgid "Minimum No. of People"
msgstr ""
-#: admin/class-mwb-bookings-for-woocommerce-admin.php:836
+#: admin/class-mwb-bookings-for-woocommerce-admin.php:849
msgid "Minimum Number of People Per Booking"
msgstr ""
-#: admin/class-mwb-bookings-for-woocommerce-admin.php:847
+#: admin/class-mwb-bookings-for-woocommerce-admin.php:860
msgid "Maximum No. of People"
msgstr ""
-#: admin/class-mwb-bookings-for-woocommerce-admin.php:848
+#: admin/class-mwb-bookings-for-woocommerce-admin.php:861
msgid "Maximum Number of People Per Booking"
msgstr ""
-#: admin/class-mwb-bookings-for-woocommerce-admin.php:866
+#: admin/class-mwb-bookings-for-woocommerce-admin.php:879
msgid "Add Extra Services"
msgstr ""
-#: admin/class-mwb-bookings-for-woocommerce-admin.php:869
+#: admin/class-mwb-bookings-for-woocommerce-admin.php:882
msgid "Add Extra Services, will be chosen by Customer while Booking."
msgstr ""
-#: admin/class-mwb-bookings-for-woocommerce-admin.php:878
+#: admin/class-mwb-bookings-for-woocommerce-admin.php:891
#, php-format
msgid ""
"To Add Additional Services Please add Booking Services in the Booking "
"Services taxonomy %s and select Services taxonomy from tag."
msgstr ""
-#: admin/class-mwb-bookings-for-woocommerce-admin.php:897
+#: admin/class-mwb-bookings-for-woocommerce-admin.php:905
+msgid "Choose Upcoming Holiday to disable booking on that day"
+msgstr ""
+
+#: admin/class-mwb-bookings-for-woocommerce-admin.php:908
+msgid "Bookings will be unavailable on that day."
+msgstr ""
+
+#: admin/class-mwb-bookings-for-woocommerce-admin.php:928
#, php-format
msgid "To Choose daily start time and end time please %s."
msgstr ""
-#: admin/class-mwb-bookings-for-woocommerce-admin.php:898
+#: admin/class-mwb-bookings-for-woocommerce-admin.php:929
msgid "visit here"
msgstr ""
-#: admin/class-mwb-bookings-for-woocommerce-admin.php:1025
-#: admin/class-mwb-bookings-for-woocommerce-admin.php:1134
+#: admin/class-mwb-bookings-for-woocommerce-admin.php:1058
+#: admin/class-mwb-bookings-for-woocommerce-admin.php:1167
msgid "Booking Cost"
msgstr ""
-#: admin/class-mwb-bookings-for-woocommerce-admin.php:1026
+#: admin/class-mwb-bookings-for-woocommerce-admin.php:1059
msgid "Please Add Booking cost here."
msgstr ""
-#: admin/class-mwb-bookings-for-woocommerce-admin.php:1030
-#: admin/class-mwb-bookings-for-woocommerce-admin.php:1143
-#: admin/class-mwb-bookings-for-woocommerce-admin.php:1316
+#: admin/class-mwb-bookings-for-woocommerce-admin.php:1063
+#: admin/class-mwb-bookings-for-woocommerce-admin.php:1176
+#: admin/class-mwb-bookings-for-woocommerce-admin.php:1349
msgid "Multiply by No. of People"
msgstr ""
-#: admin/class-mwb-bookings-for-woocommerce-admin.php:1034
-#: admin/class-mwb-bookings-for-woocommerce-admin.php:1146
-#: admin/class-mwb-bookings-for-woocommerce-admin.php:1242
-#: admin/class-mwb-bookings-for-woocommerce-admin.php:1319
+#: admin/class-mwb-bookings-for-woocommerce-admin.php:1067
+#: admin/class-mwb-bookings-for-woocommerce-admin.php:1179
+#: admin/class-mwb-bookings-for-woocommerce-admin.php:1275
+#: admin/class-mwb-bookings-for-woocommerce-admin.php:1352
msgid "Either to multiply by number of people."
msgstr ""
-#: admin/class-mwb-bookings-for-woocommerce-admin.php:1037
+#: admin/class-mwb-bookings-for-woocommerce-admin.php:1070
msgid "Multiply by Duration"
msgstr ""
-#: admin/class-mwb-bookings-for-woocommerce-admin.php:1041
-#: admin/class-mwb-bookings-for-woocommerce-admin.php:1154
-#: admin/class-mwb-bookings-for-woocommerce-admin.php:1327
+#: admin/class-mwb-bookings-for-woocommerce-admin.php:1074
+#: admin/class-mwb-bookings-for-woocommerce-admin.php:1187
+#: admin/class-mwb-bookings-for-woocommerce-admin.php:1360
msgid "Either to multiply by Duration of Booking."
msgstr ""
-#: admin/class-mwb-bookings-for-woocommerce-admin.php:1070
-#: admin/class-mwb-bookings-for-woocommerce-admin.php:1107
+#: admin/class-mwb-bookings-for-woocommerce-admin.php:1103
+#: admin/class-mwb-bookings-for-woocommerce-admin.php:1140
msgid "="
msgstr ""
-#: admin/class-mwb-bookings-for-woocommerce-admin.php:1137
+#: admin/class-mwb-bookings-for-woocommerce-admin.php:1170
msgid "Please Add booking cost here."
msgstr ""
-#: admin/class-mwb-bookings-for-woocommerce-admin.php:1151
+#: admin/class-mwb-bookings-for-woocommerce-admin.php:1184
msgid "Multiply by Duration of Booking"
msgstr ""
-#: admin/class-mwb-bookings-for-woocommerce-admin.php:1190
-#: admin/class-mwb-bookings-for-woocommerce-admin.php:1413
+#: admin/class-mwb-bookings-for-woocommerce-admin.php:1223
+#: admin/class-mwb-bookings-for-woocommerce-admin.php:1446
msgid "Cost"
msgstr ""
-#: admin/class-mwb-bookings-for-woocommerce-admin.php:1192
-#: admin/class-mwb-bookings-for-woocommerce-admin.php:1415
+#: admin/class-mwb-bookings-for-woocommerce-admin.php:1225
+#: admin/class-mwb-bookings-for-woocommerce-admin.php:1448
msgid "Duration"
msgstr ""
-#: admin/class-mwb-bookings-for-woocommerce-admin.php:1233
-#: admin/class-mwb-bookings-for-woocommerce-admin.php:1307
-#: common/class-mwb-bookings-for-woocommerce-common.php:394
+#: admin/class-mwb-bookings-for-woocommerce-admin.php:1266
+#: admin/class-mwb-bookings-for-woocommerce-admin.php:1340
+#: common/class-mwb-bookings-for-woocommerce-common.php:401
msgid "Service Cost"
msgstr ""
-#: admin/class-mwb-bookings-for-woocommerce-admin.php:1234
-#: admin/class-mwb-bookings-for-woocommerce-admin.php:1310
+#: admin/class-mwb-bookings-for-woocommerce-admin.php:1267
+#: admin/class-mwb-bookings-for-woocommerce-admin.php:1343
msgid "Please Add service cost here."
msgstr ""
-#: admin/class-mwb-bookings-for-woocommerce-admin.php:1238
+#: admin/class-mwb-bookings-for-woocommerce-admin.php:1271
msgid "Multiply by Number of People"
msgstr ""
-#: admin/class-mwb-bookings-for-woocommerce-admin.php:1245
-#: admin/class-mwb-bookings-for-woocommerce-admin.php:1324
+#: admin/class-mwb-bookings-for-woocommerce-admin.php:1278
+#: admin/class-mwb-bookings-for-woocommerce-admin.php:1357
msgid "Multiply by Booking Duration"
msgstr ""
-#: admin/class-mwb-bookings-for-woocommerce-admin.php:1249
+#: admin/class-mwb-bookings-for-woocommerce-admin.php:1282
msgid "Either to multiply by Booking Duration."
msgstr ""
-#: admin/class-mwb-bookings-for-woocommerce-admin.php:1252
-#: admin/class-mwb-bookings-for-woocommerce-admin.php:1332
+#: admin/class-mwb-bookings-for-woocommerce-admin.php:1285
+#: admin/class-mwb-bookings-for-woocommerce-admin.php:1365
msgid "If Optional"
msgstr ""
-#: admin/class-mwb-bookings-for-woocommerce-admin.php:1256
-#: admin/class-mwb-bookings-for-woocommerce-admin.php:1335
+#: admin/class-mwb-bookings-for-woocommerce-admin.php:1289
+#: admin/class-mwb-bookings-for-woocommerce-admin.php:1368
msgid "Either the Service is Optional."
msgstr ""
-#: admin/class-mwb-bookings-for-woocommerce-admin.php:1259
-#: admin/class-mwb-bookings-for-woocommerce-admin.php:1340
+#: admin/class-mwb-bookings-for-woocommerce-admin.php:1292
+#: admin/class-mwb-bookings-for-woocommerce-admin.php:1373
msgid "If Hidden"
msgstr ""
-#: admin/class-mwb-bookings-for-woocommerce-admin.php:1263
-#: admin/class-mwb-bookings-for-woocommerce-admin.php:1343
+#: admin/class-mwb-bookings-for-woocommerce-admin.php:1296
+#: admin/class-mwb-bookings-for-woocommerce-admin.php:1376
msgid "Either the Service is Hidden."
msgstr ""
-#: admin/class-mwb-bookings-for-woocommerce-admin.php:1266
-#: admin/class-mwb-bookings-for-woocommerce-admin.php:1348
+#: admin/class-mwb-bookings-for-woocommerce-admin.php:1299
+#: admin/class-mwb-bookings-for-woocommerce-admin.php:1381
msgid "If has Quantity"
msgstr ""
-#: admin/class-mwb-bookings-for-woocommerce-admin.php:1270
+#: admin/class-mwb-bookings-for-woocommerce-admin.php:1303
msgid "Either the service has quantity."
msgstr ""
-#: admin/class-mwb-bookings-for-woocommerce-admin.php:1276
-#: admin/class-mwb-bookings-for-woocommerce-admin.php:1356
+#: admin/class-mwb-bookings-for-woocommerce-admin.php:1309
+#: admin/class-mwb-bookings-for-woocommerce-admin.php:1389
msgid "Minimum Quantity"
msgstr ""
-#: admin/class-mwb-bookings-for-woocommerce-admin.php:1277
-#: admin/class-mwb-bookings-for-woocommerce-admin.php:1359
+#: admin/class-mwb-bookings-for-woocommerce-admin.php:1310
+#: admin/class-mwb-bookings-for-woocommerce-admin.php:1392
msgid "Please Add Minimum Quantity of the Service Bookable."
msgstr ""
-#: admin/class-mwb-bookings-for-woocommerce-admin.php:1285
-#: admin/class-mwb-bookings-for-woocommerce-admin.php:1366
+#: admin/class-mwb-bookings-for-woocommerce-admin.php:1318
+#: admin/class-mwb-bookings-for-woocommerce-admin.php:1399
msgid "Maximum Quantity"
msgstr ""
-#: admin/class-mwb-bookings-for-woocommerce-admin.php:1286
+#: admin/class-mwb-bookings-for-woocommerce-admin.php:1319
msgid "Please Add Maximum Quantity of the Service Bookable."
msgstr ""
-#: admin/class-mwb-bookings-for-woocommerce-admin.php:1351
+#: admin/class-mwb-bookings-for-woocommerce-admin.php:1384
msgid "Either the Service has Quantity."
msgstr ""
-#: admin/class-mwb-bookings-for-woocommerce-admin.php:1369
+#: admin/class-mwb-bookings-for-woocommerce-admin.php:1402
msgid "Please Add Maximum Quantity."
msgstr ""
-#: admin/class-mwb-bookings-for-woocommerce-admin.php:1416
+#: admin/class-mwb-bookings-for-woocommerce-admin.php:1449
msgid "Optional"
msgstr ""
-#: admin/class-mwb-bookings-for-woocommerce-admin.php:1417
+#: admin/class-mwb-bookings-for-woocommerce-admin.php:1450
msgid "Hidden"
msgstr ""
-#: admin/class-mwb-bookings-for-woocommerce-admin.php:1464
-#: includes/class-mwb-bookings-for-woocommerce.php:736
+#: admin/class-mwb-bookings-for-woocommerce-admin.php:1497
+#: includes/class-mwb-bookings-for-woocommerce.php:744
msgid "yes"
msgstr ""
-#: admin/class-mwb-bookings-for-woocommerce-admin.php:1466
+#: admin/class-mwb-bookings-for-woocommerce-admin.php:1499
msgid "no"
msgstr ""
-#: admin/class-mwb-bookings-for-woocommerce-admin.php:1481
+#: admin/class-mwb-bookings-for-woocommerce-admin.php:1514
msgid "This order contains Booking Service/Product."
msgstr ""
-#: admin/class-mwb-bookings-for-woocommerce-admin.php:1482
+#: admin/class-mwb-bookings-for-woocommerce-admin.php:1515
msgid "Booking Order"
msgstr ""
-#: admin/class-mwb-bookings-for-woocommerce-admin.php:1503
+#: admin/class-mwb-bookings-for-woocommerce-admin.php:1536
msgid "choose filter.."
msgstr ""
-#: admin/class-mwb-bookings-for-woocommerce-admin.php:1506
+#: admin/class-mwb-bookings-for-woocommerce-admin.php:1539
msgid "Filter by Booking"
msgstr ""
-#: admin/class-mwb-bookings-for-woocommerce-admin.php:1568
-#: common/class-mwb-bookings-for-woocommerce-common.php:689
-#: public/class-mwb-bookings-for-woocommerce-public.php:249
-#: public/class-mwb-bookings-for-woocommerce-public.php:259
-#: public/class-mwb-bookings-for-woocommerce-public.php:272
-#: public/class-mwb-bookings-for-woocommerce-public.php:365
+#: 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
msgid "From"
msgstr ""
-#: admin/class-mwb-bookings-for-woocommerce-admin.php:1570
-#: common/class-mwb-bookings-for-woocommerce-common.php:692
-#: public/class-mwb-bookings-for-woocommerce-public.php:250
-#: public/class-mwb-bookings-for-woocommerce-public.php:260
-#: public/class-mwb-bookings-for-woocommerce-public.php:276
-#: public/class-mwb-bookings-for-woocommerce-public.php:369
+#: 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
msgid "To"
msgstr ""
@@ -761,7 +784,7 @@ msgid ""
msgstr ""
#: common/class-mwb-bookings-for-woocommerce-common.php:101
-#: common/class-mwb-bookings-for-woocommerce-common.php:406
+#: common/class-mwb-bookings-for-woocommerce-common.php:413
msgid "Additional Costs"
msgstr ""
@@ -874,31 +897,32 @@ msgstr ""
msgid "List All Bookings"
msgstr ""
-#: common/class-mwb-bookings-for-woocommerce-common.php:402
+#: common/class-mwb-bookings-for-woocommerce-common.php:409
msgid "General Cost"
msgstr ""
-#: common/class-mwb-bookings-for-woocommerce-common.php:451
+#: common/class-mwb-bookings-for-woocommerce-common.php:458
msgid "/day"
msgstr ""
-#: common/class-mwb-bookings-for-woocommerce-common.php:456
+#: common/class-mwb-bookings-for-woocommerce-common.php:463
msgid "/hour"
msgstr ""
-#: common/class-mwb-bookings-for-woocommerce-common.php:475
+#: common/class-mwb-bookings-for-woocommerce-common.php:482
+#: public/partials/wps-mybookings-details-tab.php:18
msgid "Total"
msgstr ""
-#: common/class-mwb-bookings-for-woocommerce-common.php:599
+#: common/class-mwb-bookings-for-woocommerce-common.php:617
msgid "confirmation required from admin."
msgstr ""
-#: common/class-mwb-bookings-for-woocommerce-common.php:668
+#: common/class-mwb-bookings-for-woocommerce-common.php:686
msgid "Service(s)"
msgstr ""
-#: common/class-mwb-bookings-for-woocommerce-common.php:677
+#: common/class-mwb-bookings-for-woocommerce-common.php:695
msgid "( "
msgstr ""
@@ -939,38 +963,38 @@ msgstr ""
msgid "Reason"
msgstr ""
-#: includes/class-mwb-bookings-for-woocommerce-onboarding-steps.php:736
+#: includes/class-mwb-bookings-for-woocommerce-onboarding-steps.php:737
msgid "Unexpected Error Occured"
msgstr ""
-#: includes/class-mwb-bookings-for-woocommerce.php:387
+#: includes/class-mwb-bookings-for-woocommerce.php:395
msgid "Configuration Settings"
msgstr ""
-#: includes/class-mwb-bookings-for-woocommerce.php:401
+#: includes/class-mwb-bookings-for-woocommerce.php:409
msgid "Bookings Calendar"
msgstr ""
-#: includes/class-mwb-bookings-for-woocommerce.php:407
+#: includes/class-mwb-bookings-for-woocommerce.php:415
msgid "Overview"
msgstr ""
-#: includes/class-mwb-bookings-for-woocommerce.php:413
+#: includes/class-mwb-bookings-for-woocommerce.php:421
msgid "Developer"
msgstr ""
-#: includes/class-mwb-bookings-for-woocommerce.php:434
+#: includes/class-mwb-bookings-for-woocommerce.php:442
msgid "Availability Settings"
msgstr ""
-#: includes/class-mwb-bookings-for-woocommerce.php:462
+#: includes/class-mwb-bookings-for-woocommerce.php:470
#, php-format
msgid ""
"Unable to locate file at location \"%s\". Some features may not work "
"properly in this plugin. Please contact us!"
msgstr ""
-#: includes/class-mwb-bookings-for-woocommerce.php:847
+#: includes/class-mwb-bookings-for-woocommerce.php:855
msgid "Availability by Days"
msgstr ""
@@ -979,11 +1003,11 @@ msgid "Book Now"
msgstr ""
#: includes/class-wc-product-mwb-booking.php:89
-#: public/class-mwb-bookings-for-woocommerce-public.php:393
+#: public/class-mwb-bookings-for-woocommerce-public.php:411
msgid "View Details"
msgstr ""
-#: includes/class-wc-product-mwb-booking.php:156
+#: includes/class-wc-product-mwb-booking.php:157
#, php-format
msgid "Book “%s”"
msgstr ""
@@ -1023,50 +1047,90 @@ msgstr ""
msgid "Skip and Deactivate Now"
msgstr ""
-#: onboarding/templates/mwb-bookings-for-woocommerce-onboarding-template.php:43
+#: onboarding/templates/mwb-bookings-for-woocommerce-onboarding-template.php:42
msgid "Welcome to WP Swings"
msgstr ""
-#: onboarding/templates/mwb-bookings-for-woocommerce-onboarding-template.php:44
+#: onboarding/templates/mwb-bookings-for-woocommerce-onboarding-template.php:43
msgid ""
"We love making new friends! Subscribe below and we promise to keep you up-to-"
"date with our latest new plugins, updates, awesome deals and a few special "
"offers."
msgstr ""
-#: onboarding/templates/mwb-bookings-for-woocommerce-onboarding-template.php:56
+#: onboarding/templates/mwb-bookings-for-woocommerce-onboarding-template.php:55
msgid "Skip For Now"
msgstr ""
-#: public/class-mwb-bookings-for-woocommerce-public.php:88
+#: public/class-mwb-bookings-for-woocommerce-public.php:97
msgid "To date can not be less than from date."
msgstr ""
-#: public/class-mwb-bookings-for-woocommerce-public.php:89
+#: public/class-mwb-bookings-for-woocommerce-public.php:98
msgid "From date can not be greater than To date."
msgstr ""
-#: public/class-mwb-bookings-for-woocommerce-public.php:172
+#: public/class-mwb-bookings-for-woocommerce-public.php:189
msgid "Additional services"
msgstr ""
-#: public/class-mwb-bookings-for-woocommerce-public.php:254
+#: public/class-mwb-bookings-for-woocommerce-public.php:272
msgid "Check in"
msgstr ""
-#: public/class-mwb-bookings-for-woocommerce-public.php:255
+#: public/class-mwb-bookings-for-woocommerce-public.php:273
msgid "Check out"
msgstr ""
-#: public/class-mwb-bookings-for-woocommerce-public.php:343
-#: public/class-mwb-bookings-for-woocommerce-public.php:353
+#: public/class-mwb-bookings-for-woocommerce-public.php:361
+#: public/class-mwb-bookings-for-woocommerce-public.php:371
msgid "not found"
msgstr ""
-#: public/class-mwb-bookings-for-woocommerce-public.php:359
+#: public/class-mwb-bookings-for-woocommerce-public.php:377
msgid "Service"
msgstr ""
+#: public/class-mwb-bookings-for-woocommerce-public.php:559
+msgid "my bookings"
+msgstr ""
+
+#: public/partials/wps-mybookings-details-tab.php:15
+msgid "Order ID"
+msgstr ""
+
+#: public/partials/wps-mybookings-details-tab.php:16
+msgid "Booking Date"
+msgstr ""
+
+#: public/partials/wps-mybookings-details-tab.php:17
+msgid "Booking Status"
+msgstr ""
+
+#: public/partials/wps-mybookings-details-tab.php:19
+msgid "Actions"
+msgstr ""
+
+#: public/partials/wps-mybookings-details-tab.php:72
+msgid " To "
+msgstr ""
+
+#: public/partials/wps-mybookings-details-tab.php:76
+msgid "+ Add to Google Calendar"
+msgstr ""
+
+#: public/partials/wps-mybookings-details-tab.php:77
+msgid "/my-account/view-order/"
+msgstr ""
+
+#: public/partials/wps-mybookings-details-tab.php:77
+msgid "View"
+msgstr ""
+
+#: public/partials/wps-mybookings-details-tab.php:87
+msgid "No Bookings has been purchased yet."
+msgstr ""
+
#: public/templates/mwb-bookings-for-woocommerce-public-add-to-cart-form.php:67
msgid "Quantity : "
msgstr ""
diff --git a/languages/mwb-bookings-for-woocommerce.mo b/languages/mwb-bookings-for-woocommerce.mo
index cafe804..84cf937 100644
Binary files a/languages/mwb-bookings-for-woocommerce.mo and b/languages/mwb-bookings-for-woocommerce.mo differ
diff --git a/languages/mwb-bookings-for-woocommerce.pot b/languages/mwb-bookings-for-woocommerce.pot
index 1acc8c8..b071e30 100644
--- a/languages/mwb-bookings-for-woocommerce.pot
+++ b/languages/mwb-bookings-for-woocommerce.pot
@@ -1,17 +1,17 @@
msgid ""
msgstr ""
-"Project-Id-Version: Bookings For WooCommerce 3.0.4\n"
-"POT-Creation-Date: 2022-12-05 15:49+0530\n"
-"PO-Revision-Date: 2022-12-05 15:51+0530\n"
+"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:03+0530\n"
"Last-Translator: \n"
"Language-Team: WP Swings\n"
"Language: en_US\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
-"X-Generator: Poedit 2.3\n"
-"X-Poedit-Basepath: ..\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
+"X-Generator: Poedit 3.2.2\n"
+"X-Poedit-Basepath: ..\n"
"X-Poedit-SourceCharset: UTF-8\n"
"X-Poedit-KeywordsList: __;_e;_n;_x;_ex;_nx;esc_attr__;esc_attr_e;esc_attr_x;"
"esc_html;esc_html__;esc_html_e;esc_html_x;_n_noop;_nx_noop;"
@@ -64,12 +64,12 @@ msgstr ""
#: admin/class-mwb-bookings-for-woocommerce-admin.php:354
#: admin/class-mwb-bookings-for-woocommerce-admin.php:409
-#: admin/class-mwb-bookings-for-woocommerce-admin.php:453
+#: admin/class-mwb-bookings-for-woocommerce-admin.php:463
msgid "Save Settings"
msgstr ""
#: admin/class-mwb-bookings-for-woocommerce-admin.php:370
-#: includes/class-mwb-bookings-for-woocommerce.php:428
+#: includes/class-mwb-bookings-for-woocommerce.php:436
msgid "Booking Form Settings"
msgstr ""
@@ -100,441 +100,459 @@ msgid ""
"quantities while booking."
msgstr ""
-#: admin/class-mwb-bookings-for-woocommerce-admin.php:425
-msgid "Daily Start Time"
+#: admin/class-mwb-bookings-for-woocommerce-admin.php:426
+msgid "Enable availability setting"
msgstr ""
#: admin/class-mwb-bookings-for-woocommerce-admin.php:431
msgid ""
+"Enable this to apply availability setting for your product, Your Product "
+"will appear only in available time set up by you."
+msgstr ""
+
+#: admin/class-mwb-bookings-for-woocommerce-admin.php:435
+msgid "Daily Start Time"
+msgstr ""
+
+#: admin/class-mwb-bookings-for-woocommerce-admin.php:441
+msgid ""
"Please choose daily start time, users will be able to book from this time."
msgstr ""
-#: admin/class-mwb-bookings-for-woocommerce-admin.php:434
+#: admin/class-mwb-bookings-for-woocommerce-admin.php:444
msgid "Daily End Time"
msgstr ""
-#: admin/class-mwb-bookings-for-woocommerce-admin.php:440
+#: admin/class-mwb-bookings-for-woocommerce-admin.php:450
msgid ""
"Please choose daily end time, bookings will be closed for users after this "
"time."
msgstr ""
-#: admin/class-mwb-bookings-for-woocommerce-admin.php:552
+#: admin/class-mwb-bookings-for-woocommerce-admin.php:563
msgid "Id of some field is missing"
msgstr ""
-#: admin/class-mwb-bookings-for-woocommerce-admin.php:555
+#: admin/class-mwb-bookings-for-woocommerce-admin.php:566
msgid "Settings saved Successfully"
msgstr ""
-#: admin/class-mwb-bookings-for-woocommerce-admin.php:569
+#: admin/class-mwb-bookings-for-woocommerce-admin.php:580
msgid "Booking product"
msgstr ""
-#: admin/class-mwb-bookings-for-woocommerce-admin.php:589
-#: includes/class-mwb-bookings-for-woocommerce.php:381
+#: admin/class-mwb-bookings-for-woocommerce-admin.php:600
+#: includes/class-mwb-bookings-for-woocommerce.php:389
msgid "General Settings"
msgstr ""
-#: admin/class-mwb-bookings-for-woocommerce-admin.php:595
+#: admin/class-mwb-bookings-for-woocommerce-admin.php:606
msgid "Costs"
msgstr ""
-#: admin/class-mwb-bookings-for-woocommerce-admin.php:601
-#: admin/class-mwb-bookings-for-woocommerce-admin.php:1191
-#: admin/class-mwb-bookings-for-woocommerce-admin.php:1414
-#: common/class-mwb-bookings-for-woocommerce-common.php:649
-#: public/class-mwb-bookings-for-woocommerce-public.php:332
+#: admin/class-mwb-bookings-for-woocommerce-admin.php:612
+#: 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/templates/mwb-bookings-for-woocommerce-public-show-people-option.php:21
msgid "People"
msgstr ""
-#: admin/class-mwb-bookings-for-woocommerce-admin.php:607
+#: admin/class-mwb-bookings-for-woocommerce-admin.php:618
#: mwb-bookings-for-woocommerce.php:189
msgid "Services"
msgstr ""
-#: admin/class-mwb-bookings-for-woocommerce-admin.php:613
+#: admin/class-mwb-bookings-for-woocommerce-admin.php:624
msgid "Availability"
msgstr ""
-#: admin/class-mwb-bookings-for-woocommerce-admin.php:634
-#: admin/class-mwb-bookings-for-woocommerce-admin.php:1418
+#: admin/class-mwb-bookings-for-woocommerce-admin.php:645
+#: admin/class-mwb-bookings-for-woocommerce-admin.php:1451
msgid "Quantity"
msgstr ""
-#: admin/class-mwb-bookings-for-woocommerce-admin.php:636
+#: admin/class-mwb-bookings-for-woocommerce-admin.php:647
msgid "Customers can choose"
msgstr ""
-#: admin/class-mwb-bookings-for-woocommerce-admin.php:637
+#: admin/class-mwb-bookings-for-woocommerce-admin.php:648
msgid "Fixed unit"
msgstr ""
-#: admin/class-mwb-bookings-for-woocommerce-admin.php:640
+#: admin/class-mwb-bookings-for-woocommerce-admin.php:651
msgid ""
"Please choose the booking criteria. if fixed please enter the fixed number, "
"else if customers can choose please choose the maximum number a user can "
"book."
msgstr ""
-#: admin/class-mwb-bookings-for-woocommerce-admin.php:645
+#: admin/class-mwb-bookings-for-woocommerce-admin.php:656
msgid "Max. Booking Per User"
msgstr ""
-#: admin/class-mwb-bookings-for-woocommerce-admin.php:648
+#: admin/class-mwb-bookings-for-woocommerce-admin.php:659
msgid "Maximum quantity of this product/service a user can book."
msgstr ""
-#: admin/class-mwb-bookings-for-woocommerce-admin.php:663
+#: admin/class-mwb-bookings-for-woocommerce-admin.php:674
msgid "Booking Confirmation"
msgstr ""
-#: admin/class-mwb-bookings-for-woocommerce-admin.php:664
+#: admin/class-mwb-bookings-for-woocommerce-admin.php:675
msgid "Booking confirmation required by admin."
msgstr ""
-#: admin/class-mwb-bookings-for-woocommerce-admin.php:672
+#: admin/class-mwb-bookings-for-woocommerce-admin.php:683
msgid "Cancellation Allowed"
msgstr ""
-#: admin/class-mwb-bookings-for-woocommerce-admin.php:673
+#: admin/class-mwb-bookings-for-woocommerce-admin.php:684
msgid ""
"When you enable this option, your users will be able to effortlessly cancel "
"any booking requests they previously placed."
msgstr ""
-#: admin/class-mwb-bookings-for-woocommerce-admin.php:686
+#: admin/class-mwb-bookings-for-woocommerce-admin.php:698
msgid "Order statuses"
msgstr ""
-#: admin/class-mwb-bookings-for-woocommerce-admin.php:690
+#: admin/class-mwb-bookings-for-woocommerce-admin.php:702
msgid ""
"Please select the desired order statuses at which the orders can be "
"cancelled by users."
msgstr ""
-#: admin/class-mwb-bookings-for-woocommerce-admin.php:700
+#: admin/class-mwb-bookings-for-woocommerce-admin.php:712
msgid "Booking Unit"
msgstr ""
-#: admin/class-mwb-bookings-for-woocommerce-admin.php:705
+#: admin/class-mwb-bookings-for-woocommerce-admin.php:717
msgid "Please select booking unit to consider while booking."
msgstr ""
-#: admin/class-mwb-bookings-for-woocommerce-admin.php:707
+#: admin/class-mwb-bookings-for-woocommerce-admin.php:719
msgid "Day(s)"
msgstr ""
-#: admin/class-mwb-bookings-for-woocommerce-admin.php:708
+#: admin/class-mwb-bookings-for-woocommerce-admin.php:720
msgid "Hour(s)"
msgstr ""
-#: admin/class-mwb-bookings-for-woocommerce-admin.php:718
+#: admin/class-mwb-bookings-for-woocommerce-admin.php:731
msgid "Enable to show time with date on calender"
msgstr ""
-#: admin/class-mwb-bookings-for-woocommerce-admin.php:719
+#: admin/class-mwb-bookings-for-woocommerce-admin.php:732
msgid ""
"This option would enable to show time with dates on calendar on the site ( a "
"calendar will be shown while booking )."
msgstr ""
-#: admin/class-mwb-bookings-for-woocommerce-admin.php:725
+#: admin/class-mwb-bookings-for-woocommerce-admin.php:738
msgid "Daily booking start time on calendar"
msgstr ""
-#: admin/class-mwb-bookings-for-woocommerce-admin.php:729
+#: admin/class-mwb-bookings-for-woocommerce-admin.php:742
msgid "Set daily booking start time on frond end"
msgstr ""
-#: admin/class-mwb-bookings-for-woocommerce-admin.php:737
+#: admin/class-mwb-bookings-for-woocommerce-admin.php:750
msgid "Daily booking end time on calendar"
msgstr ""
-#: admin/class-mwb-bookings-for-woocommerce-admin.php:741
+#: admin/class-mwb-bookings-for-woocommerce-admin.php:754
msgid "Set daily booking end time on frond end"
msgstr ""
-#: admin/class-mwb-bookings-for-woocommerce-admin.php:762
+#: admin/class-mwb-bookings-for-woocommerce-admin.php:775
msgid "Booking Unit Cost"
msgstr ""
-#: admin/class-mwb-bookings-for-woocommerce-admin.php:763
+#: admin/class-mwb-bookings-for-woocommerce-admin.php:776
msgid ""
"Enter unit cost i.e. the booking unit cost for the particular service that "
"you’re opting to book for."
msgstr ""
-#: admin/class-mwb-bookings-for-woocommerce-admin.php:774
+#: admin/class-mwb-bookings-for-woocommerce-admin.php:787
msgid "Booking Unit Cost Per People"
msgstr ""
-#: admin/class-mwb-bookings-for-woocommerce-admin.php:775
+#: admin/class-mwb-bookings-for-woocommerce-admin.php:788
msgid ""
"Enabling this would determine your booking unit cost multiplied by number of "
"people."
msgstr ""
-#: admin/class-mwb-bookings-for-woocommerce-admin.php:783
-#: common/class-mwb-bookings-for-woocommerce-common.php:398
+#: admin/class-mwb-bookings-for-woocommerce-admin.php:796
+#: common/class-mwb-bookings-for-woocommerce-common.php:405
msgid "Base Cost"
msgstr ""
-#: admin/class-mwb-bookings-for-woocommerce-admin.php:784
+#: admin/class-mwb-bookings-for-woocommerce-admin.php:797
msgid ""
"Enter base cost i.e. the base rental cost for the service that you’re opting "
"to book for. "
msgstr ""
-#: admin/class-mwb-bookings-for-woocommerce-admin.php:795
+#: admin/class-mwb-bookings-for-woocommerce-admin.php:808
msgid "Base Cost Per People"
msgstr ""
-#: admin/class-mwb-bookings-for-woocommerce-admin.php:796
+#: admin/class-mwb-bookings-for-woocommerce-admin.php:809
msgid ""
"Enabling this would determine your booking base cost multiplied by number of "
"people."
msgstr ""
-#: admin/class-mwb-bookings-for-woocommerce-admin.php:805
+#: admin/class-mwb-bookings-for-woocommerce-admin.php:818
#, php-format
msgid ""
"To Add Additional cost Please add Booking costs in the Booking costs "
"taxonomy %s , and select Booking costs tags."
msgstr ""
-#: admin/class-mwb-bookings-for-woocommerce-admin.php:823
+#: admin/class-mwb-bookings-for-woocommerce-admin.php:836
msgid "Enable People Option"
msgstr ""
-#: admin/class-mwb-bookings-for-woocommerce-admin.php:826
+#: admin/class-mwb-bookings-for-woocommerce-admin.php:839
msgid "People Option will be Visible While Booking."
msgstr ""
-#: admin/class-mwb-bookings-for-woocommerce-admin.php:835
+#: admin/class-mwb-bookings-for-woocommerce-admin.php:848
msgid "Minimum No. of People"
msgstr ""
-#: admin/class-mwb-bookings-for-woocommerce-admin.php:836
+#: admin/class-mwb-bookings-for-woocommerce-admin.php:849
msgid "Minimum Number of People Per Booking"
msgstr ""
-#: admin/class-mwb-bookings-for-woocommerce-admin.php:847
+#: admin/class-mwb-bookings-for-woocommerce-admin.php:860
msgid "Maximum No. of People"
msgstr ""
-#: admin/class-mwb-bookings-for-woocommerce-admin.php:848
+#: admin/class-mwb-bookings-for-woocommerce-admin.php:861
msgid "Maximum Number of People Per Booking"
msgstr ""
-#: admin/class-mwb-bookings-for-woocommerce-admin.php:866
+#: admin/class-mwb-bookings-for-woocommerce-admin.php:879
msgid "Add Extra Services"
msgstr ""
-#: admin/class-mwb-bookings-for-woocommerce-admin.php:869
+#: admin/class-mwb-bookings-for-woocommerce-admin.php:882
msgid "Add Extra Services, will be chosen by Customer while Booking."
msgstr ""
-#: admin/class-mwb-bookings-for-woocommerce-admin.php:878
+#: admin/class-mwb-bookings-for-woocommerce-admin.php:891
#, php-format
msgid ""
"To Add Additional Services Please add Booking Services in the Booking "
"Services taxonomy %s and select Services taxonomy from tag."
msgstr ""
-#: admin/class-mwb-bookings-for-woocommerce-admin.php:897
+#: admin/class-mwb-bookings-for-woocommerce-admin.php:905
+msgid "Choose Upcoming Holiday to disable booking on that day"
+msgstr ""
+
+#: admin/class-mwb-bookings-for-woocommerce-admin.php:908
+msgid "Bookings will be unavailable on that day."
+msgstr ""
+
+#: admin/class-mwb-bookings-for-woocommerce-admin.php:928
#, php-format
msgid "To Choose daily start time and end time please %s."
msgstr ""
-#: admin/class-mwb-bookings-for-woocommerce-admin.php:898
+#: admin/class-mwb-bookings-for-woocommerce-admin.php:929
msgid "visit here"
msgstr ""
-#: admin/class-mwb-bookings-for-woocommerce-admin.php:1025
-#: admin/class-mwb-bookings-for-woocommerce-admin.php:1134
+#: admin/class-mwb-bookings-for-woocommerce-admin.php:1058
+#: admin/class-mwb-bookings-for-woocommerce-admin.php:1167
msgid "Booking Cost"
msgstr ""
-#: admin/class-mwb-bookings-for-woocommerce-admin.php:1026
+#: admin/class-mwb-bookings-for-woocommerce-admin.php:1059
msgid "Please Add Booking cost here."
msgstr ""
-#: admin/class-mwb-bookings-for-woocommerce-admin.php:1030
-#: admin/class-mwb-bookings-for-woocommerce-admin.php:1143
-#: admin/class-mwb-bookings-for-woocommerce-admin.php:1316
+#: admin/class-mwb-bookings-for-woocommerce-admin.php:1063
+#: admin/class-mwb-bookings-for-woocommerce-admin.php:1176
+#: admin/class-mwb-bookings-for-woocommerce-admin.php:1349
msgid "Multiply by No. of People"
msgstr ""
-#: admin/class-mwb-bookings-for-woocommerce-admin.php:1034
-#: admin/class-mwb-bookings-for-woocommerce-admin.php:1146
-#: admin/class-mwb-bookings-for-woocommerce-admin.php:1242
-#: admin/class-mwb-bookings-for-woocommerce-admin.php:1319
+#: admin/class-mwb-bookings-for-woocommerce-admin.php:1067
+#: admin/class-mwb-bookings-for-woocommerce-admin.php:1179
+#: admin/class-mwb-bookings-for-woocommerce-admin.php:1275
+#: admin/class-mwb-bookings-for-woocommerce-admin.php:1352
msgid "Either to multiply by number of people."
msgstr ""
-#: admin/class-mwb-bookings-for-woocommerce-admin.php:1037
+#: admin/class-mwb-bookings-for-woocommerce-admin.php:1070
msgid "Multiply by Duration"
msgstr ""
-#: admin/class-mwb-bookings-for-woocommerce-admin.php:1041
-#: admin/class-mwb-bookings-for-woocommerce-admin.php:1154
-#: admin/class-mwb-bookings-for-woocommerce-admin.php:1327
+#: admin/class-mwb-bookings-for-woocommerce-admin.php:1074
+#: admin/class-mwb-bookings-for-woocommerce-admin.php:1187
+#: admin/class-mwb-bookings-for-woocommerce-admin.php:1360
msgid "Either to multiply by Duration of Booking."
msgstr ""
-#: admin/class-mwb-bookings-for-woocommerce-admin.php:1070
-#: admin/class-mwb-bookings-for-woocommerce-admin.php:1107
+#: admin/class-mwb-bookings-for-woocommerce-admin.php:1103
+#: admin/class-mwb-bookings-for-woocommerce-admin.php:1140
msgid "="
msgstr ""
-#: admin/class-mwb-bookings-for-woocommerce-admin.php:1137
+#: admin/class-mwb-bookings-for-woocommerce-admin.php:1170
msgid "Please Add booking cost here."
msgstr ""
-#: admin/class-mwb-bookings-for-woocommerce-admin.php:1151
+#: admin/class-mwb-bookings-for-woocommerce-admin.php:1184
msgid "Multiply by Duration of Booking"
msgstr ""
-#: admin/class-mwb-bookings-for-woocommerce-admin.php:1190
-#: admin/class-mwb-bookings-for-woocommerce-admin.php:1413
+#: admin/class-mwb-bookings-for-woocommerce-admin.php:1223
+#: admin/class-mwb-bookings-for-woocommerce-admin.php:1446
msgid "Cost"
msgstr ""
-#: admin/class-mwb-bookings-for-woocommerce-admin.php:1192
-#: admin/class-mwb-bookings-for-woocommerce-admin.php:1415
+#: admin/class-mwb-bookings-for-woocommerce-admin.php:1225
+#: admin/class-mwb-bookings-for-woocommerce-admin.php:1448
msgid "Duration"
msgstr ""
-#: admin/class-mwb-bookings-for-woocommerce-admin.php:1233
-#: admin/class-mwb-bookings-for-woocommerce-admin.php:1307
-#: common/class-mwb-bookings-for-woocommerce-common.php:394
+#: admin/class-mwb-bookings-for-woocommerce-admin.php:1266
+#: admin/class-mwb-bookings-for-woocommerce-admin.php:1340
+#: common/class-mwb-bookings-for-woocommerce-common.php:401
msgid "Service Cost"
msgstr ""
-#: admin/class-mwb-bookings-for-woocommerce-admin.php:1234
-#: admin/class-mwb-bookings-for-woocommerce-admin.php:1310
+#: admin/class-mwb-bookings-for-woocommerce-admin.php:1267
+#: admin/class-mwb-bookings-for-woocommerce-admin.php:1343
msgid "Please Add service cost here."
msgstr ""
-#: admin/class-mwb-bookings-for-woocommerce-admin.php:1238
+#: admin/class-mwb-bookings-for-woocommerce-admin.php:1271
msgid "Multiply by Number of People"
msgstr ""
-#: admin/class-mwb-bookings-for-woocommerce-admin.php:1245
-#: admin/class-mwb-bookings-for-woocommerce-admin.php:1324
+#: admin/class-mwb-bookings-for-woocommerce-admin.php:1278
+#: admin/class-mwb-bookings-for-woocommerce-admin.php:1357
msgid "Multiply by Booking Duration"
msgstr ""
-#: admin/class-mwb-bookings-for-woocommerce-admin.php:1249
+#: admin/class-mwb-bookings-for-woocommerce-admin.php:1282
msgid "Either to multiply by Booking Duration."
msgstr ""
-#: admin/class-mwb-bookings-for-woocommerce-admin.php:1252
-#: admin/class-mwb-bookings-for-woocommerce-admin.php:1332
+#: admin/class-mwb-bookings-for-woocommerce-admin.php:1285
+#: admin/class-mwb-bookings-for-woocommerce-admin.php:1365
msgid "If Optional"
msgstr ""
-#: admin/class-mwb-bookings-for-woocommerce-admin.php:1256
-#: admin/class-mwb-bookings-for-woocommerce-admin.php:1335
+#: admin/class-mwb-bookings-for-woocommerce-admin.php:1289
+#: admin/class-mwb-bookings-for-woocommerce-admin.php:1368
msgid "Either the Service is Optional."
msgstr ""
-#: admin/class-mwb-bookings-for-woocommerce-admin.php:1259
-#: admin/class-mwb-bookings-for-woocommerce-admin.php:1340
+#: admin/class-mwb-bookings-for-woocommerce-admin.php:1292
+#: admin/class-mwb-bookings-for-woocommerce-admin.php:1373
msgid "If Hidden"
msgstr ""
-#: admin/class-mwb-bookings-for-woocommerce-admin.php:1263
-#: admin/class-mwb-bookings-for-woocommerce-admin.php:1343
+#: admin/class-mwb-bookings-for-woocommerce-admin.php:1296
+#: admin/class-mwb-bookings-for-woocommerce-admin.php:1376
msgid "Either the Service is Hidden."
msgstr ""
-#: admin/class-mwb-bookings-for-woocommerce-admin.php:1266
-#: admin/class-mwb-bookings-for-woocommerce-admin.php:1348
+#: admin/class-mwb-bookings-for-woocommerce-admin.php:1299
+#: admin/class-mwb-bookings-for-woocommerce-admin.php:1381
msgid "If has Quantity"
msgstr ""
-#: admin/class-mwb-bookings-for-woocommerce-admin.php:1270
+#: admin/class-mwb-bookings-for-woocommerce-admin.php:1303
msgid "Either the service has quantity."
msgstr ""
-#: admin/class-mwb-bookings-for-woocommerce-admin.php:1276
-#: admin/class-mwb-bookings-for-woocommerce-admin.php:1356
+#: admin/class-mwb-bookings-for-woocommerce-admin.php:1309
+#: admin/class-mwb-bookings-for-woocommerce-admin.php:1389
msgid "Minimum Quantity"
msgstr ""
-#: admin/class-mwb-bookings-for-woocommerce-admin.php:1277
-#: admin/class-mwb-bookings-for-woocommerce-admin.php:1359
+#: admin/class-mwb-bookings-for-woocommerce-admin.php:1310
+#: admin/class-mwb-bookings-for-woocommerce-admin.php:1392
msgid "Please Add Minimum Quantity of the Service Bookable."
msgstr ""
-#: admin/class-mwb-bookings-for-woocommerce-admin.php:1285
-#: admin/class-mwb-bookings-for-woocommerce-admin.php:1366
+#: admin/class-mwb-bookings-for-woocommerce-admin.php:1318
+#: admin/class-mwb-bookings-for-woocommerce-admin.php:1399
msgid "Maximum Quantity"
msgstr ""
-#: admin/class-mwb-bookings-for-woocommerce-admin.php:1286
+#: admin/class-mwb-bookings-for-woocommerce-admin.php:1319
msgid "Please Add Maximum Quantity of the Service Bookable."
msgstr ""
-#: admin/class-mwb-bookings-for-woocommerce-admin.php:1351
+#: admin/class-mwb-bookings-for-woocommerce-admin.php:1384
msgid "Either the Service has Quantity."
msgstr ""
-#: admin/class-mwb-bookings-for-woocommerce-admin.php:1369
+#: admin/class-mwb-bookings-for-woocommerce-admin.php:1402
msgid "Please Add Maximum Quantity."
msgstr ""
-#: admin/class-mwb-bookings-for-woocommerce-admin.php:1416
+#: admin/class-mwb-bookings-for-woocommerce-admin.php:1449
msgid "Optional"
msgstr ""
-#: admin/class-mwb-bookings-for-woocommerce-admin.php:1417
+#: admin/class-mwb-bookings-for-woocommerce-admin.php:1450
msgid "Hidden"
msgstr ""
-#: admin/class-mwb-bookings-for-woocommerce-admin.php:1464
-#: includes/class-mwb-bookings-for-woocommerce.php:736
+#: admin/class-mwb-bookings-for-woocommerce-admin.php:1497
+#: includes/class-mwb-bookings-for-woocommerce.php:744
msgid "yes"
msgstr ""
-#: admin/class-mwb-bookings-for-woocommerce-admin.php:1466
+#: admin/class-mwb-bookings-for-woocommerce-admin.php:1499
msgid "no"
msgstr ""
-#: admin/class-mwb-bookings-for-woocommerce-admin.php:1481
+#: admin/class-mwb-bookings-for-woocommerce-admin.php:1514
msgid "This order contains Booking Service/Product."
msgstr ""
-#: admin/class-mwb-bookings-for-woocommerce-admin.php:1482
+#: admin/class-mwb-bookings-for-woocommerce-admin.php:1515
msgid "Booking Order"
msgstr ""
-#: admin/class-mwb-bookings-for-woocommerce-admin.php:1503
+#: admin/class-mwb-bookings-for-woocommerce-admin.php:1536
msgid "choose filter.."
msgstr ""
-#: admin/class-mwb-bookings-for-woocommerce-admin.php:1506
+#: admin/class-mwb-bookings-for-woocommerce-admin.php:1539
msgid "Filter by Booking"
msgstr ""
-#: admin/class-mwb-bookings-for-woocommerce-admin.php:1568
-#: common/class-mwb-bookings-for-woocommerce-common.php:689
-#: public/class-mwb-bookings-for-woocommerce-public.php:249
-#: public/class-mwb-bookings-for-woocommerce-public.php:259
-#: public/class-mwb-bookings-for-woocommerce-public.php:272
-#: public/class-mwb-bookings-for-woocommerce-public.php:365
+#: 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
msgid "From"
msgstr ""
-#: admin/class-mwb-bookings-for-woocommerce-admin.php:1570
-#: common/class-mwb-bookings-for-woocommerce-common.php:692
-#: public/class-mwb-bookings-for-woocommerce-public.php:250
-#: public/class-mwb-bookings-for-woocommerce-public.php:260
-#: public/class-mwb-bookings-for-woocommerce-public.php:276
-#: public/class-mwb-bookings-for-woocommerce-public.php:369
+#: 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
msgid "To"
msgstr ""
@@ -766,7 +784,7 @@ msgid ""
msgstr ""
#: common/class-mwb-bookings-for-woocommerce-common.php:101
-#: common/class-mwb-bookings-for-woocommerce-common.php:406
+#: common/class-mwb-bookings-for-woocommerce-common.php:413
msgid "Additional Costs"
msgstr ""
@@ -879,31 +897,32 @@ msgstr ""
msgid "List All Bookings"
msgstr ""
-#: common/class-mwb-bookings-for-woocommerce-common.php:402
+#: common/class-mwb-bookings-for-woocommerce-common.php:409
msgid "General Cost"
msgstr ""
-#: common/class-mwb-bookings-for-woocommerce-common.php:451
+#: common/class-mwb-bookings-for-woocommerce-common.php:458
msgid "/day"
msgstr ""
-#: common/class-mwb-bookings-for-woocommerce-common.php:456
+#: common/class-mwb-bookings-for-woocommerce-common.php:463
msgid "/hour"
msgstr ""
-#: common/class-mwb-bookings-for-woocommerce-common.php:475
+#: common/class-mwb-bookings-for-woocommerce-common.php:482
+#: public/partials/wps-mybookings-details-tab.php:18
msgid "Total"
msgstr ""
-#: common/class-mwb-bookings-for-woocommerce-common.php:599
+#: common/class-mwb-bookings-for-woocommerce-common.php:617
msgid "confirmation required from admin."
msgstr ""
-#: common/class-mwb-bookings-for-woocommerce-common.php:668
+#: common/class-mwb-bookings-for-woocommerce-common.php:686
msgid "Service(s)"
msgstr ""
-#: common/class-mwb-bookings-for-woocommerce-common.php:677
+#: common/class-mwb-bookings-for-woocommerce-common.php:695
msgid "( "
msgstr ""
@@ -944,38 +963,38 @@ msgstr ""
msgid "Reason"
msgstr ""
-#: includes/class-mwb-bookings-for-woocommerce-onboarding-steps.php:736
+#: includes/class-mwb-bookings-for-woocommerce-onboarding-steps.php:737
msgid "Unexpected Error Occured"
msgstr ""
-#: includes/class-mwb-bookings-for-woocommerce.php:387
+#: includes/class-mwb-bookings-for-woocommerce.php:395
msgid "Configuration Settings"
msgstr ""
-#: includes/class-mwb-bookings-for-woocommerce.php:401
+#: includes/class-mwb-bookings-for-woocommerce.php:409
msgid "Bookings Calendar"
msgstr ""
-#: includes/class-mwb-bookings-for-woocommerce.php:407
+#: includes/class-mwb-bookings-for-woocommerce.php:415
msgid "Overview"
msgstr ""
-#: includes/class-mwb-bookings-for-woocommerce.php:413
+#: includes/class-mwb-bookings-for-woocommerce.php:421
msgid "Developer"
msgstr ""
-#: includes/class-mwb-bookings-for-woocommerce.php:434
+#: includes/class-mwb-bookings-for-woocommerce.php:442
msgid "Availability Settings"
msgstr ""
-#: includes/class-mwb-bookings-for-woocommerce.php:462
+#: includes/class-mwb-bookings-for-woocommerce.php:470
#, php-format
msgid ""
"Unable to locate file at location \"%s\". Some features may not work "
"properly in this plugin. Please contact us!"
msgstr ""
-#: includes/class-mwb-bookings-for-woocommerce.php:847
+#: includes/class-mwb-bookings-for-woocommerce.php:855
msgid "Availability by Days"
msgstr ""
@@ -984,11 +1003,11 @@ msgid "Book Now"
msgstr ""
#: includes/class-wc-product-mwb-booking.php:89
-#: public/class-mwb-bookings-for-woocommerce-public.php:393
+#: public/class-mwb-bookings-for-woocommerce-public.php:411
msgid "View Details"
msgstr ""
-#: includes/class-wc-product-mwb-booking.php:156
+#: includes/class-wc-product-mwb-booking.php:157
#, php-format
msgid "Book “%s”"
msgstr ""
@@ -1028,50 +1047,90 @@ msgstr ""
msgid "Skip and Deactivate Now"
msgstr ""
-#: onboarding/templates/mwb-bookings-for-woocommerce-onboarding-template.php:43
+#: onboarding/templates/mwb-bookings-for-woocommerce-onboarding-template.php:42
msgid "Welcome to WP Swings"
msgstr ""
-#: onboarding/templates/mwb-bookings-for-woocommerce-onboarding-template.php:44
+#: onboarding/templates/mwb-bookings-for-woocommerce-onboarding-template.php:43
msgid ""
"We love making new friends! Subscribe below and we promise to keep you up-to-"
"date with our latest new plugins, updates, awesome deals and a few special "
"offers."
msgstr ""
-#: onboarding/templates/mwb-bookings-for-woocommerce-onboarding-template.php:56
+#: onboarding/templates/mwb-bookings-for-woocommerce-onboarding-template.php:55
msgid "Skip For Now"
msgstr ""
-#: public/class-mwb-bookings-for-woocommerce-public.php:88
+#: public/class-mwb-bookings-for-woocommerce-public.php:97
msgid "To date can not be less than from date."
msgstr ""
-#: public/class-mwb-bookings-for-woocommerce-public.php:89
+#: public/class-mwb-bookings-for-woocommerce-public.php:98
msgid "From date can not be greater than To date."
msgstr ""
-#: public/class-mwb-bookings-for-woocommerce-public.php:172
+#: public/class-mwb-bookings-for-woocommerce-public.php:189
msgid "Additional services"
msgstr ""
-#: public/class-mwb-bookings-for-woocommerce-public.php:254
+#: public/class-mwb-bookings-for-woocommerce-public.php:272
msgid "Check in"
msgstr ""
-#: public/class-mwb-bookings-for-woocommerce-public.php:255
+#: public/class-mwb-bookings-for-woocommerce-public.php:273
msgid "Check out"
msgstr ""
-#: public/class-mwb-bookings-for-woocommerce-public.php:343
-#: public/class-mwb-bookings-for-woocommerce-public.php:353
+#: public/class-mwb-bookings-for-woocommerce-public.php:361
+#: public/class-mwb-bookings-for-woocommerce-public.php:371
msgid "not found"
msgstr ""
-#: public/class-mwb-bookings-for-woocommerce-public.php:359
+#: public/class-mwb-bookings-for-woocommerce-public.php:377
msgid "Service"
msgstr ""
+#: public/class-mwb-bookings-for-woocommerce-public.php:559
+msgid "my bookings"
+msgstr ""
+
+#: public/partials/wps-mybookings-details-tab.php:15
+msgid "Order ID"
+msgstr ""
+
+#: public/partials/wps-mybookings-details-tab.php:16
+msgid "Booking Date"
+msgstr ""
+
+#: public/partials/wps-mybookings-details-tab.php:17
+msgid "Booking Status"
+msgstr ""
+
+#: public/partials/wps-mybookings-details-tab.php:19
+msgid "Actions"
+msgstr ""
+
+#: public/partials/wps-mybookings-details-tab.php:72
+msgid " To "
+msgstr ""
+
+#: public/partials/wps-mybookings-details-tab.php:76
+msgid "+ Add to Google Calendar"
+msgstr ""
+
+#: public/partials/wps-mybookings-details-tab.php:77
+msgid "/my-account/view-order/"
+msgstr ""
+
+#: public/partials/wps-mybookings-details-tab.php:77
+msgid "View"
+msgstr ""
+
+#: public/partials/wps-mybookings-details-tab.php:87
+msgid "No Bookings has been purchased yet."
+msgstr ""
+
#: public/templates/mwb-bookings-for-woocommerce-public-add-to-cart-form.php:67
msgid "Quantity : "
msgstr ""
diff --git a/mwb-bookings-for-woocommerce.php b/mwb-bookings-for-woocommerce.php
index b6ed31b..abce031 100644
--- a/mwb-bookings-for-woocommerce.php
+++ b/mwb-bookings-for-woocommerce.php
@@ -15,7 +15,7 @@
* 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.5
+ * Version: 3.0.6
* 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
@@ -24,9 +24,9 @@
* Requires at least: 5.1.0
* Tested up to: 6.1.1
* WC requires at least: 5.1.0
- * WC tested up to: 7.2.2
+ * WC tested up to: 7.3.0
* Requires PHP: 7.2
- * Stable tag: 3.0.4
+ * Stable tag: 3.0.6
*
* 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.5' );
+ mwb_bookings_for_woocommerce_constants( 'MWB_BOOKINGS_FOR_WOOCOMMERCE_VERSION', '3.0.6' );
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' );
@@ -231,3 +231,4 @@ function mwb_mbfw_show_admin_notices() {
}
}
+
diff --git a/public/class-mwb-bookings-for-woocommerce-public.php b/public/class-mwb-bookings-for-woocommerce-public.php
index c87a889..30c38b1 100644
--- a/public/class-mwb-bookings-for-woocommerce-public.php
+++ b/public/class-mwb-bookings-for-woocommerce-public.php
@@ -69,6 +69,7 @@ public function mbfw_public_enqueue_scripts() {
wp_enqueue_script( $this->plugin_name . 'public', MWB_BOOKINGS_FOR_WOOCOMMERCE_DIR_URL . 'public/js/mwb-public.js', array( 'jquery' ), time(), true );
$daily_start_time = '';
$daily_end_time = '';
+ $upcoming_holiday = '';
if ( is_single() ) {
global $post;
$product_id = $post->ID;
@@ -77,9 +78,17 @@ public function mbfw_public_enqueue_scripts() {
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' );
+ $is_pro_active = '';
+ if( in_array( 'bookings-for-woocommerce-pro/bookings-for-woocommerce-pro.php', $active_plugins ) ) {
+ $is_pro_active = 'yes';
+ }
+
wp_localize_script(
$this->plugin_name . 'public',
'mwb_mbfw_public_obj',
@@ -89,6 +98,8 @@ public function mbfw_public_enqueue_scripts() {
'wrong_order_date_2' => __( 'From date can not be greater than To date.', 'mwb-bookings-for-woocommerce' ),
'daily_start_time' => $daily_start_time,
'daily_end_time' => $daily_end_time,
+ 'upcoming_holiday' => array( $upcoming_holiday ),
+ 'is_pro_active' => $is_pro_active,
)
);
}
@@ -111,12 +122,18 @@ public function mbfw_add_custom_fields_before_add_to_cart_button() {
* @return bool
*/
public function mwb_mbfw_is_enable_booking() {
- $start_time = get_option( 'mwb_mbfw_daily_start_time' );
- $end_time = get_option( 'mwb_mbfw_daily_end_time' );
- if ( strtotime( $start_time ) <= strtotime( current_time( 'H:i' ) ) && strtotime( current_time( 'H:i' ) ) <= strtotime( $end_time ) && 'yes' === get_option( 'mwb_mbfw_is_booking_enable' ) ) {
+ $check = get_option( 'mwb_mbfw_enable_availibility_setting' );
+ if( 'yes' == $check ){
+
+ $start_time = get_option( 'mwb_mbfw_daily_start_time' );
+ $end_time = get_option( 'mwb_mbfw_daily_end_time' );
+ if ( strtotime( $start_time ) <= strtotime( current_time( 'H:i' ) ) && strtotime( current_time( 'H:i' ) ) <= strtotime( $end_time ) && 'yes' === get_option( 'mwb_mbfw_is_booking_enable' ) ) {
+ return true;
+ }
+ return false;
+ } else {
return true;
}
- return false;
}
/**
@@ -500,4 +517,64 @@ public function mwb_mbfw_show_location_on_map( $product_id ) {
0 ){
+
+
+ function disableSpecificDate(date) {
+
+ // To disable specific day
+ var dateArr = [String(date.getFullYear()), String(date.getMonth() + 1), String(date.getDate())];
+ if (dateArr[1].length == 1) dateArr[1] = "0" + dateArr[1];
+ if (dateArr[2].length == 1) dateArr[2] = "0" + dateArr[2];
+ return upcoming_holiday.indexOf(dateArr.join("-")) == -1;
+ }
+ jQuery("#mwb-mbfw-booking-from-time").datetimepicker({
+ beforeShowDay: function (date) {
+ return [disableSpecificDate(date)];
+ }
+ });
+ jQuery("#mwb-mbfw-booking-to-time").datetimepicker({
+ beforeShowDay: function (date) {
+ return [disableSpecificDate(date)];
+ }
+ });
+
- $('.mwb_mbfw_time_date_picker_frontend').datetimepicker({
- format : 'd-m-Y H:i',
- minTime: mwb_mbfw_public_obj.daily_start_time,
- maxTime : mwb_mbfw_public_obj.daily_end_time + 1,
- // minTime : mwb_mbfw_common_obj.minTime
- });
-}
+ }
+ }
});
\ No newline at end of file
diff --git a/public/partials/wps-mybookings-details-tab.php b/public/partials/wps-mybookings-details-tab.php
new file mode 100644
index 0000000..3284026
--- /dev/null
+++ b/public/partials/wps-mybookings-details-tab.php
@@ -0,0 +1,212 @@
+ esc_html__( 'Order ID', 'membership-for-woocommerce' ),
+ 'booking-date' => esc_html__( 'Booking Date', 'membership-for-woocommerce' ),
+ 'booking-status' => esc_html__( 'Booking Status', 'membership-for-woocommerce' ),
+ 'booking-total' => esc_html__( 'Total', 'membership-for-woocommerce' ),
+ 'booking-actions' => esc_html__( 'Actions', 'membership-for-woocommerce' ),
+);
+
+
+$event_attendees_details = array();
+ $customer = wp_get_current_user(); // do this when user is logged in.
+
+ $customer_orders = get_posts(
+ array(
+ 'numberposts' => -1,
+ 'meta_key' => '_customer_user',
+ 'orderby' => 'date',
+ 'order' => 'DESC',
+ 'meta_value' => get_current_user_id(),
+ 'post_status' => array_keys( wc_get_order_statuses() ),
+ 'post_type' => 'shop_order',
+ 'fields' => 'ids',
+ )
+ );
+
+
+?>
+
+
+
+
+ $column_name ) : ?>
+ |
+
+
+
+
+ $value ) {
+
+ $_order = wc_get_order( $value );
+ foreach ( $_order->get_items() as $item_id => $item ) {
+ $product = $item->get_product();
+ $pro_short_desc = $product->get_short_description();
+ if ( $product instanceof WC_Product && $product->is_type( 'mwb_booking' ) ) {
+ $booking_name = $product->get_name();
+ $event_venue = get_post_meta( $product->get_id(), 'mwb_mbfw_booking_location', true );
+ $date_time_from = $item->get_meta( '_mwb_bfwp_date_time_from', true );
+ $start_timestamp = strtotime( $date_time_from );
+ $date_time_to = $item->get_meta( '_mwb_bfwp_date_time_to', true );
+ $end_timestamp = strtotime( $date_time_to );
+ $gmt_offset_seconds = wps_mbfw_get_gmt_offset_seconds( $start_timestamp );
+ $calendar_url = 'https://calendar.google.com/calendar/r/eventedit?text=' . $booking_name . '&dates=' . gmdate( 'Ymd\\THi00\\Z', ( $start_timestamp - $gmt_offset_seconds ) ) . '/' . gmdate( 'Ymd\\THi00\\Z', ( $end_timestamp - $gmt_offset_seconds ) ) . '&details=' . $pro_short_desc . '&location=' . $event_venue;
+ ?>
+
+ |
+ |
+ get_status() );?> |
+ get_total() );?> |
+
+
+ |
+
+
+
+
+
+ 'Pacific/Auckland',
+ '-11.5' => 'Pacific/Auckland', // Approx.
+ '-11' => 'Pacific/Apia',
+ '-10.5' => 'Pacific/Apia', // Approx.
+ '-10' => 'Pacific/Honolulu',
+ '-9.5' => 'Pacific/Honolulu', // Approx.
+ '-9' => 'America/Anchorage',
+ '-8.5' => 'America/Anchorage', // Approx.
+ '-8' => 'America/Los_Angeles',
+ '-7.5' => 'America/Los_Angeles', // Approx.
+ '-7' => 'America/Denver',
+ '-6.5' => 'America/Denver', // Approx.
+ '-6' => 'America/Chicago',
+ '-5.5' => 'America/Chicago', // Approx.
+ '-5' => 'America/New_York',
+ '-4.5' => 'America/New_York', // Approx.
+ '-4' => 'America/Halifax',
+ '-3.5' => 'America/Halifax', // Approx.
+ '-3' => 'America/Sao_Paulo',
+ '-2.5' => 'America/Sao_Paulo', // Approx.
+ '-2' => 'America/Sao_Paulo',
+ '-1.5' => 'Atlantic/Azores', // Approx.
+ '-1' => 'Atlantic/Azores',
+ '-0.5' => 'UTC', // Approx.
+ '0' => 'UTC',
+ '0.5' => 'UTC', // Approx.
+ '1' => 'Europe/Paris',
+ '1.5' => 'Europe/Paris', // Approx.
+ '2' => 'Europe/Helsinki',
+ '2.5' => 'Europe/Helsinki', // Approx.
+ '3' => 'Europe/Moscow',
+ '3.5' => 'Europe/Moscow', // Approx.
+ '4' => 'Asia/Dubai',
+ '4.5' => 'Asia/Tehran',
+ '5' => 'Asia/Karachi',
+ '5.5' => 'Asia/Kolkata',
+ '5.75' => 'Asia/Katmandu',
+ '6' => 'Asia/Yekaterinburg',
+ '6.5' => 'Asia/Yekaterinburg', // Approx.
+ '7' => 'Asia/Krasnoyarsk',
+ '7.5' => 'Asia/Krasnoyarsk', // Approx.
+ '8' => 'Asia/Shanghai',
+ '8.5' => 'Asia/Shanghai', // Approx.
+ '8.75' => 'Asia/Tokyo', // Approx.
+ '9' => 'Asia/Tokyo',
+ '9.5' => 'Asia/Tokyo', // Approx.
+ '10' => 'Australia/Melbourne',
+ '10.5' => 'Australia/Adelaide',
+ '11' => 'Australia/Melbourne', // Approx.
+ '11.5' => 'Pacific/Auckland', // Approx.
+ '12' => 'Pacific/Auckland',
+ '12.75' => 'Pacific/Apia', // Approx.
+ '13' => 'Pacific/Apia',
+ '13.75' => 'Pacific/Honolulu', // Approx.
+ '14' => 'Pacific/Honolulu',
+ );
+
+ $timezone = isset( $timezones[ $offset ] ) ? $timezones[ $offset ] : null;
+ }
+
+ return $timezone;
+ }
+
+ /**
+ * Get default timezone of WordPress.
+ *
+ * @param mixed $event Event Date.
+ * @return string.
+ */
+ function wps_mbfw_get_timezone( $event = null ) {
+ $timezone_string = get_option( 'timezone_string' );
+ $gmt_offset = get_option( 'gmt_offset' );
+
+ if ( trim( $timezone_string ) == '' && trim( $gmt_offset ) ) {
+ $timezone_string = wps_mbfw_get_timezone_by_offset( $gmt_offset );
+ } elseif ( trim( $timezone_string ) == '' && trim( $gmt_offset ) == '0' ) {
+ $timezone_string = 'UTC';
+ }
+
+ return $timezone_string;
+ }
+
+
+ /**
+ * Get GMT offset based on seconds.
+ *
+ * @param string $date Event Start Date.
+ * @return string.
+ */
+ function wps_mbfw_get_gmt_offset_seconds( $date = null ) {
+ if ( $date ) {
+ $timezone = new DateTimeZone( wps_mbfw_get_timezone() );
+
+ // Convert to Date.
+ if ( is_numeric( $date ) ) {
+ $date = gmdate( 'Y-m-d', $date );
+ }
+
+ $target = new DateTime( $date, $timezone );
+ return $timezone->getOffset( $target );
+ } else {
+ $gmt_offset = get_option( 'gmt_offset' );
+ $seconds = $gmt_offset * HOUR_IN_SECONDS;
+
+ return ( substr( $gmt_offset, 0, 1 ) == '-' ? '' : '+' ) . $seconds;
+ }
+ }
\ No newline at end of file