Skip to content

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 pageOpenCart formAction
RegisterAccount registration, guest checkout registrationregister / checkout
ReviewProduct reviewcomment
CommentBlog commentcomment
ReturnsProduct returnsgeneric_form
ContactContact uscontact_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 ​

  1. Build captchala.ocmod.zip: run build.sh in the repository (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.
SettingDefaultDescription
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 modebindbind (the check runs when the visitor presses the form's submit button), embed (a verification bar inside the form), popup or float.
LanguageautoA BCP-47 tag such as ja or pt-BR, or auto to follow the visitor's browser.
StatusoffTurns the extension on.

Screenshots ​

CaptchaLa extension settings in the OpenCart admin after a successful Test connection

OpenCart account registration form with the CaptchaLa bar showing Verified

OpenCart contact form with the CaptchaLa bar

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.

MIT-licensed examples · CaptchaLa is operated independently