Support

Account

Home Forums General Issues Searchable Filter for WooCommerce Products Based on Model and Model Year

Helping

Searchable Filter for WooCommerce Products Based on Model and Model Year

  • Dear people,

    I’ve quietly been struggling with the issue below for quite some time and have now decided to seek help through this forum.

    I have created two taxonomies named “Model” and “Modeljaar” (Model Year). Additionally, I’ve set up an ACF field group linked to WooCommerce products.

    Now, when specifying the compatibility of a WooCommerce product, I can choose both the “Model” and the “Model Year.”

    However, if, for instance, I have 3 models – Volvo, Volkswagen, Audi – and model years such as “2015, 2016, 2017, 2018,” I encounter a problem.

    For example, when I select Volvo and check model years 2015 and 2016, and also select Volkswagen and check model years 2017 and 2018, an issue arises.

    The system fails to distinguish, assuming that Volkswagen is also linked to model years 2015 and 2016, as these model years are not linked to the “Model” taxonomy.

    Ultimately, I need to create a search filter, such as with Search & Filter, and want to be able to search by model and model year. So, if you choose a Volkswagen now, you should also be able to find it when filling in the filter for model year 2015 or 2016.

    I hope I’ve explained my problem clearly.

    Do you have any ideas on how I can solve this?

    Kind regards,

    Miguel

  • Struggling with WooCommerce product filtering using taxonomies (“Model” and “Model Year”). The system fails to distinguish between models and assumes incorrect associations with model years.

    Solutions:
    Hierarchical Taxonomies:

    Make “Model” taxonomy hierarchical.
    Custom Taxonomy Structure:

    Combine “Model” and “Model Year” into a single custom taxonomy.
    ACF Relationship Field:

    Use ACF Relationship field for flexible relationships.
    Custom Meta Fields:

    Implement custom meta fields for precise data control.
    Custom Search Filters:

    Build custom search queries considering both taxonomies.
    Custom Code for Plugin:

    Customize the Search & Filter plugin for specific taxonomy handling.
    Developer Assistance:

    Seek help from a developer for complex customizations.

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.