Hi @webqueenhtc,
By default, WooCommerce can handle up to 50 variations per product. If you’re exceeding this limit, you might experience some issues. In your case, with 15 colors and 3 hems, you have 45 variations, which is within the limit.
However, the problem might be related to how you’re setting up your variations. When you add a new color and regenerate the variations, ensure all possible combinations are correctly set. This includes each color with each type of hem.
If you’re still having trouble, please try to clear your browser cache or try a different browser. Sometimes, such issues can be due to browser caching.
Also, remove all variations, add all necessary Attributes, and then hit the Generate Variations button. This will automatically create variations for you. More info: https://woo.com/document/variable-product/
If the problem persists, please provide us with more details or screenshots of your variation settings so we can investigate the issue further.
Looking forward to hearing from you soon.
I cleared my browser cache and have tried other browsers as well. Still the same. As soon as I have more than 10 colors, the attributes is different. see screenshot below:
screenshot: https://unitedknits.com/wp-content/uploads/abbribute-less-than-10-scaled.jpg –when it’s less then 10 colors, if you click on the HEM, it will only display available colors (see it at https://unitedknits.com/product/wool-beanie-copy-copy/)
https://unitedknits.com/wp-content/uploads/abbribute-more-than-10-scaled.jpg — as soon as more than 10 colors available, the “X” on the unavailable color is now gone (see it at https://unitedknits.com/product/wool-beanie-4/). If you click on the first two HEM which is the 1×1 and 2×2, the only color that is available should just be NATURAL.
https://unitedknits.com/wp-content/uploads/attribute-scaled.jpg — my attribute
https://unitedknits.com/wp-content/uploads/Variations-scaled.jpg — my variations
TIA
This could be unrelated, but I’ve run into this when my quantities are not correct. Since Woo creates a variation for each combination, be sure that every combo (variation) has stock. For example, if hem 1 / color blue does not have stock, it will not show that variation (1 / blue) as soon as you choose hem 1.
Hi @webqueenhtc,
Could you please conduct a conflict test to see whether any plugin or theme is creating this issue or not? To do so, follow these steps:
- Temporarily switch your theme to Storefront
- Disable all plugins except for WooCommerce
- Repeat the action that is causing the problem
If you do not see the same problem after completing the conflict test, then you know the problem was with the plugins and/or theme you deactivated. To determine which plugin is causing the problem, reactivate your other plugins one by one, testing after each, until you find the one causing conflict. You can find a more detailed explanation on how to do a conflict test here.
Additionally, as @jrobie23 explained, the issue you’re experiencing could be related to each variation’s stock management. WooCommerce creates a variation for each combination of attributes, so a specific combination (e.g. 1×1 Hem / Blue Color) that does not have stock will not be displayed as an available option.
Please ensure that each variation combination has a stock quantity assigned. You can manage this by entering the individual variation and setting the stock quantity.
Let us know how that goes. Looking forward to helping you.
Thanks @jrobie23 & @shameemreza!
I deactivate all plugins except WooCommerce and still the same.
I understand about not having stock. My question is if there isn’t stock, then the “X” should still be on the colors when a product is having more than 10 attributes. As soon as I add 1 more attribute, the “X” disappeared, it just display the wording when the color is selected. I like how it put an “X” on colors that is not available than the writing “Sorry, this product is unavailable. Please choose a different combination.” I guess I will just have to make the wording in red.
Again, I’m sorry if I’m not 100% understanding. š
I noticed you have the color ABOVE the hem. I think it would make sense to have the hem first and then the color. I believe you can do this in the attributes section of the product admin screen. Maybe then it will use the FIRST attribute to filter out the SECOND attribute. (again, I’m honestly not sure if this will help at all!)
@jrobie23 no problem. I created a test product as you suggested at: https://unitedknits.com/product/beanie-test/ – still the same. as soon as I added one more color, instead of the the “X” on the unavailable color, it just display the message.
this one: https://unitedknits.com/product/beanie-test2/ – has 10 colors – so if you click on the hem type, it will only show you the available color to that hem.
Very helpful. Thanks.
I noticed that you’re using “woo-variation-swatches” plugin. A quick peek at their plugin page makes it very clear that they only support 30 variations with the free version. https://wordpress.org/plugins/woo-variation-swatches/
You’ll need to upgrade.
@jrobie23 Thank you! forgot about using ‘woo-variation-swatches’…