on add to cart button causing issues for some users
-
Hey guys,
I’ve had several customers mention that they couldn’t figure out why they couldn’t click the add to cart button. They hadn’t selected the product options and weren’t able to tell the button was supposed to be unclickable. The button hover text isn’t very obvious and users often don’t leave their mouse over the button long enough for it to appear.
Greying out a button isn’t very intuitive to many people, especially in a web context where users expect to be given information like this via an alert box or popup.
Also, because the button has the disabled attribute, the browser doesn’t register any clicks against the element so it’s impossible to use jQuery to add a custom alert of our own.
Proposed improvement:
Making the “Select product options before adding this product to your cart” message appear in a woocommerce-info box, or a popup, would be much more intuitive. And disabling the button via javascript rather than using the disabled attribute seems to be a common workaround. Adding a “button-disabled” CSS class to the button (when disabled) would allow clicks on the disabled button to be caught and handled differently to when the button was active.
- The topic ‘on add to cart button causing issues for some users’ is closed to new replies.