OpenCart
Official CaptchaLa extension for OpenCart 4. It plugs into OpenCart's CAPTCHA slot, so it protects every form you tick under Captcha Page in the store settings.
Every widget is backed by a server-issued, single-use token, and each submission is checked on your server before OpenCart accepts it. A failed check returns an error on the form.
What it covers
| Captcha page | OpenCart form | Action |
|---|---|---|
| Register | Account registration, guest checkout registration | register / checkout |
| Review | Product review | comment |
| Comment | Blog comment | comment |
| Returns | Product returns | generic_form |
| Contact | Contact us | contact_form |
Requirements
- OpenCart 4.0.2+ or 4.1.x (OpenCart 3.x is not supported)
- PHP 8.0+
- A CaptchaLa account — get your App Key + App Secret at
dash.captcha.la
Install
- Build
captchala.ocmod.zip: runbuild.shin the repository (it needs Composer 2.2 or later). It writes the ZIP, with the PHP SDK bundled, torelease/. Keep the file name: OpenCart takes the extension code from it. - In the OpenCart admin, go to Extensions → Installer, upload
captchala.ocmod.zipand click Install on the CaptchaLa row. - Go to Extensions → Extensions, choose Captchas, then Install CaptchaLa and click Edit.
Configure
- Paste your App Key and App Secret, choose a Widget mode and Language.
- Click Test connection, switch Status on and save.
- Go to System → Settings, edit your store, open the Option tab, set Captcha to CaptchaLa and tick the Captcha Page entries to protect.
| Setting | Default | Description |
|---|---|---|
| App Key | — | Public key from the CaptchaLa dashboard. Required. |
| App Secret | — | Server secret, used to issue and validate tokens. Required; never sent to the browser. |
| Widget mode | bind | bind (the check runs when the visitor presses the form's submit button), embed (a verification bar inside the form), popup or float. |
| Language | auto | A BCP-47 tag such as ja or pt-BR, or auto to follow the visitor's browser. |
| Status | off | Turns the extension on. |
Screenshots



Uninstall
In Extensions → Installer, remove the CaptchaLa entry. Its settings are cleared; the extension adds no database tables.
Troubleshooting
- The widget does not appear. Check that Status is on, that Captcha is set to CaptchaLa in the store's Option tab, and that the form is ticked under Captcha Page.
- Every submission is refused. Make sure the App Key and App Secret belong to the same app, and that your store's domain is allowed for that app in the dashboard.
- Trying it out. The public test keys let you check the full flow without an account.
Links
- Source: github.com/Captcha-La/captchala-opencart
- Support: [email protected]