Help Center

How can I set default Service, Category & Employee value via http GET?

If you want to redirect customers to a booking page with the predefined values of Service, Category or Employee, you must add the appropriate URL parameter for each value to the link.

Use the ID of the required values to create the link. ID values can be found in the database or using the “Developer tools” in a browser.

Check this demo to see an example of how it works: https://www.booking-wp-plugin.com/demo/1/?cat_id=1&service_id=2&staff_id=3

Have more questions? Submit a request

12 Comments

  • Avatar
    Charles Smith

    This is great; can I pass date and time as well - if so, how? Thank you.

  • Avatar
    Support Team

    Hi Charles, currently there's no option to pass the date and/or time values.

  • Avatar
    Brian Prosser

    Hi Denis ... is this still the case? It would really be handing to be able to link to a special event day.

  • Avatar
    Support Team

    Hi Brian, yes, this functionality is not yet available.

  • Avatar
    Adrian Wilcox

    Would also be great if you could pass a price override. So for example:

    ?cat_id=1&service_id=2&staff_id=3&special_price=123

  • Avatar
    Product Team

    Hi Andrian, thanks for your feedback! Please add this suggestion to our feature requests page: https://support.booking-wp-plugin.com/hc/en-us/community/topics/200189331-Feature-Requests

  • Avatar
    Stefania Fernando

    How can we see cat_id, service_id, staff_id? where do we see it?

  • Avatar
    Product Team

    Hi Stefanie, you can find the ID values in the database or using the “Developer tools” in a browser.

  • Avatar
    Stephan

    If I pass the service type, how can I then skip that page en go right to the time/date page?

  • Avatar
    Support Team

    Hi Stephan, you need to update the shortcode of the booking form in the page editing mode, set a default service and hide all fields. Please check this guide for more details: https://support.booking-wp-plugin.com/hc/en-us/articles/212800185-Publish-Booking-Form

  • Avatar
    Laura Brown

    Hi, the demo link doesn't work anymore. Can someone write out the steps on how to set a default service?

  • Avatar
    Support Team

    Hi Laura, I have updated the link (thanks for letting us know). You can set the default by adding ?service_id=2 at the end of URL. I added "2" there, though you will need to add the correct ID of the service that you want to display.

    Edited by Support Team
Please sign in to leave a comment.
Powered by Zendesk