-
-
Notifications
You must be signed in to change notification settings - Fork 131
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
Inconsistent value for ProductAttribute name and option in LocalProductAttribute and GlobalProductAttribute #280
Comments
This still dosent work as its supposed to |
@kireSuomi local product attribute values don't have labels, unlike global product attribute values which are taxonomy terms in the underlying data structure, just the string value itself 🤔. Label data doesn't exist for local attribute in core WooCommerce, so the value is just passed back. Do you feel this behavior is incorrect. |
But the name is stored on the product in the database, im just supprised WCGraphql dosent cover it.. |
Describe the bug
When query the attributes of a variable product, the name field of LocalProductAttribute return the name of attribute, but the name of GlobalProductAttribute return the slug of attribute. The same result goes to the options field for both.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
the name and option fields should be either slug or name of attribute for both local and global attribute.
Screenshots
The text was updated successfully, but these errors were encountered: