- This topic has 2 replies, 2 voices, and was last updated 6 years, 5 months ago by .
Viewing 3 posts - 1 through 3 (of 3 total)
Viewing 3 posts - 1 through 3 (of 3 total)
These forums are now closed and remain for historical purposes.
None of the content applies to the new version 3. For support, get in touch via our contact form.
Forums › Forums › Search & Filter Pro › Custom order of categories in dropdown
I use SFP in my WooCommerce Store to filter products by category.
1) Is there a way to reorder the categories in the dropdown?
2) And a way to not show one of the categories (other than just setting it to display:none via css)?
3) Furthermore: Is it possible to only display the “reset form”-button, when there is anything chosen?
I am not sure that #3 is possible, but 1 and 2 are possible. Taking the easier one first, #2.
In the field settings in the Form UI, there as an Advanced link/section where you can deselect the Sync with Setting checkbox and then specify terms to exclude.
As to #1, this would require some custom PHP coding on your part, using this filter:
https://searchandfilter.com/documentation/action-filter-reference/#filter-input-object
You would need to use PHP to re-order the array for that field. It might be tricky to get that ‘right’ (as you want it) though.