diff --git a/admin/themes/default/template/controllers/orders/_cart_booking_demands.tpl b/admin/themes/default/template/controllers/orders/_cart_booking_demands.tpl index 4db298378..e2e384fc2 100644 --- a/admin/themes/default/template/controllers/orders/_cart_booking_demands.tpl +++ b/admin/themes/default/template/controllers/orders/_cart_booking_demands.tpl @@ -101,13 +101,12 @@ {include file='controllers/orders/modals/_add_order_extra_services_tab_content.tpl'} + {if isset($loaderImg) && $loaderImg} +
+ +
+ {/if} - - {if isset($loaderImg) && $loaderImg} -
- -
- {/if} diff --git a/admin/themes/default/template/controllers/orders/form.tpl b/admin/themes/default/template/controllers/orders/form.tpl index 0cc2edc0b..a8b5fa0ab 100644 --- a/admin/themes/default/template/controllers/orders/form.tpl +++ b/admin/themes/default/template/controllers/orders/form.tpl @@ -1641,11 +1641,11 @@ }); // when the price of a service product is changed and focus is out - $(document).on('change', '.service_cart_price_input', function() { + $(document).on('change', '#room_type_services_desc .service_cart_price_input', function() { updateServiceProducts(this); }); - $(document).on('focusout', '#rooms_type_extra_demands .qty', function(e) { + $(document).on('change', '#rooms_type_extra_demands .qty', function(e) { var qty_wntd = $(this).val(); if (qty_wntd == '' || !$.isNumeric(qty_wntd)) { $(this).val(1); @@ -1818,14 +1818,12 @@ showSuccessMessage(txtExtraDemandSucc); } else { showErrorMessage(jsonData.errors); - } }, complete: function() { $(".loading_overlay").hide(); } }); - } }); diff --git a/admin/themes/default/template/controllers/orders/modals/_extra_services_service_products_tab_content.tpl b/admin/themes/default/template/controllers/orders/modals/_extra_services_service_products_tab_content.tpl index f9bd1718c..cd6b39e74 100644 --- a/admin/themes/default/template/controllers/orders/modals/_extra_services_service_products_tab_content.tpl +++ b/admin/themes/default/template/controllers/orders/modals/_extra_services_service_products_tab_content.tpl @@ -229,11 +229,11 @@ {/if} + + - - {/if} diff --git a/config/defines.inc.php b/config/defines.inc.php index 3e319225f..4a86b1930 100644 --- a/config/defines.inc.php +++ b/config/defines.inc.php @@ -26,7 +26,7 @@ /* Debug only */ if (!defined('_PS_MODE_DEV_')) { - define('_PS_MODE_DEV_', true); + define('_PS_MODE_DEV_', false); } /* Compatibility warning */ define('_PS_DISPLAY_COMPATIBILITY_WARNING_', false); diff --git a/controllers/admin/AdminCartsController.php b/controllers/admin/AdminCartsController.php index 23cb039b7..6d8dc6e27 100644 --- a/controllers/admin/AdminCartsController.php +++ b/controllers/admin/AdminCartsController.php @@ -1330,7 +1330,7 @@ class AdminCartsControllerCore extends AdminController $objServiceProduct->show_at_front = false; $objServiceProduct->indexed = false; $objServiceProduct->minimal_quantity = 1; - $objServiceProduct->active = true; + $objServiceProduct->active = false; $objServiceProduct->max_quantity = 99999; // ======= Create Service product END ========= diff --git a/controllers/admin/AdminOrderPreferencesController.php b/controllers/admin/AdminOrderPreferencesController.php index 5aff0476f..b434e368b 100644 --- a/controllers/admin/AdminOrderPreferencesController.php +++ b/controllers/admin/AdminOrderPreferencesController.php @@ -225,7 +225,7 @@ class AdminOrderPreferencesControllerCore extends AdminController 'PS_ALLOW_ADD_ALL_SERVICES_IN_BOOKING' => array( 'title' => $this->l('Allow to add all services in a booking'), 'hint' => $this->l('Enable to allow all services created to be added in a booking while adding or editing a booking. Disable to allow only attached services with room type.'), - 'desc' => $this->l('If enabled, only attached services with room type will be available to be added to a booking.'), + 'desc' => $this->l('If disabled, only attached services with room type will be available to be added to a booking.'), 'cast' => 'intval', 'type' => 'bool' ), diff --git a/controllers/admin/AdminOrdersController.php b/controllers/admin/AdminOrdersController.php index 1d475dc69..9d10c73c3 100644 --- a/controllers/admin/AdminOrdersController.php +++ b/controllers/admin/AdminOrdersController.php @@ -7479,7 +7479,7 @@ class AdminOrdersControllerCore extends AdminController $qty = 1; } // validate price - if ($price && !ValidateCore::isPrice($price)) { + if (!ValidateCore::isPrice($price)) { $this->errors[] = Tools::displayError('Invalid service unit price.'); } } else {