• Resolved theblueli

    (@theblueli)


    Hello,
    When you add a product variant to the cart. There is a separate URL for that particular variant product. e.g. xxx/?attribute_pa_color=black&attribute_pa_size=l&attribute_size=L

    I am wondering if it is possible to pull the product variant URL for default permalink structure?

    I mean, when visiting the product and select a different attribute, the URL changes instead of Ajax.

    Thanks

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Support abwaita a11n

    (@abwaita)

    Hi @theblueli,

    There’s not an inbuilt way to get the variation URL shown on the product page.

    However, you can consider doing this with some custom code. There are some insights in this GitHub thread – https://github.com/woocommerce/woocommerce/issues/12576.

    You can check for other approaches on the WooCommerce Facebook group or the #developers channel of the WooCommerce Community Slack.

    Lastly, for assistance with custom coding, I’d recommend consulting with the WooCommerce Customizations Partners.

    * Just to highlight a plugin option, we have the Products By Attributes & Variations for WooCommerce extension that can display variations as individual simple products on the shop page.

    Hope this helps.
    Thanks.

    Thread Starter theblueli

    (@theblueli)

    Wow, I have been looking for this plugin Products By Attributes & Variations for WooCommerce for a while now. Very Glad to know there is one!!!

    A silly question, it says “Show variations on shop pages” It is going to be only working on loop in the Shop page? or it is including for all the taxonomy archive pages, I mean the product_cat archive page, as well as some custom taxonomy archive for products.

    Thanks

    Plugin Support abwaita a11n

    (@abwaita)

    Glad to hear back from you!

    It’s good to know that Products By Attributes & Variations for WooCommerce is suitable here. We’d like to explain further, but we’re not able to discuss paid extensions on the forums.

    Thus, please contact us via a presales ticket at WooCommerce.com > My Account > Support. You may need to login to a WooCommerce account before you can access that page.

    Please include a link to this forum thread.

    We will be able to help you further there.

    Hi @theblueli

    We’ve not heard back from you in a while, so I’m marking this thread as resolved. If you have further questions, please feel free to open a new topic.

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Unique URL slug for variable product’ is closed to new replies.