Quantcast
Channel: WordPress.org Forums » All Topics
Viewing all articles
Browse latest Browse all 59525

Three step selection box (product categories)

$
0
0

Replies: 2

I want to have three selection boxes on top each other like this image:
https://i.imgur.com/ytTT3qT.png
https://i.imgur.com/gYGn3bM.png

The goal is to get all parent categories on first selectbox, when user has selected a category, the second selectbox should enables and retrieve all categories for that selected parent category, and on third it should let the user select the categories for the second category and once he has chosen one, it should go to products with that category (woocomerce)

I hope someone understands.

Right now if you go to my site and select one of the parent categories, the site refreshes and the child categories for the selected category is shown, but I want to have 3 separate selection box like the image above.

I found a php snippet which does what I want (kind of) https://stackoverflow.com/questions/48173560/dynamic-dropdowns-based-on-woocommerce-categories-sub-categories I’m not that good with php, but if someone could help me to get start on the right track that would be lovely.

  • This topic was modified 19 minutes ago by ipwned.

Viewing all articles
Browse latest Browse all 59525

Trending Articles