Add url parameter to products in shop page after filtering

  • Hello,
    Hope you’re all doing great.
    I sell shoes on my website.
    What I’m trying to do is have the size pre-selected in the single product page after one filters by size.

    In other words, technically speaking, when someone selects a size from the “Filter by attribute’ widget, for exemple size 12, I would like to add the url parameter “?attribute_pa_size=12” to all products in the result page “mywebsite.com/shoes/?filter_size=12”

    Does anyone know how can this be achieved please?

    The blog I need help with is: (visible only to logged in users)

  • Hi!

    We can absolutely help you sort this out.

    However, as a WordPress.com Business plan subscriber, you have access to our livechat support team. And contacting them will likely be a faster way of helping you get your site up and running:

    https://wordpress.com/help/contact

    If you cannot (or do not wish to) use the livechat system, let us know and we will be happy to help you here in the forums!

  • The topic ‘Add url parameter to products in shop page after filtering’ is closed to new replies.