Support » Plugin: Themify - WooCommerce Product Filter » Filter by Custom Attribute

  • Resolved pinkivy


    Do I need to make an additional template to get custom attribute results? Or do something else?
    Here is my problem:
    I created a WooCommerce attribute called Collection, with several different values, and I assigned Collections to several products.
    With the product filter plugin, I was able to select Collection as an additional filter. The Collection filter and its linked values appear.
    But when I click the links, the results are not the products that are in those collections.
    In Permalink settings, I have Product attribute base set to catalog (which is supposed to be followed by /attribute-name/attribute/). But even typing in for example, /catalog/collection/vincent gives me a 404 page.
    When I hover over the collection name in the filter, I see a URL like ?taxonomy=pa_collection&term=vincent, but when the page loads, it gets turned into /room/living-room/?id=filter&wpf=1&collections=vincent. (It is appending the collection search to a previous category filter “room”. And the results are not those in the Vincent collection.

Viewing 1 replies (of 1 total)
  • Well, I couldn’t get the plugin to properly filter by my custom attribute.
    But the best solution turned out to be writing my own code to output the custom taxonomy archives, putting that into a shortcode, and then outputting the shortcode in the sidebar under the widget for the filtering. Style so that it all looks the same as the other filters coming from the filter plugin. In your theme’s woocommerce directory, you can create taxonomy-name_of_custom_taxonomy.php, and then add styles to your CSS so that the taxonomy results look the same as the other product results.

Viewing 1 replies (of 1 total)
  • The topic ‘Filter by Custom Attribute’ is closed to new replies.