The standard filtering order is location, service, worker. However we have customers with a strong preference for a certain worker and customers who want a certain service, nomatter where. Is there a possibility to set 'any' in the selectboxes or to change the selection order
This can be done!!! The following is an example where location, service or worker can be selected in random order. Some text is in Dutch, but this doesn.t affect the basic working. I made a custom filter in php which can be found here (see comments for more info): The used php on Github To integrate this filter in the plugin I used the this script (see comments for more info): The used script on Github
Hi Rob, thanks for that :) . I will check the code and add if it is working fine. Best regards, Nikola
A changed the code for the filter and transformed in a small basic plugin: https://github.com/Ruifrok/ea-appointsments-custom-filter/tree/master The plugin adds a new select form and hides the original form. Also a new cancel button is added. No translation is added. The code was developped for an application where price is not used. The selectboxes can be used in any desired order. Once all three selectboxes are defined the select options of each selectbox are determined by the selected value of the other two selectboxes. Once all three selectboxes are defined the selections can be changed at any time and change triggers a new load of the calendar for the updated select
It is what I said: A very basic plugin. Use or adapt as you whish. As I mentioned: "No translation is added. The code was developped for an application where price is not used." You have to change the text to whatever you want in line 46, 57 and 68 of ea-filter.php or add a text domain and translatable strings, etc.. For my application I didn't need the price, so I didn't look into it.
Please login or Register to submit your answer