• Resolved Hamed Azimi

    (@dadparvar)


    Hello,

    Currently, when a user filters the products inside the product categories, the URL structure is something like this:

    site.com/category1/?filter_brand=test&filter_color=red&filter_size=small

    We need to have something like:

    site.com/category1/test/red/small

    Is there any snippet that helps us in thid scenario, please?

    Thanks

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hello @dadparvar ,

    I understand the request. However, I do not have a working example to complete this.

    The URL structure is coming from this source code.

    You can use the filter woocommerce_widget_get_current_page_url to override how the link is structured.

    This is a fairly complex development topic. I’m going to leave it open for a bit to see if anyone is able to chime in to help you out.

    I can also recommend the WooCommerce Developer Resources Portal for resources on developing for WooCommerce.

    You can also visit the WooCommerce Facebook group or the #developers channel of the WooCommerce Community Slack. We’re lucky to have a great community of open-source developers for WooCommerce, and many of our developers hang out there, as well.

    If you need a paid solution, you can consider taking help from one of our partner’s website.

    Thank you ??

    Hi there,

    We’ve not heard back from you in a while, so I’m marking this thread as resolved.

    Hopefully, you were able to find a solution to your problem! If you have further questions, please feel free to open a new topic.

    Thank you ??

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Separated URL for filters’ is closed to new replies.