New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update: make "Used for variations" checkbox unchecked by default when adding new attribute to product type variable #38003
Conversation
… adding new attribute to product type variable
Hi @blenardpazari, Thanks for taking the time to submit this change. You don't seem to have provided a description, though, and actually that's something we find really useful when reviewing these kinds of changes. In fact, our default template provides a nice structure and some useful guidance for this. Besides supplying a description complete with testing instructions, it would also be great if you could provide a changelog file. We actually provide tools to help with this, please see this guide to learn more. Once it's updated, we'd be happy to take another look! |
@barryhughes description updated. |
Thank you! @octaedro I think the recent change in behavior with the used for variations checkbox may relate to the change made here. Does rolling that back as @blenardpazari suggests (so that it is unchecked by default) pose any concerns for you, in relation to that earlier piece of work? |
@blenardpazari Hi there! I’m Jarek, a WooCommerce designer working on core product experience. Thanks for bringing this to our attention.
Would you mind sharing why? During user research, we learned that many people struggle with finding and checking this box, which leads to other problems with creating and managing variations. How do you or your clients use this box? |
@jarekmorawski having issues with many clients: For example: They have an attribute "pa_size" which is used as variations. Additionally, they have many other attributes that are not used as variations. When they add or update the attribute of a product (let's say "pa_brand"), they forget to uncheck the "Used for variations" checkbox, which results in the product not being able to be added to the cart on the front-end. I understand that this is not a bug, but rather a mistake made by the client (shop manager), but I think it would be better if the checkbox was unchecked by default, since there are many attributes that are not used as variations. This happened with a potential client after the latest WooCommerce update, and the client didn't notice it. They added attributes to many products, resulting in lost sales for several days. |
I don't seem to experience quite the same thing:
I understand this is not optimal, and may even be confusing—especially if we consider your example of a brand attribute—but it doesn't seem like it would block the sale. However, I wanted to check in case I'm misunderstanding what is happening. |
@barryhughes |
For sure 👍 I suspect it may be the sort of situation where there is no single solution that will work for everyone, but let's wait on further thoughts from @jarekmorawski and @octaedro and then we can decide whether to merge. |
Hi there! Thanks for sharing your situation. Is the As for the Feel free to let me know if you have any questions. I'm happy to help! |
@jarekmorawski attributes are global. |
Thanks for the input, everyone. Since we are not making further changes to the checkbox, I'll go ahead and close this. |
When you are editing a variable product in the admin dashboard and want to add an attribute, the "Used for variations" option is checked by default.
`
'
This has been added in recent versions. We are forced to always to remove it using the filter:
add_filter('woocommerce_attribute_default_is_variation', '__return_false');
It is not a bug, but I think it is better to be unchecked by default as in old version.
Submission Review Guidelines: