Forums › Forums › Search & Filter Pro › Get Product Categories based on Custom Taxonomy Selection
Tagged: customization, product categories, taxonomy
- This topic has 8 replies, 2 voices, and was last updated 8 years, 8 months ago by Trevor.
-
Anonymous(Private) April 11, 2016 at 12:49 am #42207
Hi Team,
In S&F Form, I have two filters
1. Custom Taxonomy as Hobbies
2. Product Categories.When user selects any hobby e.g Photography then the S&F Form shows all products under photography hobby. Further if user selects Greeting cards then the user is shown all greeting cards under photography hobby.
All things works fine as expected but now since number of categories in my website has increased I am looking to cut down on number of product categories shown in S&F Form.
Is the below mentioned hack possible?
When User selects a Hobby (e.g Photography) then S&F form only shows the categories that have products under Photography hobby?
and vice a versa.Anonymous(Private) April 12, 2016 at 5:43 am #42394I think I was not quite clear in explaining my issue.
I have checked hide the empty values in each form elements. So whenever any taxonomy is empty it doesnt shown up in the drop down section of the form.
What I really want is
Instead of just pre-populating all the non empty product categories. Can the S&F just load the product categories for which the hobby (custom taxonomy) matches.take a look at http://www.hobbygiri.com/shop/
Here, when I select hobby “Bikes”, then when the page reloads, the product categories dropdown should only contain the product categories for the products which match the hobby taxonomy – Bikes.
Right now, all the dropdowns (search elements) in the S&F work independently.
Let me know if I am clear this time.
Anonymous(Private) April 13, 2016 at 8:35 pm #42681Hi Trevor,
I checked the changes made by you.
Its EXACTLY they way I wanted. I am overwhelmed seeing the results.Ajax pagination also works fine, its just that results text doesnt get updated with the new results (I think thats a theme issue)
Anyways I am not using AJAX. And when loading it this way the result text shows correct numbers.
Lastly, I believe just by enabling auto count, all the filters work together and hide out whichever is empty.(I should have figured this out earlier. Its better late than never).
The S&F filter on our website is the main feature and with this update, its will be so much easier for users to find their right products.
Thank you once again. I will highly recommend S&F plugin to anyone who uses wordpress.
-
AuthorPosts