Forums › Forums › Search & Filter Pro › Woocommerce Bookings search by date integration
- This topic has 2 replies, 2 voices, and was last updated 9 years, 9 months ago by Ross.
-
Anonymous(Private) February 13, 2015 at 9:15 am #11875
Hey Guys,
i have the following site: http://www.venicein.com where we use the woocommerce bookings plugin for managing the booking of appartments. On the page “appartments” we are using your searchandfilter plugin to search through the different product attributes, now the plugin is making an excellent work, my problem is that i need to integrate 2 calendar fields in wich the customer insert the period in wich he wants to book the apartment, so that he displays only the available appartments.
For the searching i need to loop through each day the customer provides and check in each appartment if in that day it’s allrady booked or not. Than i need to display only the apartments that are totally free in this time range (for example if an appartment is booked for only 1 day provided it has not to be displayed).
Now woocommerce booking stores the information only the start day and the end day of the booking in two separate meta_data in timestep the first is bookings_start and bookings_end.
I tried to put an calender range provided with the search and filter plugin, but it let’s me put only one meta data into it.
Is there anyway that i can handle this throughout the plugin settings?
If not are there hooks or actions i can use to output my code so that it works perfectly fine with your plugin?
I hope i explained my self and that you understand my needs.
Thank you very much for your support.
Ross Moderator(Private) February 17, 2015 at 10:52 pm #12057Hey Alvise
This is not possible.
Currently 1 meta key = 1 field
I am however planning to add this to the next big update – v2.0 (hoping for end of March completion).
Thanks
-
AuthorPosts