bookingactivities / booking-activities

Wordpress plugin booking system
GNU General Public License v3.0
29 stars 10 forks source link

Phone number required #159

Closed dominiozero closed 2 years ago

dominiozero commented 2 years ago

Describe the bug Despite having configured the phone field as required, in the frontend the user can create a reservation without indicating the phone number.

To Reproduce

Screenshots

Captura de pantalla 2022-08-29 111530

Captura de pantalla 2022-08-29 111711

Expected behavior It should set the field as required.

Isolating the problem (mark completed items with an [x]):

WordPress Environment Wordpress: 6.0.1 PHP: 7.4.30 MySQL: 5.5.5 Booking Activities: 1.14.3 Display Pack: 1.4.24 Prices and Credits: 1.7.7

yoancutillas commented 2 years ago

Thank you, on your screenshot, I can see that the booking were made with WooCommerce. With WooCommerce, the User Data field is not used. There used to be a feedback to inform about it but it seems to have disappeared since 1.14, I'll fix it in the next release. Capture

You need to get the phone number with WooCommerce on the checkout page. By default, the phone number is required on the checkout page, so if it is not required on your site, it may be due to a third party plugin / theme. checkout

(Otherwise, maybe this custom code can help).

dominiozero commented 2 years ago

Right! It was a third party plugin we used to hide some fields, as we thought that entering the phone number in the reservation field it was already saved, regardless of whether the reservation was made with WooCommerce or not.