Skip to content
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

Add attribute data to ProductOption and ProductOptionValue #1736

Draft
wants to merge 2 commits into
base: 1.x
Choose a base branch
from

Conversation

adevade
Copy link
Contributor

@adevade adevade commented May 10, 2024

This PR adds attribute data to ProductOption and ProductOptionValue.

It will be useful for storing meta data related to a specific option (such as a description, or a link to a sizing chart) and to a specific option value (such as a hex value for a color, or a short description).

It hasn't been tested yet, and no UI has been added, since I didn't know if this would get accepted. It has previously been requested/discussed here: #1296

If you agree i can clean it up, test it and add a UI to the panel. Or feel free to push changes as necessary. 👍


Off topic

I also agree with the linked discussion that it would be useful to have a handle on ProductOptionValue for usage in query strings for example. What are your thoughts on this?

Copy link

vercel bot commented May 10, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
lunar-docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 10, 2024 10:27am

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.

None yet

2 participants