Title: Customization
Last modified: September 4, 2024

---

# Customization

 *  [angelarch](https://wordpress.org/support/users/angelarch/)
 * (@angelarch)
 * [1 year, 9 months ago](https://wordpress.org/support/topic/customization-159/)
 * Is i possible, we want to restrict bookings to 18 hours in advance. Its currently
   only set to allow days in advance.
 * The problem we are having is we are getting bookings made at 11pm the night before
   for 8am pickup and staff don’t have time to organize.
 * Can this be changed to hours in advance instead of days?
 * Please check image : [https://paste.pics/RUD2V](https://paste.pics/RUD2V)

Viewing 1 replies (of 1 total)

 *  Plugin Author [e4jvikwp](https://wordpress.org/support/users/e4jvikwp/)
 * (@e4jvikwp)
 * [1 year, 9 months ago](https://wordpress.org/support/topic/customization-159/#post-17993718)
 * Thanks for your message. We understand the situation, but unfortunately you can
   only choose the number of calendar days in advance to restrict the rental orders.
 * Pick-ups will be always allowed as long as they are not in the past, and you 
   can only work on the opening times, either at location level or globally. Unfortunately,
   it is not possible to limit the rental orders by counting the number of hours
   of difference between the current date and time and the selected date and time
   for pick up, I’m sorry. This is why your example is allowed.
 * The only solution is to either override the booking forms (Shortcodes or Widget/
   Block) or to display an information text where you request at least 18 hours 
   in advance for bookings. Alternatively, the custom override should disable via
   JavaScript specific time slots only if the selected date is less than 18 hours
   ahead. By changing the pick up date, the calculation should be made again to 
   eventually re-enable certain time slots in the drop down menu. It would be an
   invasive calculation to be made via JavaScript for dynamically enable or disable
   certain time options.
 * The VikWP Team

Viewing 1 replies (of 1 total)

The topic ‘Customization’ is closed to new replies.

 * ![](https://ps.w.org/vikrentcar/assets/icon-256x256.png?rev=2203504)
 * [VikRentCar Car Rental Management System](https://wordpress.org/plugins/vikrentcar/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/vikrentcar/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/vikrentcar/)
 * [Active Topics](https://wordpress.org/support/plugin/vikrentcar/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/vikrentcar/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/vikrentcar/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [e4jvikwp](https://wordpress.org/support/users/e4jvikwp/)
 * Last activity: [1 year, 9 months ago](https://wordpress.org/support/topic/customization-159/#post-17993718)
 * Status: not resolved