All of the examples I found for creating a product filter always includes the product rendering. I want to create a filter and use beaver builder's output. I was hoping toolset would prevent me from having to create a filter from code. Not a single plugin works the way I need it to (filter while on the product category archive - and stay on the archive.) WooCommerce's product filter works but it has limited UX possibilities.)
Hi, you can use Beaver Builder to design a Content Template, then place that Content Template in a View's Loop Output editor inside the wpv-loop tags. Your View will contain a basic Loop Output structure, but the actual contents of each row will be designed in Beaver Builder's Page Builder. This will allow you to use a View's search filter to find Products, and display the results in a BB design. Let me know if you have questions about this.
I don't think I explained this properly. I am trying to build the UI for the actual filter - so that someone can filter our shop page by an attribute. I am looking for the attributes to be links. I would normally use a plugin for this and use a widget in a sidebar. Initial Shop view should show all available attributes - but they should be links. My shop view shows product categories as links as well (these produce the category archive pages.) I would want the attribute links to be populated based on whether or not products in the category have that attribute. Clicking on the attribute should filter the category archive page. So I am looking for Types to show these links. Barking up wrong tree?
Hi, it sounds like you would like to create a list of links, one link for each WooCommerce Product Attribute. Is that accurate? If so, then I'm afraid Views isn't capable of producing such an automated list. There is a shortcode that produces a list of attributes, but it's not customizable enough to output a list of links - only the attribute name.
https://toolset.com/documentation/user-guides/views-shortcodes/#wpv-woo-list_attributes
Views can loop over Post Types, Users, or public Taxonomy terms, but not Product Attributes. Let me know if I've misunderstood your request and I'll take another look.
Well actually, I am able to loop over attributes - I just can't seem to get it to do anything. Here's my link: hidden link
Look for Product product-type
I FINALLY found a plugin that properly filters product attributes on product category achive pages! I still need to show the text description for the attribute though... I am now hoping I can use Toolset for that. The plugin sends the attribute "slug" on the url - but Toolset only works with ID. Maybe you have some ideas so that I can filter by the slug?
Well actually, I am able to loop over attributes
Okay I think I misunderstood, you want to loop over the attribute terms. That is possible with a taxonomy View. I can help you if you want to format the results of a View of attribute terms to include custom links if you need assistance.
I still need to show the text description for the attribute though
Toolset offers the wpv-taxonomy-desc shortcode, which works in the context of a Views taxonomy loop or a Toolset WordPress Archive taxonomy archive. If you want to display the attribute term description outside of a Views loop or WordPress Archive, it will require custom code. Types field shortcodes are only designed to show custom field values, not native fields.
Here's a link to another ticket where the User created a custom shortcode that returns the term name from a URL parameter slug. You could modify this code to return the term ID instead of name:
https://toolset.com/forums/topic/how-can-i-display-the-name-of-a-taxonomy-specified-in-the-url-by-its-slug/#post-393027
Then you can use that ID as a term ID filter for a taxonomy View, and include the wpv-taxonomy-desc shortcode in the Loop Output of that View. Insert that View in your custom search archive page.
Thanks - that did the trick!