Viewing 3 replies - 1 through 3 (of 3 total)
  • Hey @eaonflux,

    It looks like you’re wanting to create a link directly to a variation. If that’s the case it is possible to do that. Essentially you have to add the attributes to the URL. If it’s a global attribute, then it will start with pa_ but if it’s an attribute just for this product then that’s omitted. Here’s a sample URL to get a variation that has the color blue and size small:

    
    https://yoursite.com/product/mug/?attribute_pa_color=blue&attribute_pa_size=small
    

    If you need more than one variation, you add an & and then tack on the next one.

    See if that works for you. Let me know if you have any questions.

    Hi @eaonflux,

    One other way to get a link directly to a variation is to add that variation to the cart and then view the cart. It should have a link to the product there. If it’s a variable product, it will link directly to the variation.

    You can use that as a shortcut to generating these deep links.

    I’m going to mark this as resolved now. If you have any questions, please open up a new topic and we’ll be happy to help out.

    Cheers

    Thread Starter Chris

    (@eaonflux)

    ah thanks i see it. i can reuse that code WC is using to generate these links. now i can focus on making pretty links redirects for these urls

    • This reply was modified 4 years, 9 months ago by Chris.
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘enHanced Product Variantions’ is closed to new replies.