-
Notifications
You must be signed in to change notification settings - Fork 10.7k
Show correct confirmation message when removing an attribute from a product #38355
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
Conversation
|
Hi @nathanss, @woocommerce/mothra-enhancements Apart from reviewing the code changes, please make sure to review the testing instructions as well. You can follow this guide to find out what good testing instructions should look like: |
Test Results SummaryCommit SHA: 8b3bc7f
To view the full API test report, click here. To view the full E2E test report, click here. To view all test reports, visit the WooCommerce Test Reports Dashboard. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice job! Code is simple and works as intended.
It is very confusing that the checkbox actually is checked but invisible when it's not a variable product... I had to handle this in the tracks events as well...
|
Thanks for spotting this, @mattsherman. Later on, we can try not to have any notice because a regular attribute is something the user can easily add back in without losing important product data.
What checkbox do you mean, @nathanss? Anything we can fix or simplify? |
💯 Good idea... I'll spin up a quick PR later to take care of this... will be just as much time as creating an issue for us to track. 😄
It's the "Used for variations" checkbox. It isn't visible to the user when not a variable product, but it's still there in the DOM. Would be something to consider cleaning up in the future, but it won't have any affect on the UX. Well, not strictly true... because I believe since it is checked right now, even when hidden, that any attributes created while a simple product will default to "Used for variations" when the product is later converted to a variable product. |
🤯 We should definitely clean this up one day. Imho the attribute props should clear once it's removed. Even in the new UX, it will make sense to not leave the box on when the user moves a global attribute from |
@jarekmorawski This is addressed in #38386 |
Submission Review Guidelines:
Changes proposed in this Pull Request:
This PR fixes the confirmation shown when removing an attribute from a product.
Previously, when removing an attribute from a
Simpleproduct, the confirmation message would make mention of "variations".Before
After
How to test the changes in this Pull Request:
With a
SimpleproductSimpleproduct.With a
Variableproduct