Hi there!
I completely understand your concern. This is actually the default behavior in WooCommerce. When a user selects the number of pieces (for example, 28), only the sizes that are available with 28 pieces will appear. Similarly, if a user selects a size, only the number of pieces available for that size will be shown — which is exactly what you’re seeing on your site.
However, if you’d like all sizes to appear regardless of the number of pieces selected, you’ll need to create a variation for every size with every number of pieces.
For example, if you want the “Small” size to still show when 28 pieces are selected, you’ll need to add a variation that includes “Small” with 28 pieces. You can then mark that variation as Out of Stock if it’s not actually available.
I hope this clarifies the situation! Let me know if you have any further questions.
Thank you for your response. But I don’t want to create variation. so I am applying custom script which helps me to achieve what I want. because if you refer this website https://rforrabbit.com/products/feather-baby-diapers?variant=43902016323801 regardless of technology, this should be the ideal way. I think woocommerce needs to improve this.
Needs to work on some areas. Otherwise we as a developer will find one or the other way to achieve what we want.
Thanks again.
Hi @riyaseasternts,
It’s great to hear you’re applying a custom script to make it work the way you prefer, that’s exactly the kind of adaptability WooCommerce is built for.
If you’d like to see this behavior supported natively in future versions, feel free to submit a feature request here:
https://woocommerce.com/feature-requests/woocommerce/
If it gathers enough interest, our team may consider adding it to the roadmap.
Hi @riyaseasternts,
Have you had the chance to submit a feature request yet via https://woocommerce.com/feature-requests/woocommerce/? It’s the best way to share your idea directly with the team and help shape future improvements.
I’ll go ahead and mark this thread as resolved for now. Feel free to reach out again if you need any other help.
If you found the support helpful, we’d really appreciate a quick review: https://ww.wp.xz.cn/support/plugin/woocommerce/reviews/#new-post
Thanks again and happy developing!