WP Rentals Help WP Rentals Help

  • Client Support
  • Video Tutorials
  • WpRentals
  • WpEstate
  • API
Home / Technical how to / Technical: How to Configure Guest Number Dropdown with Incremental Values

Technical: How to Configure Guest Number Dropdown with Incremental Values

6536 views

For Classic Guest Dropdown, the number of guests to show can be set from Theme Options > General > Booking Settings

Help https://help.wprentals.org/article/how-to-manage-guest-options/#b_wpestate_id

How to Change guest number in search with an incremental value

In case want to change the guest dropdown that appears in the search front end with a dropdown that shows options in incremental value, you need to know that list is  is populated by a function called in advanced_search.php.

$guest_list             =   wpestate_get_guest_dropdown();

The actual function that has the dropdown list  is:

wpestate_get_guest_dropdown – defined in function libs/help_functions.php.

Make the change in libs/help_functions.php to change advanced search dropdown. 

Ex: This new code

for($i=100 ; $i<2101;$i += 100)

Live code screenshot

This code would result into this dropdown style:

Change guest number in Submit Form

For submit property pages go into submit_templates/ property_description.php and property_description_first.php and  around line 170 you have


for($i=0; $i<15; $i++) {

Change the PHP code to include incremental values and change your values as you wish

Ex: This new code

for($i=100 ; $i<2101;$i += 100)

Live code screenshot

This code would result into this dropdown style:

Contact:

For contact owner form from property page go into libs\ajax_functions.php , function wpestate_show_contact_form_simple  and  around line 2208  you have

for ($i = 2; $i <= 14; $i++) {

Change the PHP code to include incremental values and change your values as you wish.

Technical how to

Related Articles

  • How to change the background color and logo for admin login page
  • How to redirect Instant Booking Button to WooComemrce Checkout Page
  • Tehnical: Redirect to Page Not found/ White screen on listing submission or edit
  • Technical – Invoices from My Bookings

HELP CATEGORIES

  • 61. General
  • 102. Installation & Basic Setup
  • 93. Installation FAQ
  • 404. How Booking Works
  • 145. User dashboard pages
  • 20Advanced Search Options
  • 3Blog Post
  • 9Custom Page Templates
  • 18Elementor Compatibility
  • 13Email Notifications
  • 19FAQ
  • 10Menu Options
  • 26Multi-Languages - 3rd party
  • 9Owner
  • 25Property / Listing
  • 21Shortcodes
  • 11Submit Form
  • 4Supported Maps
  • 93Technical how to
  • 5Third Party plugins
  • 3Translation
  • 13Widgets
  • 2WooCommerce Payments
  • 13WP Rentals Payment
  • 77WP Rentals Theme Options

Join Us On

Powered by WP Estate - All Rights Reserved
  • Client Support
  • Video Tutorials
  • WpRentals
  • WpEstate
  • API