When Add to Cart only changes a small count in the corner, many shoppers miss it. Put a clear message beside the button, mark it so screen readers announce it, and show the quantity already added.

Pressed once, then again

A shopper on a small online store presses Add to Cart beside a pair of gardening gloves. Nothing near the button changes, so she waits a moment, then presses it again.

Up in the corner of the page, a small number has gone from 0 to 2. She does not see it, and unless she reads the cart carefully at checkout, two pairs arrive.

To her, the button seemed to do nothing. To the store, it looks like an order for two.

Why the page stays silent

Many carts now add an item without reloading the page. A script sends the item to the store in the background, then updates the count in the corner.

For a sighted visitor with a mouse, looking at the right spot, that is quick and smooth. Everyone else has to notice a small change far from where they pressed.

Nothing in the page tells assistive software that anything happened. The button looks the same, keeps its place and says exactly what it said before.

Who misses the change

The last group can include any shopper on any day, which is why silent carts produce duplicate orders from people with no disability at all.

A message beside the button

The first fix is to confirm the action where the shopper is looking. Below the button, show a short message naming the item just added, with links to view the cart or keep shopping.

Make it large enough to read without zooming, and leave it in place until the shopper moves on. A message that fades after two seconds is gone before a magnifier user finds it.

Show the quantity already in the cart beside the button as well, such as "1 in your cart". A shopper about to press again can see that the first press worked.

An announcement screen readers can hear

A visible message still says nothing to someone who cannot see it. Mark the message area as a live region, a setting in the page's code that tells screen readers to read out any change to it.

The setting, aria-live, comes from WAI-ARIA, a W3C specification for making scripted pages accessible. Set to polite, it waits until the screen reader finishes what it is saying, then reads the message.

Support still differs between screen readers and browsers, so test it. Where it fails, sending the shopper to the cart page, or reloading with a message at the top, is understood everywhere.

Stopping the second press

While the item is being added, change the button's label to Adding and ignore further presses. Once the item is in the cart, the label can say Added for a few seconds.

On the cart page, show each quantity in a box the shopper can change, with a clear link to remove an item. Someone who did press twice can then fix it in a moment.

The confirmation email should list quantities clearly too, so a mistake is caught before the parcel goes out.

A worked example

In Maple Ridge, a cake decorating school teaches Saturday courses in a converted bakery. Between courses it sells piping tips, gel colours, cutters and turntables through a small store on its website.

A long-time student who uses screen magnification wrote to say she had twice received two of everything. Each time she had pressed Add to Cart, seen nothing change and pressed again.

The store's cart added items in the background and changed only a count beside a basket icon in the top corner. At her level of magnification, that corner was never on her screen.

The school's web developer added a message box below each button naming the item, with links to the cart and back to the course supplies. The box was marked as a polite live region.

Each product page also shows how many are already in the cart, and the button reads Adding, then Added, as the request goes through.

The confirmation appears inside the patch of screen she is actually looking at, and screen readers speak it for those who use one. A second press has become a choice rather than a guess.

Testing it yourself

Add an item using only the keyboard: tab to the button and press Enter. Check that the message appears near the button and that the focus stays where it was.

Then zoom the screen with the magnifier built into Windows or the zoom built into Macs, until only the button area shows, and add another item.

Finally, turn on a screen reader. Macs and iPhones include one, and Windows users can install a free one. Listen for the confirmation after each press.

Other updates that happen in silence

The same pattern turns up elsewhere: a quantity changed in the cart, a discount code accepted, a product list filtered by size, an error added to a form after the submit button.

Form errors are a common case. A message that appears at the top of a long form, far from the field, leaves screen reader users guessing why nothing was sent.

Each needs the same two things: a visible message near where the shopper acted, and an announcement that assistive software can hear.

The counter-case

A store whose Add to Cart button opens the cart page already confirms every press. The new page loads, the screen reader announces it, and the cart lists what was added.

For that store, the silent update is not a problem. What remains is to make sure the cart page says plainly, at the top, what was just added and how many.

Making the cart answer back

  1. Add an item using only the keyboard.
  2. Zoom the screen and add another.
  3. Turn on a screen reader and listen for a response.
  4. Put a message directly below the button.
  5. Mark that message as a polite live region.
  6. Show the quantity already in the cart.
  7. Retest in a second browser.

Step four helps every shopper, whether or not they use assistive technology. A confirmation where the eye already is answers the question that makes people press twice.

A badge claiming that the site meets the accessibility guidelines needs this kind of testing after every change, as an accessibility badge earned once and never checked again explains.


Frequently asked questions

Why does Add to Cart seem to do nothing?

Many carts add the item in the background and change only a small count in a corner, so a shopper watching the button sees no response.

Why do screen reader users miss it?

A screen reader reads what the user is on or asks for. A change elsewhere on the page goes unspoken unless the page announces it.

What is a live region?

An area of the page marked with the aria-live setting, so screen readers read out any change to it, such as a confirmation that an item was added.

How do we stop accidental duplicate orders?

Confirm each press beside the button, show how many are already in the cart, ignore presses while an item is being added, and make quantities easy to change.

Can we test this without special equipment?

Yes. Use only the keyboard, zoom the screen with the built-in magnifier, and turn on the screen reader included with Macs or a free one for Windows.

What if our button already opens the cart page?

Then the new page confirms the press, and screen readers announce it. Check that the cart page says plainly, near the top, what was just added.

West Coast Media Solutions Inc. provides web design, web development, hosting, digital marketing, and business consulting to organisations across Canada, drawing on more than twenty-five years in the field.

Shoppers ordering two by mistake?

Give us the address of your store, and we will test the cart with a keyboard, a magnifier and a screen reader.

Start a Conversation