• Resolved Mister Pixel

    (@misterpixel)


    Hi,

    I need to assign an attribute to a specific variation of a product.
    Example:
    Product Z in color red is made with material X.
    Product Z in color blue is made with material Y.

    Color is the variation and material is the attribute bind to the variation.

    Is this possible (perhaps with a third-party plugin)?

    Thank you in advance!

Viewing 7 replies - 1 through 7 (of 7 total)
  • Hi @misterpixel

    Thanks for reaching out!

    I understand that you want to assign a specific attribute to a specific product variation, however, I am confused about your end goal here. How do you want the attribute to be displayed on your site?

    Meanwhile, I replicated the scenario on my test site creating only one attribute: Color with values: Blue and Red. This produced two (2) variations only.

    Then, under the Descriptions field, I entered: This variation is made with material _.

    Image Link: https://snipboard.io/6oOCad.jpg

    Output:

    Image Link: https://snipboard.io/NUkQLa.jpg

    Does this put you in the right direction? If not, if you could please provide more context to what you want to achieve here so that we could address you further.

    If a screenshot would be helpful, I’d recommend using https://snipboard.io or https://skitch.com/. You can share the direct link to the image as a response to this topic.

    Thanks!

    Thread Starter Mister Pixel

    (@misterpixel)

    Hi @xue28,

    Thank you for your reply!

    I do want to display the attribute on the site, under the Additional Information tab to be precise.
    Currently the materials (attribute) are listed there among all the other attributes.
    But it now shows all the assigned materials on one line.
    What I would like to see is that the material gets updates based on the product variant a customer selects.
    That’s why I want to connect a specific attribute to a specific variation.

    Your proposal to use the description field is a nice workaround.
    But I would really like to have all the product details in the additional info table.
    And the material attribute is also used in a filter on the products archive.
    That’s why I prefer to use the attribute itself instead of the description.

    Do you have any other suggestions on how to achieve this?

    Thanks!

    Saif

    (@babylon1999)

    Hello @misterpixel,

    What I would like to see is that the material gets updates based on the product variant a customer selects.
    That’s why I want to connect a specific attribute to a specific variation.

    Just to make sure I fully understand you here, you want only X variation of Y product to be under the list of products of a certain attribute.

    This is a very specific scenario, the closest thing I found to achieve it is with the following extension: https://woocommerce.com/products/products-by-attributes-variations-for-woocommerce/

    As with all extensions in our store, the plugin above comes with a 30-day refund policy. If the product doesn’t work the way you need it or you think another product would work better, we are more than happy to provide a full refund.

    Hope it helps!

    Thread Starter Mister Pixel

    (@misterpixel)

    Hi @babylon1999,

    Thank you for your reply!

    I had already found that plugin myself, but that plugin “splits” a variable product into single products on the product archives.
    And in my scenario I’d like to keep the variable products as they are on the product archives.
    I only want to update an attribute under the product details on the product detail pagina based on the selected product variant.
    It seems that this isn’t possible and that I have to accept that.

    Nevertheless, thanks for your help!

    Hi @misterpixel

    Thank you for providing further details to your inquiry here.

    I understand that you want to dynamically display the attribute under the Additional Information tab based on the selected product variation, is that correct?

    I did some research and found this article could be a good starting point: WooCommerce: Dynamically Update Variable Product Attributes @ Single Product

    Hope this helps!

    Thread Starter Mister Pixel

    (@misterpixel)

    Hello @xue28,

    Thank you for your suggestion!

    That article is indeed a good starting point, but it’s still not exactly what I’m looking for.
    The biggest difference is that in my case the material isn’t a selectable variation option.
    The material attribute (not a variation) has to be connected to a color (variation), which apparently isn’t possible (out of the box).

    I guess I need to come up with a different approach to tackle this issue.
    Perhaps just use the description field like you suggested.

    Hi @misterpixel

    I understand that what you want to achieve would require customization to do this.

    These forums are meant for general support with the core functionality of WooCommerce itself. What you want to achieve would require customization to do it. Since custom coding is outside our scope of support, I am leaving this thread open for a bit to see if anyone can chime in to help you out.

    For questions related to development and custom coding, your best bet is to ask on any of these channels for support. We’re lucky to have a great community of open-source developers for WooCommerce, and many of our developers hang out there, too.

    WooCommerce Developer Resources Portal
    WooCommerce Advanced Facebook group
    WooCommerce Community Forum
    WooCommerce Developer Slack Channel.
    – Hire a WooCommerce Expert

    Hope this helps!

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Variation specific attributes’ is closed to new replies.