Chatrixa Developers

OpenCart Extension

WhatsApp phone verification for the OpenCart 4 checkout.

Download: chatrixa_otp.ocmod.zip

What it does

Requirements

Installation

  1. Download chatrixa_otp.ocmod.zip above.
  2. In the OpenCart admin: Extensions → Installer, upload the zip.
  3. Go to Extensions → Extensions, choose type Modules, find Chatrixa OTP and click Install (this registers the two catalog events), then Edit.
  4. Enable the module and enter:
    • Chatrixa URL — e.g. https://chatrixa.com
    • API Token — from Chatrixa → Developer Tools → Access Tokens (full access, or Specific permissions with Send and verify OTP codes — otp:send)
    • Optional template name and language
  5. Save.

How it works

Two events are registered on install and removed on uninstall:

Event Trigger Purpose
chatrixa_otp_inject_ui catalog/view/checkout/checkout/after Appends the widget markup and JS to the checkout page
chatrixa_otp_enforce catalog/controller/checkout/register.save/before Rejects the step with a telephone-field error when the phone is unverified

The storefront AJAX endpoints are extension/chatrixa_otp/otp/chatrixa.send and …chatrixa.check; the verified number is kept in the OpenCart session, so enforcement happens server-side.

Enforcement scope: the guard runs on the checkout register/guest step — where a phone number is entered or changed. A logged-in customer whose saved account details are reused without re-submitting that step is not re-verified; add the enforce event to your checkout's confirm route if you need every order re-verified.