Appointment Hour Booking Blog

The easy way to create powerful booking forms for WordPress websites.

Blog / Changing the selectable max quantity in the booking form

Changing the selectable max quantity in the booking form

The quantity fields - when enabled - allow the selection from 1 to the maximum quantity available. The following workaround lets you set a smaller quantity in the case you want retrict that value for each booking.


This feature is be useful if you are allowing bookings for multiple persons.

To modify the default plugin behavior and set a smaller maximum quantity selection in the booking form you should paste a custom script (can be copied below in this page) in the "General Settings >> Edit Scripts" area.

The following is the custom script you have to copy and paste into the "Edit Scripts" area (important: change the cpahb_max_quantity = 4; in the first line to the needed max value):


Feedback about these features will be welcome, feel free to open a support ticket for any question.