-
You know how when you're shopping on Amazon and, let's say you are looking at hard drives. There's a side bar that lists the options for hard drives, like brand, size, internal, external, etc? I want that. I'm just wondering if there is some kind of built in side-panel widget that does this for you. I know I can't override the product category template because WooCommerce isn't going to look for it (as discussed here: https://github.com/orgs/bootscore/discussions/872). But I can add a side widget, right? Does it make sense to make a separate page by hand for each category? I can do that no problem. I just feel like this is something that should be more dynamic. Like say there's a piece of code that builds the side-panel. It would look at the current category and subcategory and grab all of the tags and display them in a navigation tree. Is this widget something I could make? It would be easier to make something that generates the html and I could just make an html block and paste it in. Or, can I make my own short code that takes in a parameter for the category and then it queries the database for the tags? I don't want this to turn into a very time intensive exercise just so I can make a neat thing that I will only re-use on 4 pages and it would only take me like an hour to make the pages by hand. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
The sidebar widget area is the built in side-panel you are looking for. Use a filter plugin which can sort by brands, sizes, colors or whatever like is https://wordpress.org/plugins/woo-product-filter/ and place shortcode to the sidebar widget. This plugin needs additional settings https://github.com/orgs/bootscore/discussions/902#discussioncomment-11591501 and of course, some styling. The sidebar is dynamic. If you add a widget to the sidebar, it will be shown on all pages. If you want to show the product filter widget only on, for example, the shop page, you need one more plugin https://wordpress.org/plugins/widget-options/. Solved? |
Beta Was this translation helpful? Give feedback.
The sidebar widget area is the built in side-panel you are looking for.
Use a filter plugin which can sort by brands, sizes, colors or whatever like is https://wordpress.org/plugins/woo-product-filter/ and place shortcode to the sidebar widget. This plugin needs additional settings https://github.com/orgs/bootscore/discussions/902#discussioncomment-11591501 and of course, some styling.
The sidebar is dynamic. If you add a widget to the sidebar, it will be shown on all pages. If you want to show the product filter widget only on, for example, the shop page, you need one more plugin https://wordpress.org/plugins/widget-options/.
Solved?