Skip to content

fix: use term name for label instead of taxonomy slug in product attribtes. #936

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

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

creative-andrew
Copy link
Contributor

@creative-andrew creative-andrew commented May 22, 2025

This pull request introduces improvements to how variation attributes are handled and resolved in the WooCommerce GraphQL integration. The key changes include adding a label field to variation attributes and simplifying the resolution logic for the label field.

Enhancements to variation attribute handling:


When asking for the "LABEL" of a term in product attributes, we are getting the taxonomy slug.

BEFORE
image

Notice how we are getting color as the label of green.

AFTER
image

Notice how we are getting Green as the label of green as it should be.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant