Installation
The process requires two installations: one is the Chat24Plus App, and one is an installation in Active eCommerce.
App installation
- Go to the admin area of Chat24Plus, then go to Settings > Apps > Active eCommerce, and enter your License Key to install the app.
- Once the app is installed, go to Settings > Active eCommerce and enter the database information, Active eCommerce URL, and other settings.
- The Secret Key can be found in the file .env located in the root directory of Active eCommerce. Copy the APP_KEY value.

- If you have issues, make sure the file
chat24plus/config.phpuses the correct Active eCommerce database details.
Installation in Active eCommerce
- Edit the file \resources\views\frontend\inc\footer.blade.php in the directory of Active eCommerce and enter the code below just after the footer opening tag
<footer>. Replace [YOUR-SITE] with the URL of your Chat24Plus installation.
<script src="https://[YOUR-SITE]/js/min/jquery.min.js"></script>
<script id="sbinit" src="https://[YOUR-SITE]/js/main.js"></script>
@php
$sb_code = '';
$sb_cart = false;
if (Auth::check() && !isAdmin()) $sb_code = 'var SB_AECOMMERCE_ACTIVE_USER = ' . Auth::user()->id . ';';
if (isset($detailedProduct)) $sb_code .= 'var SB_DEFAULT_AGENT = "aecommerce-' . $detailedProduct->user->id . '";';
if (auth()->user() != null) $sb_cart = \App\Models\Cart::where('user_id', Auth::user()->id)->get(); else { $temp_user_id = Session()->get('temp_user_id'); if ($temp_user_id) { $sb_cart = \App\Models\Cart::where('temp_user_id', $temp_user_id)->get(); }}
if ($sb_cart && count($sb_cart) > 0) { $sb_code .= 'var SB_AECOMMERCE_CART = ['; foreach ($sb_cart as $key => $item) { $sb_code .= '["' . $item['product_id'] . '", "' . $item['price'] . '", "' . $item['quantity'] . '"],'; } $sb_code = substr($sb_code, 0, -1) . '];'; }
if ($sb_code != '') echo '<script>' . $sb_code . '</script>';
@endphp
How to update
Updating the Active eCommerce App in Chat24Plus is easy; you can enable automatic updates or manually update it. Details here. If you update Active eCommerce, you will need to insert the code above again in the file footer.blade.php.