• Resolved marcosvicentee

    (@marcosvicentee)


    Hello,

    Im creating a wine store. I would like to know if I can make attributes filter selected by an specific url.

    EXAMPLE:

    One button links to https://www.wine-store/all-wines/red-wine. This button can redirect to the /all-wines page with the “red wine” attribute checkbox checked so in the “all products” block its already filtered to red wines only.

    Another button links to https://www.wine-store/wines/white-wine. This button redirects to the same /all-wines but this time the “white wine” attribute checkbox is checked.

    The page I need help with: [log in to see the link]

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

    WooCommerce includes a filter by attribute widget which can be used to filter products by the attribute values. However, the URL structure will not be exactly like that. It will have a structure of this format –

    https://woocommerce-test.local/shop/?filter_color=gray

    Here, “color” is my attribute and “gray” is one of the values.

    Alternatively, you can enable the “Archive” of this particular attribute so that you can see all products under this attribute. Edit the attribute from wp-admin > Products > Attributes > Edit a attribute – https://prnt.sc/116n8wm.

    The archive option will allow you to get a similar URL as you are expecting. Unfortunately, I do not have an exact example to make the filtered URL the same as you needed.

    I hope the information helps.

    Thank you ??

    Plugin Support abwaita a11n

    (@abwaita)

    Hi @marcosvicentee,

    We’ve not heard back from you in a while, so I’m marking this thread as resolved. Hopefully, the above info was helpful!

    If you have further questions, please feel free to open a new topic.

    Thanks.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Make attribute filter selected by url’ is closed to new replies.