Back to Site

Installing Vatdi AI Chat for Joomla 5 & 6

This guide walks you through installing the extension end-to-end. Takes about 3 minutes total.

What you need before you start

Requirement Notes
Joomla 5.0 or newer Joomla 6.x is supported
PHP 8.1 or newer Same minimum Joomla 5 requires
A Joomla Super User account Or any admin with permission to install extensions
Outbound HTTPS to vatdi.com Port 443 from your server
php-curl extension Enabled on virtually every modern host

You do not need a Vatdi account beforehand — Easy Connect creates one for you the first time.


Method A — Web installer (recommended)

Best for every merchant. Works from any modern browser, no SSH needed.

Step 1 — Download the package

Download the latest package, vatdi-joomla-<version>.zip, from https://vatdi.com/integrations/joomla. Do not unzip it — Joomla installs the ZIP as-is.

Step 2 — Upload via the Extensions Installer

  1. Log in to your Joomla admin at https://your-site/administrator/.
  2. Go to System → Install → Extensions.
  3. Click the Upload Package File tab.
  4. Drag the vatdi-joomla-<version>.zip file into the upload zone (or click and pick it).
  5. Wait 5–10 seconds. You should see the green success message:
Installing package was successful.
Vatdi AI Chat v<version>

Joomla installs the package and its three sub-extensions in one step:

Both plugins are enabled automatically on install.

Step 3 — Verify the plugins are enabled

  1. Go to System → Manage → Plugins.
  2. Filter by vatdi. You should see two rows, both with a green tick in the Status column:
    • System - Vatdi AI Chat
    • Content - Vatdi AI Chat

If either is disabled, click the red circle to enable it.

Skip to Connecting your store below.


Method B — Manual (SSH / File Manager)

Use this if your host's PHP upload limit is too small for the ZIP (rare — the package is well under 1 MB), or if your admin session times out during large uploads.

  1. Upload vatdi-joomla-<version>.zip to a folder on your server (e.g. /tmp/vatdi/) via SFTP or your host's file manager.

  2. Extract it in place:

    cd /tmp/vatdi
    unzip vatdi-joomla-<version>.zip
    
  3. In the Joomla admin, go to System → Install → Extensions → Install from Folder tab.

  4. In the Install directory field, paste the absolute path to the extracted folder (the one that contains pkg_vatdi.xml), then click Check and Install.

  5. Confirm the same green success message as Method A.


Connecting your store (both methods)

  1. In the Joomla admin, go to Components → Vatdi AI Chat.

  2. Under Connection, click Easy Connect.

  3. The button spins for a few seconds while it:

    • HMAC-signs a handshake with https://vatdi.com/api/joomla/easy-connect
    • Provisions your Vatdi merchant account if you're new
    • Stores the returned store_key + store_secret

    If the site's admin email already has a Vatdi account, Vatdi first emails that account's owner a link to approve adding the site; the connection completes once it is approved.

  4. When the status line shows Connected to Vatdi since {date}, you're done. The initial catalog sync (articles, plus VirtueMart / HikaShop data when present) keeps running in the background after the button reports success — on a large catalog it can take a few minutes.

  5. Load your site's frontend in a private/incognito window. The Vatdi chat launcher should appear in the bottom-right within 1–2 seconds.

Click Open Dashboard on the config screen to jump straight into your Vatdi dashboard — the button gets a fresh single-use auto-login token every time you click it.

There is no Options button on this screen by design. Joomla's global component-options editor saves only the fields it knows about and rewrites the whole parameter blob, which would erase your stored connection. Manage permissions from System → Global Configuration → Permissions instead.


Verifying it works

Widget renders on the frontend: Open your homepage in an incognito window. The chat launcher should appear bottom-right. In DevTools → Network tab, reload the page — you should see vatdi.com/widget-loader.js return HTTP 200.

Real-time sync fires on save: Edit any Joomla article and save. Within a few seconds the change is reflected when the chatbot answers questions about that article. To verify from the server side, tail the Vatdi log:

tail -f administrator/logs/com_vatdi.log.php

Successful pushes are silent. Errors log as Vatdi AI Chat: pushKnowledge failed ….

Initial catalog sync completed: Open your Vatdi dashboard → Knowledge Base. You should see rows for your articles (and VirtueMart / HikaShop items if either is installed) within a few minutes of clicking Easy Connect. Row counts should match your published, active content — unpublished, archived and trashed items are deliberately excluded.


Push cron (required for VirtueMart, recommended for everyone)

The extension exposes a push-cron URL — your own server calls it on a schedule and the catalog is pushed OUTBOUND to vatdi.com. That matters in two situations:

Set it up:

  1. On the Components → Vatdi AI Chat screen, under Push Cron, copy the URL shown.

  2. Add it to your server crontab:

    */15 * * * * wget -qO- "https://your-site/index.php?option=com_vatdi&task=push.run&token=XXXX" > /dev/null 2>&1
    

The URL includes a 32-character token derived deterministically from your store secret — no separate secret to manage.


Troubleshooting

Everything the extension logs — the component, both plugins and the push cron — goes to a single file:

tail -f administrator/logs/com_vatdi.log.php

Widget doesn't appear on the frontend

Check in this order:

  1. Components → Vatdi AI Chat — is the status Connected and is Enable AI Chat set to Yes?
  2. System → Manage → Plugins, filter by vatdi — is System - Vatdi AI Chat enabled?
  3. Did you flush the Joomla cache after installing? System → Maintenance → Clear Cache → tick all → Delete. (Connecting and disconnecting flush the _system cache group automatically, so this is only needed if you edited things by hand.)
  4. Is your template heavily customised? Every stock Joomla template renders <jdoc:include type="head" /> in <head> — but a hand-rolled template might drop it. If so, copy the widget snippet from the config screen into your template's templates/{your-template}/index.php before </body>.
  5. Is there a Content Security Policy blocking the loader? Add vatdi.com to your CSP script-src and connect-src directives.

Easy Connect returns "Could not determine an admin email"

The extension pulls the merchant email from System → Global Configuration → Site → Mail from address (config.mailfrom). Set that value and retry.

Easy Connect returns a network error

Almost always one of:

Real-time updates don't reach Vatdi

Check administrator/logs/com_vatdi.log.php. Common causes:

VirtueMart items aren't updating the moment I save them

Expected. VirtueMart dispatches its plgVmOn* triggers to its own plugin groups (vmcustom / vmshopper / vmextended), which a Joomla system plugin is not guaranteed to receive. Set up the push cron above and your VirtueMart catalog stays current within the cron interval. A dedicated vmextended plugin is on the roadmap.

HikaShop hooks aren't firing

The extension detects HikaShop via class_exists('hikashop_config') (and VirtueMart via class_exists('VmConfig')). If the module is installed but the class isn't discoverable at plugin load time — usually because the module autoloader was customised — the hooks silently no-op and the push cron picks the changes up instead. Article hooks continue to work either way. Contact support@vatdi.com with your administrator/logs/com_vatdi.log.php tail and we'll add a shim.

VirtueMart syncs zero products

The extension reads VirtueMart's translation tables (#__virtuemart_products_<lang>) using VirtueMart's OWN configured language, falling back to the site default. If nothing syncs, check the log for a CatalogBuilder buildVirtueMartProduct entry naming a missing table, and confirm your VirtueMart language configuration matches an existing table.


Uninstall

  1. Go to System → Manage → Extensions.
  2. Filter by vatdi.
  3. Select the row Vatdi AI Chat (type: Package).
  4. Click the Uninstall button in the toolbar.

Joomla removes the package and both plugins in one step. Your Vatdi conversation history and analytics stay on the platform and can be restored by re-installing and clicking Easy Connect. If you want your Vatdi merchant account deleted permanently, email support@vatdi.com from the merchant email address on file.


Support

Channel Where
Docs https://vatdi.com/docs
Email support@vatdi.com
Response time Within 4 business hours

Free setup service is available on every plan — email support with your site URL and someone from our team will handle the install for you.