Support » Plugin: WooCommerce » Conditionally select one attribute based on another

  • Resolved lychee128

    (@lychee128)


    I have 2 custom attributes for my products and each attribute pairs to another attribute for any given variation.

    For example, attribute 1 is material and attribute 2 is weight. Any material choice can only end up with a specific weight.

    Right now, customers are forced to select both material and weight. They won’t make any mistake since each variation has the right combination. However, is there a way to save customers the second step of selecting a weight?

    In my current shop page, customers select the material from the dropdown and then they are forced to select the weight – even though there’s only 1 choice for the weight.

    I’d like to be able to have the weight automatically selected whenever a material is chosen as there can only be 1 weight.

    Thanks!

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Support Con Schneider

    (@conschneider)

    Automattic Happiness Engineer

    Hi there,

    I’d like to be able to have the weight automatically selected whenever a material is chosen as there can only be 1 weight.

    That sounds like a job for an advanced form plugin that can handle conditional logic (If A is selected, offer B – not C).
    I like using Gravity Forms to build advanced form logic. There is a plugin that allows you to use Gravity Forms in conjunction with WooCommerce products.

    What I would recommend is to test out form plugins that have WooCommerce support. You can try to build what you need using the form plugin only. If you find the form is sufficient you can then consider taking it further.

    Kind regards,

    Hi,

    Thanks for the follow-up. I did see some advanced form plug-ins but hadn’t considered them as I thought they were more for other applications than Woocommerce. But I do understand that they have a lot more functionality.

    To use these type of forms, do I generally need to create my own shopping page? Or are many of them directly integrated with Woocommerce?

    I’ll definitely look into it now.

    Thanks!

    Plugin Support mouli

    (@mouli)

    Hi there!
    You can use https://woocommerce.com/products/gravity-forms-add-ons/ to integrate the form into your existing shop.

    You might also consider simply removing the Weight attribute and setting up an Attribute such as material which has values of, for instance:

    • Silk, 100g
    • Cotton, 150g
    • Canvas, 400g

    Then the customer will only have to select one item.

    I hope that helps you to figure it out.
    Feel free to get back to us if you have further questions.

    lychee128

    (@lychee128)

    Thanks!

Viewing 4 replies - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.