---
title: "OpenCart - Devad CHAT Docs — Devad"
url: "https://devad.io/help/en/docs/more-integrations/opencart--123"
---

[Skip to content](https://devad.io/help/en/docs/more-integrations/opencart--123#main-content)  

[Devad](https://devad.io)  

[Home](https://devad.io) [POST](https://devad.io/post) [CHAT](https://devad.io/chat) [SITE](https://devad.io/site) [AI](https://devad.io/ai-agent) [Pricing](https://devad.io/pricing)

 

[](https://devad.io/help#hc-search)  [Agent view](https://devad.io/help/en/docs/more-integrations/opencart--123.md)

 

[Docs](https://devad.io/help?type=doc&lang=en&view=list) [Guides](https://devad.io/help?type=guide&lang=en&view=list) [Blog](https://devad.io/help?type=article&lang=en&view=list) [Changelog](https://devad.io/help?type=changelog&lang=en&view=list)

 

Browse this Help Center

[More Integrations](https://devad.io/help?category=9&lang=en)  

- [More Integration: Slack, Opencart, Martfury, Zalo, Zendesk, Viber, Line, WeChat](https://devad.io/help/en/guides/more-integrations/more-integration-slack-opencart-martfury-zalo-zendesk-viber-line-wechat--179)
 
- [More Integration: Slack, Opencart, Martfury, Zalo, Zendesk, Viber, Line, WeChat](https://devad.io/help/en/docs/more-integrations/more-integration-slack-opencart-martfury-zalo-zendesk-viber-line-wechat--178)
 
- [WordPress Integration](https://devad.io/help/en/docs/more-integrations/full-wordpress-integration--75)
 
- [How To Export and Import Users in CHAT.devad.io Safely](https://devad.io/help/en/docs/more-integrations/how-to-export-and-import-users-in-chat-devad-io-safely--93)
 
- [More Integration: Slack, Opencart, Martfury, Zalo, Zendesk, Viber, Line, WeChat](https://devad.io/help/en/docs/more-integrations/more-integration-slack-opencart-martfury-zalo-zendesk-viber-line-wechat--114)
 
- [OpenCart](https://devad.io/help/en/docs/more-integrations/opencart--123)
 
- [Shopify Integration](https://devad.io/help/en/docs/more-integrations/shopify-integration--135)
 
- [How To Export and Import Users in CHAT.devad.io Safely](https://devad.io/help/en/guides/more-integrations/how-to-export-and-import-users-in-chat-devad-io-safely--242)
 
- [How To Export and Import Users in CHAT.devad.io Safely](https://devad.io/help/en/docs/more-integrations/how-to-export-and-import-users-in-chat-devad-io-safely--241)

 

[Help Center](https://devad.io/help)  › [Docs](https://devad.io/help?type=doc&lang=en)  › [More Integrations](https://devad.io/help?category=9&lang=en)  › OpenCart

Docs

# OpenCart

The settings below are related to the OpenCart App. Installation From Settings &gt; Apps, click OpenCart and click Active. Once the app is installed go to Settings &gt; OpenCart and enter the OpenCart details. To ge...

 

 

The settings below are related to the OpenCart App.

 

### Installation

 

- From **Settings > Apps**, click **OpenCart** and click **Active**.
 
- Once the app is installed go to **Settings > OpenCart** and enter the OpenCart details. To get the **Username** and **API key** enter the admin area of OpenCart and go to **System >Users > API**. You’ll see a predefined user named **Default**. Edit it generate the API key, then set the **Status** to **enable**. Next, add your IP to list of permitted for API access.
 
- With a file manager or FTP, edit file **catalog/controller/common/header.php** in the OpenCart installation folder and add the following key-value in **$data** variable:
 
- Edit the file **/catalog/view/theme/default/template/common/header.twig** and add 

~~~
<script>{{ script }}</script>
~~~

 somewhere within the **<head>** tag. Mind that if you are not using the default theme the path will be different.
 
- Enter the OpenCart **Extensions** page and click the top-right button **Update**.
 
- Download the sb.php file and upload it into **catalog/controller/api**.

 

---

 

### FAQs About Opencart

 

Q: Does CHAT App (CHAT.devad.io) support multiple OpenCart stores?
Yes, CHAT App (CHAT.devad.io) supports OpenCart Multistore.

 

Q: Which OpenCart versions are supported by CHAT App (CHAT.devad.io)?
Currently, only OpenCart 3 is supported.

 

Q: How do I install and activate the CHAT App (CHAT.devad.io) in OpenCart?
From Settings > Apps, click and enter your license key. For cloud version, click Active to install and activate the app.

 

Q: How do I generate the Username and API key needed for integration?
In the OpenCart admin area, go to System > Users > API, then edit the predefined user named Default. Generate the API key and enable the Status. Add your IP to the list of permitted IPs for API access.

 

Q: What file needs editing to pass the logged-in customer data to CHAT App (CHAT.devad.io)?
Edit the file catalog/controller/common/header.php and add the provided key-value pairs in the $data variable to include customer information.

 

Q: Where should I add the CHAT App (CHAT.devad.io) script in the OpenCart theme?
Edit /catalog/view/theme/default/template/common/header.twig and add <script>{{ chatdevadio }}</script> within the <head> tag. The path may vary if not using the default theme.

 

Q: What do I need to do after editing the files for CHAT App (CHAT.devad.io) integration?
Enter the Extensions page and click the top-right Update button, then upload the sb.php file into catalog/controller/api.

 

Q: Can CHAT App (CHAT.devad.io) automatically identify logged-in OpenCart customers?
Yes, it automatically identifies logged-in OpenCart customers, including their details, and registers them on CHAT App (CHAT.devad.io).

 

Q: Is it possible to manually import existing OpenCart customers into CHAT App (CHAT.devad.io)?
Yes, CHAT App (CHAT.devad.io) allows manual import of existing customers with one click.

 

Q: Do I need to reapply code changes after updating CHAT App (CHAT.devad.io) in OpenCart?
Yes, on update you have to apply the code changes again.

 

Use this page

 [Ask ChatGPT](https://chatgpt.com/?q=Read%20https%3A%2F%2Fdevad.io%2Fhelp%2Fen%2Fdocs%2Fmore-integrations%2Fopencart--123%20and%20answer%20questions%20about%20the%20content.) [Ask Claude](https://claude.ai/new?q=Read%20https%3A%2F%2Fdevad.io%2Fhelp%2Fen%2Fdocs%2Fmore-integrations%2Fopencart--123%20and%20answer%20questions%20about%20the%20content.)

 

On this page

[Installation](https://devad.io/help/en/docs/more-integrations/opencart--123#opencart-installation) [FAQs About Opencart](https://devad.io/help/en/docs/more-integrations/opencart--123#opencart-faqs-about-opencart)

 

## Keep exploring

[### More Integration: Slack, Opencart, Martfury, Zalo, Zendesk, Viber, Line, WeChat

Slack Integration & Synchronization The Slack integration empowers your team to handle customer support directly from your existing Slack workspace. By synchronizing the two platforms,…](https://devad.io/help/en/docs/more-integrations/more-integration-slack-opencart-martfury-zalo-zendesk-viber-line-wechat--178) [### More Integration: Slack, Opencart, Martfury, Zalo, Zendesk, Viber, Line, WeChat

Slack Integration & Synchronization The Slack integration empowers your team to handle customer support directly from your existing Slack workspace. By synchronizing the two platforms,…](https://devad.io/help/en/guides/more-integrations/more-integration-slack-opencart-martfury-zalo-zendesk-viber-line-wechat--179) [### WordPress Integration

Step 1: Installation &amp; Setup Follow these steps to get the CHAT.devad.io plugin running on your WordPress site. Download: Get the latest version of the plugin from here Upload: Log in to your WordPress Admin. Go...](https://devad.io/help/en/docs/more-integrations/full-wordpress-integration--75) [### How To Export and Import Users in CHAT.devad.io Safely

If you want to import users into Devad Chat, the safest method is to start with an export from the same tenant first. That exported CSV already contains the correct column names, the correct custom-field labels, and the...](https://devad.io/help/en/docs/more-integrations/how-to-export-and-import-users-in-chat-devad-io-safely--93)

 

[Devad](https://devad.io) 

Apps Suite Every Business Needs to Start and Grow

## Apps

 [POST](https://devad.io/post) [CHAT](https://devad.io/chat) [SITE](https://devad.io/site) [AI](https://devad.io/ai-agent)

## Company

 [Plans & pricing](https://devad.io/pricing) [Contact](https://devad.io/contact-us)

## Resources

 [Help Center](https://devad.io/help)

## Legal

 [Privacy](https://devad.io/privacy-policy) [Terms](https://devad.io/terms-of-service) [Cookies](https://devad.io/cookie-policy)
