For OpenCart 2.3, 3.0, 4.0 and 4.1
IMPORTANT: a toolbar does not make a shop compliant with the European Accessibility Act, WCAG or any other law or standard. Compliance depends on your theme, your content and how the whole site works with a keyboard and a screen reader. This module is one helpful part of that work. Test your shop with real assistive technology, and do not describe the shop as "compliant" because of it. The module says this on its own settings page.
THE TOOLBAR (a round button, bottom left or bottom right)
The skip link
THE AUDIT (Extensions > Modules > Supreme Accessibility Toolbar and Audit)
- A "Skip to main content" link that appears when a keyboard user presses Tab. It finds the main content of your theme (#content, main or role=main) and moves the focus there; if the theme has none, the link is removed instead of pointing nowhere.
- Reads your shop data, enabled items only, and lists what to fix with a link to each edit page:
- banner pictures without a title (the title is the alternative text of the picture),
- products without a picture,
- products whose name is shorter than 3 characters,
- categories without a picture.
- It does not test your theme, colours, contrast, forms or keyboard use, and says so.
Safe by design
- The statement address must start with http://, https:// or /; anything else (javascript:) is refused when saved and ignored if it got into the settings another way. Texts are cleaned and escaped. The audit needs a logged-in admin.
Notes
- The toolbar's own JavaScript (the buttons, the saved choice, the skip link target, Escape) and its look in your theme were not clicked in a browser; the tests check the markup, the settings and the audit. Text size uses the browser's zoom on the page body, grayscale uses a filter, high contrast overrides colours: test them in your theme, and in Firefox and Safari too.
- The admin screens are in English only; the storefront words are translatable.
- Tested on OpenCart 4.1.0.4, 4.0.2.3, 3.0.5.1 and 2.3.0.2 with the real admin installer (install, settings, the toolbar markup and its settings, the audit with test data, uninstall, reinstall).