adheesha23/module-live-chat

N/A

Installs: 6

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 1

Forks: 0

Open Issues: 0

Type:magento2-module

1.0.6 2024-10-27 12:48 UTC

This package is auto-updated.

Last update: 2025-06-27 14:27:28 UTC


README

The Aligent Chat Module introduces store configuration settings for managing LiveChat configurations. This module also provides admin capabilities for updating default configurations of these data, log updated data with the admin user name and the time stamp required for tracking.

Supported Magento Versions

Features

  • Store Configuration Fields:

    The module adds the following store configuration fields.

    • livechat_license_number
    • livechat_groups
    • livechat_params

    These fields can be managed both through the store configurations and admin form interface.

  • Admin Form:

    The module provides an admin page with a form to input the default scope values for above LiveChat settings.

    Once the form is submitted:

    • The relevant store configuration fields are updated.
    • A log file will be saved at project root/var/log/live_chat.log with the values for livechat settings, time stamp and the admin user name who updated data.

Installation

  1. To install the Aligent Chat Module, follow below steps:
  • Install the module via composer
    composer require adheesha23/module-live-chat
    
  • Or, clone from the repository. Run below command from project root directory.
    git clone git@github.com:adheesha23/module-live-chat.git app/code/Aligent/Chat
    
  1. Enable the module:
    bin/magento module:enable Aligent_Chat
    
  2. Then run below commands:
    bin/magento setup:upgrade
    bin/magento setup:di:compile
    bin/magento cache:clean
    bin/magento cache:flush
    

Module Usage

Magento Admin

  • Once the module is installed go to Magento admin dashboard.
  • Go to Stores menu tab and there 'Live Chat Configuration' section will appear. Under that,
    • Manage Default Chat Configurations - This will go to admin form that manage default chat configurations.
    • Chat Configuration - This will go to ALIGENT > Chat Configuration tab in store configurations page.

Logging

  • To check the updated settings log, go to project root/var/log folder and check live_chat.log file.
    cat live_chat.log 
    

Test Cases

Unit Test

  • Run one of the below command from project root directory based on how the module was installed.
    • If installed via composer
      $(pwd)/vendor/bin/phpunit --bootstrap $(pwd)/dev/tests/unit/framework/bootstrap.php --configuration $(pwd)/dev/tests/unit/phpunit.xml.dist $(pwd)/vendor/adheesha23/module-live-chat/Test/Unit/    
      
    • Or if installed by cloning the repository
      $(pwd)/vendor/bin/phpunit --bootstrap $(pwd)/dev/tests/unit/framework/bootstrap.php --configuration $(pwd)/dev/tests/unit/phpunit.xml.dist $(pwd)/app/code/Aligent/Chat/Test/Unit/