Codeinwp / Codeinwp/woocommerce-product-addon
Add "none" support for Selected Option field
Nobody has claimed this yet.
- Dominant language
- PHP
- Stars
- 15
- Forks
- 9
- Avg merge
- 3d 17h
- Merged PRs (30d)
- 16
Description
What problem does this address?
While working on a ticket, I noticed that there is no way to avoid having options selected by default.
Because of this, when entering a product's page, there will be an already-made selection and the display conditions will be triggered.
In this case, I wanted to avoid displaying some fields based on the Select conditions, but because there is a default selection, they will appear first on the page.
What is your proposed solution?
Allow entering "none" or if nothing is typed there, don't inherit the first option as default.
Will this feature require documentation? (Optional)
None
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by tracing the Selected Option field behavior described in the issue, focusing on how the first option becomes the default and how display conditions react to it. Implement support for an explicit or empty “none” value, then verify that no option is selected initially and dependent fields remain hidden until a selection is made.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- php
- Domain
- backend
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 42/100