{"id":2513,"date":"2026-01-20T15:28:06","date_gmt":"2026-01-20T15:28:06","guid":{"rendered":"https:\/\/devad.io\/guides\/?p=2513"},"modified":"2026-01-28T18:21:12","modified_gmt":"2026-01-28T18:21:12","slug":"opencart","status":"publish","type":"post","link":"https:\/\/devad.io\/guides\/chat-devad-io-docs\/opencart\/","title":{"rendered":"OpenCart"},"content":{"rendered":"\n<p>The settings below are related to the OpenCart App.<\/p>\n\n\n\n<div class=\"gspb_heading_sep_gsbp-7ec731a\"><div class=\"gspb_heading_sep gspb_heading_sep_before\"><\/div><h2 id=\"gspb_heading-id-gsbp-7ec731a\" class=\"gspb_heading gspb_heading-id-gsbp-7ec731a \">Installation<\/h2><div class=\"gspb_heading_sep gspb_heading_sep_after\"><\/div><\/div>\n\n\n\n<ul class=\"wp-block-list\">\n<li>From <b>Settings &gt; Apps<\/b>, click <b>OpenCart<\/b> and click <b>Active<\/b>.<\/li>\n\n\n\n<li> Once the app is installed go to <b>Settings &gt; OpenCart<\/b> and enter the OpenCart details. To get the <b>Username<\/b> and <b>API key<\/b> enter the admin area of OpenCart and go to <b>System &gt;Users &gt; API <\/b>. You&#8217;ll see a predefined user named <b>Default<\/b>. Edit it generate the API key, then set the <b>Status<\/b> to <b>enable<\/b>. Next, add your IP to list of permitted for API access. <\/li>\n\n\n\n<li> With a file manager or FTP, edit file <b>catalog\/controller\/common\/header.php<\/b> in the OpenCart installation folder and add the following key-value in <b>$data<\/b> variable:  <\/li>\n\n\n\n<li> Edit the file <b>\/catalog\/view\/theme\/default\/template\/common\/header.twig<\/b> and add <b>&lt;script&gt;{{ script }}&lt;\/script&gt;<\/b> somewhere within the <b>&lt;head&gt;<\/b> tag. Mind that if you are not using the default theme the path will be different. <\/li>\n\n\n\n<li> Enter the OpenCart <b>Extensions<\/b> page and click the top-right button <b>Update<\/b>. <\/li>\n\n\n\n<li> Download the <a href=\"files\/opencart.zip\" target=\"_blank\">sb.php<\/a> file and upload it into <b>catalog\/controller\/api<\/b>. <\/li>\n<\/ul>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 id=\"gspb_heading-id-gsbp-de4d2f6\" class=\"gspb_heading gspb_heading-id-gsbp-de4d2f6 \">FAQs About Opencart<\/h2>\n\n\n\n<p>Q: Does CHAT App (CHAT.devad.io) support multiple OpenCart stores?<br>Yes, CHAT App (CHAT.devad.io) supports OpenCart Multistore.<\/p>\n\n\n\n<p>Q: Which OpenCart versions are supported by CHAT App (CHAT.devad.io)?<br>Currently, only OpenCart 3 is supported.<\/p>\n\n\n\n<p>Q: How do I install and activate the CHAT App (CHAT.devad.io) in OpenCart?<br>From Settings &gt; Apps, click and enter your license key. For cloud version, click Active to install and activate the app.<\/p>\n\n\n\n<p>Q: How do I generate the Username and API key needed for integration?<br>In the OpenCart admin area, go to System &gt; Users &gt; 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.<\/p>\n\n\n\n<p>Q: What file needs editing to pass the logged-in customer data to CHAT App (CHAT.devad.io)?<br>Edit the file catalog\/controller\/common\/header.php and add the provided key-value pairs in the $data variable to include customer information.<\/p>\n\n\n\n<p>Q: Where should I add the CHAT App (CHAT.devad.io) script in the OpenCart theme?<br>Edit \/catalog\/view\/theme\/default\/template\/common\/header.twig and add &lt;script&gt;{{ chatdevadio }}&lt;\/script&gt; within the &lt;head&gt; tag. The path may vary if not using the default theme.<\/p>\n\n\n\n<p>Q: What do I need to do after editing the files for CHAT App (CHAT.devad.io) integration?<br>Enter the Extensions page and click the top-right Update button, then upload the sb.php file into catalog\/controller\/api.<\/p>\n\n\n\n<p>Q: Can CHAT App (CHAT.devad.io) automatically identify logged-in OpenCart customers?<br>Yes, it automatically identifies logged-in OpenCart customers, including their details, and registers them on CHAT App (CHAT.devad.io).<\/p>\n\n\n\n<p>Q: Is it possible to manually import existing OpenCart customers into CHAT App (CHAT.devad.io)?<br>Yes, CHAT App (CHAT.devad.io) allows manual import of existing customers with one click.<\/p>\n\n\n\n<p>Q: Do I need to reapply code changes after updating CHAT App (CHAT.devad.io) in OpenCart?<br>Yes, on update you have to apply the code changes again.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>The settings below are related to the OpenCart App. Q: Does CHAT App (CHAT.devad.io) support multiple OpenCart stores?Yes, CHAT App (CHAT.devad.io) supports OpenCart Multistore. Q:&#8230;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"_gspb_post_css":"#gspb_heading-id-gsbp-de4d2f6{margin-top:0}#gspb_heading-id-gsbp-7ec731a{background-image:linear-gradient(135deg,#0693e3 0,#9b51e0 100%);margin-top:0;margin-bottom:0;-webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent;text-fill-color:transparent}.gspb_heading_sep_gsbp-7ec731a{display:flex;align-items:center;justify-content:space-around;margin-bottom:0}.gspb_heading_sep_gsbp-7ec731a>.gspb_heading_sep{width:40px;border-top-width:3px;border-top-color:var(u002du002dwpu002du002dpresetu002du002dcoloru002du002dvivid-purple, #9b51e0);border-top-style:double}.gspb_heading_sep_gsbp-7ec731a .gspb_heading_sep_before{margin-right:17px;margin-left:17px}","pgc_sgb_lightbox_settings":"","footnotes":"","_siteseo_titles_title":"","_siteseo_titles_desc":"","_siteseo_analysis_target_kw":"","_siteseo_robots_canonical":"","_siteseo_robots_index":"","_siteseo_robots_follow":"","_siteseo_robots_primary_cat":"","_siteseo_social_fb_title":"","_siteseo_social_fb_desc":"","_siteseo_social_fb_img":"","_siteseo_social_twitter_title":"","_siteseo_social_twitter_desc":"","_siteseo_social_twitter_img":""},"categories":[2,121,124,142],"tags":[143],"class_list":["post-2513","post","type-post","status-publish","format-standard","hentry","category-chat-devad-io-docs","category-ecommerce-features","category-more-integrations","category-features-use-cases","tag-ecommerce-features"],"acf":[],"menu_order":0,"_links":{"self":[{"href":"https:\/\/devad.io\/guides\/wp-json\/wp\/v2\/posts\/2513","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/devad.io\/guides\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/devad.io\/guides\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/devad.io\/guides\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/devad.io\/guides\/wp-json\/wp\/v2\/comments?post=2513"}],"version-history":[{"count":6,"href":"https:\/\/devad.io\/guides\/wp-json\/wp\/v2\/posts\/2513\/revisions"}],"predecessor-version":[{"id":2578,"href":"https:\/\/devad.io\/guides\/wp-json\/wp\/v2\/posts\/2513\/revisions\/2578"}],"wp:attachment":[{"href":"https:\/\/devad.io\/guides\/wp-json\/wp\/v2\/media?parent=2513"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/devad.io\/guides\/wp-json\/wp\/v2\/categories?post=2513"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/devad.io\/guides\/wp-json\/wp\/v2\/tags?post=2513"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}