Indeed, I have at least 2 attributes on product pages. When user visit page, he starts by selecting First attribute and then the second one. But when user wants to change the first one back, there are options unavailable depending of the 2nd attribute choice. Is there a way to keep visible and clickable first attribute options no matter what the second attribute is ? I sought that resetting 2nd and 3rd attributes when user click on first attribute dropdown would be a solution but I can’t achieve that.
So if someone as an idea for a WP function or a tutorial or a good free plugin that could handle that, it would be great.
Hey there! Thanks for contacting us. I’m happy to help you.
From what you explained it, I tried to replicate this on my site, but couldn’t. The first option was always showing normally.
Do you mind sharing a URL of a product with this issue so we can take a closer look and try to replicate it on our end?
Furthermore, I’d like to understand your site properly. Please share with us the necessary information below for us to investigate the issue further:
System Status Report which you can find via WooCommerce > Status > Get system report > Copy for support. Fatal error logs (if any) under WooCommerce > Status > Logs. Then you can use the selector to search for Fatal Errors. You could copy and paste your reply here or paste it via https://gist.github.com/ and send the link here.
Thank you very much for your reply and your time !
I can share you the url of the page Im talking about but it maybe NSFW.
But what I can do is sharing this screenshot that show the problem :
In first case, 1st attribute options all exist with 2nd attribute first option In second case, only 3 of the 1st attribute options exist with the 2nd attribute 2nd option. And so some of the 1st attributes dont show anymore if the 2nd attribute 2nd option is selected by the user before reselecting first attribute (I think it s the expected behaviour of woocommerce)
Maybe it could be easier for you to understand with that :
I’ve three attributes on my product page thickness, bedsize & dimensions. When user visit page first time every field is unselected then he select the first, second & third attributes but once he has selected all attributes and wants to change first attribute thickness then button got disable.
It’s only work if user reloads a website or clicks on clear selection button.
What I want is when user has changed is first attribute then automatically second and third attribute resets or set to default option.
In the end, I’d would like that : when users open the first dropdown, it always show all options and make them clickable…
I hope I’m clear enough. English is not my mother language so I’m sorry :/
Thank you very much for reading me 🙂
This reply was modified 2 years, 2 months ago by servicewebdalton.
Thank you very much for your help and your kindness 😉
Finnaly, I did what you suggested. I did create all variations, then hiding the price and changing the “out-of-stock” message so it don’t mislead users.
Nonetheless, it’s not perfect as it can lead to selections that don’t lead to purchasable variations. That what I was wanting to do unfortunately.
Well, if in the future, WC could allow this optional function : reset all other attributes when user clicks on the first/main attribute, it would be so great.
Thank you again for your help and have a nice week 😉
I’m glad to hear that you were able to implement the changes suggested by my colleague to achieve the desired results.
As for your suggestion to have a function that resets all other attributes when a user clicks on the first/main attribute is a great idea, you can directly have it requested from the WooCommerce feature request form here.
You can read more about the feature request portal from this detailed guide.
Thank you again for your feedback and for choosing WooCommerce.
Have a good day!
Viewing 5 replies - 1 through 5 (of 5 total)
The topic ‘Keep all variations in first attribute when user chose a second attribute’ is closed to new replies.