Support » Plugin: WP Hotelier » linking to booking site
2 years, 5 months ago
Is it possible to use your plugin to select dates and then link to an external booking site but have the date selected on the external booking site as opposed to selecting them twice.
Yes, it’s possible, but this is something you need to implement yourself. You need to pass the dates in some way and then handle the request on your other website.
Here there is an example (second snippet):
In that example, the dates are passed as GET parameters. For example:
Thanks so much Benito.
Ok, so I followed your instructions and added the code to a child theme functions file but it doesn’t seem to work
Here’s the code
As explained in the link above, the first part of the code is not for the datepicker, but for the link of the reserve button (the button at the end of this page):
The code for the datepicker is the last one in this page. Dates are passed as POST parameters, so just read them in some way on the other website.