--- title: OpenCart description: Install the CaptchaLa OpenCart 4 extension to protect registration, reviews, returns, contact and blog comment forms. --- # 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`](https://dash.captcha.la) ## Install 1. Build `captchala.ocmod.zip`: run `build.sh` in the [repository](https://github.com/Captcha-La/captchala-opencart) (it needs Composer 2.2 or later). It writes the ZIP, with the PHP SDK bundled, to `release/`. Keep the file name: OpenCart takes the extension code from it. 2. In the OpenCart admin, go to **Extensions → Installer**, upload `captchala.ocmod.zip` and click **Install** on the CaptchaLa row. 3. Go to **Extensions → Extensions**, choose **Captchas**, then **Install** CaptchaLa and click **Edit**. ## Configure 1. Paste your **App Key** and **App Secret**, choose a **Widget mode** and **Language**. 2. Click **Test connection**, switch **Status** on and save. 3. 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 ![CaptchaLa extension settings in the OpenCart admin after a successful Test connection](/images/plugins/opencart/admin-settings.webp) ![OpenCart account registration form with the CaptchaLa bar showing Verified](/images/plugins/opencart/register-form.webp) ![OpenCart contact form with the CaptchaLa bar](/images/plugins/opencart/contact-form.webp) ## 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](/testing) let you check the full flow without an account. ## Links - Source: [github.com/Captcha-La/captchala-opencart](https://github.com/Captcha-La/captchala-opencart) - Support: [supply@captcha.la](mailto:supply@captcha.la)