I’m building a rentals marketplace (RentApp) using WordPress + HivePress (RentalHive theme). The business model relies on guest bookings, with a focus on optimizing conversion rates. I’m customizing the booking functionality to better capture guest data.
Current status:
On the main search/landing page, we already use a guest filter in the format: “Adults, Children, Babies,” with age ranges (Adults: 13+, Children: 2–12, Babies: <2).
On the individual listing page (accommodation details), the booking widget only shows a single “guests” field (total number), not the breakdown by age groups.
Our team added a simple “guests” field via theme overrides as per HivePress documentation, but we need to split this into separate fields for adults, children, and babies for accurate booking and capacity calculations.
Business/UX requirement:
The listing booking form (widget on the listing detail page) should include separate fields for:
Adults (Age: 13+)
Children (Age: 2–12)
Babies (Age: under 2)
Each field should be a number input (minimum 0), as in the attached mockup/screenshot.
The values need to be validated (e.g., at least one guest, numeric, minimums), and persisted/saved to the booking backend, so that each booking contains the breakdown.
Optionally: the breakdown should impact the price calculation if possible (for pricing per age group).
Technical details:
We are using overrides in a child theme to customize HivePress booking form partials (e.g., form/container.php, form/check-in.php, etc.).
No changes to plugin core; all modifications go in the child theme, using hooks, filters, and overrides.
HivePress RentalHive latest version.
What we’ve tried:
Adding a single “guests” field works (see code below), but we’re not sure how to split this into three separate fields, validate them, and store the data correctly in the booking.
Here’s our current guests field partial for reference:
php