How to add an AI chatbot to OpenCart

On OpenCart, a chat widget is installed through catalog/view/theme/<theme>/template/common/footer.twig. Twig templates are cached; a cache refresh is required. Self-hosted, so no plan gate.

Where it goes

catalog/view/theme/<theme>/template/common/footer.twig

Availability: Self-hosted, so no plan gate.

Adding the chatbot to OpenCart

  1. 1

    Open your hosting file manager or connect by FTP.

  2. 2

    Navigate to catalog/view/theme/<your-theme>/template/common/footer.twig.

  3. 3

    Paste the snippet before the closing </body> tag.

  4. 4

    Save, then refresh the theme cache from Dashboard → Extensions → Modifications.

  5. 5

    Twig templates are cached; a cache refresh is required.

The snippet you paste

<script src="https://rubyrep.com/rubyrep.js" data-rubyrep="rr_your_public_key" defer></script>

Your own key replaces rr_your_public_key — you get it after training RubyRep on your site.

Worth knowing on OpenCart

  • Copy the default theme before editing so an upgrade does not overwrite your change.

  • OCMod and VQMod modifications can rewrite the same file — check for conflicts.

OpenCart questions

Where does the code go on OpenCart?
catalog/view/theme/<theme>/template/common/footer.twig. Twig templates are cached; a cache refresh is required.
Do I need a paid OpenCart plan?
Self-hosted, so no plan gate.
Will a OpenCart update remove it?
Copy the default theme before editing so an upgrade does not overwrite your change.
Does it slow OpenCart down?
No measurable effect. The snippet is deferred, so it loads after your page has rendered, and the chat interface itself is only fetched when a visitor opens it.

Related

Get your snippet.

Enter your OpenCart site and RubyRep reads it, builds your representative, and hands you the exact line to paste.

https://

Takes about a minute. No credit card.

Using something else? See all platforms.