Filter order

SupportFilter order
Rob asked 5 years ago
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
4 Answers
robruifrok@multiweb.nl Staff answered 5 years ago
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
Nikola Loncar Staff answered 5 years ago
Hi Rob, thanks for that :) . I will check the code and add if it is working fine. Best regards, Nikola
robruifrok@multiweb.nl Staff answered 5 years ago
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
Nikola Loncar Staff replied 5 years ago

Thanks, I am looking at it right now. 🙂

johnvamo Staff replied 5 years ago

Hi,

I just posted a request asking for that solution…Great…
How should I install the plugin on my easy-appointments wp installation?

Thanks for the support and development of this extra tool.

johnvamo Staff replied 5 years ago

I just installed it…it works as mentioned…perfectly! Thanks

How can I translate the filter form tabs?

johnvamo Staff replied 5 years ago

I found a bug.

Price (numbers) are not shown at Booking Overview data display. Only the symbol $ is visible.
When disabling the plugin price (numbers) are visible again.

Please take a look.

Thanks.

robruifrok@multiweb.nl Staff answered 5 years ago
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.