By Manual Code Injection

Install REVE chat plugin

Magento version compatibility with revechat plugin:

● REVE Chat extension supports magento version 2.3.x - 2.4.x.

● Tested up to magento version 2.4.7.

● Stable reve chat plugin version: v2.4.7

Step 1: Enable maintenance mode

Start by enabling maintenance mode to restrict access to your website’s frontend by running the following command as the Magento file system owner inside the root directory of your Magento installation:

php bin/magento maintenance:enable

Step 2: Install the extension

Upload Revechat.zip file in /magento-root/app/code/ directory. If you do not have any code directory under the app folder, you have to create it using below command

cd /magento-root/app/
mkdir code

Unzip the Revechat.zip using the following command.

unzip Revechat.zip

After unzip revechat plugin will be available at- /magento-root/app/code/Revechat/Widget

We have to fix file folder permission for code directory using the below commands

cd /magento-root/app/
find code -type f -exec chmod 644 {} \;
find code -type d -exec chmod 755 {} \;

Step 3: Verify the extension has been installed

Run the following command magento root directory to verify the extension has been successfully installed:

php bin/magento module:status Revechat_Widget

By default, the extension can be disabled:

Module is disabled

Step 4: Enable the Extension

php bin/magento module:enable Revechat_Widget --clear-static-content

Step 5: Register the extension

Finally to register the extension and complete the installation, you must run the following commands in your command line:

php bin/magento setup:upgrade
php bin/magento setup:di:compile
php bin/magento setup:static-content:deploy

You can now clean the cache by running the following commands:

php bin/magento cache:clean
php bin/magento cache:flush

Fix File permissions of var folder-

find var -type f -exec chmod 777 {} \; 
find var -type d -exec chmod 777 {} \;
php bin/magento cache:flush

Step 6: Verify uninstallation

Verify the uninstallation has been successfully completed by running the following command:

bin/magento module:status Revechat_Widget

Step 7: Disable maintenance mode

Next, disable maintenance mode by running the following command:

bin/magento maintenance:disable

Step 8: Configuring newly installed extension

  1. Login to magento admin panel

  2. Click ‘Reve chat’ menu from left sidebar, and then click ‘Account setup’

  3. If you already have a REVE Chat account, please choose “Yes, I already have a REVE Chat account” and provide your email address. Otherwise, you can also choose “No, I want to create one” to create a new account. Click on the ‘Save Changes’ button.

  4. Next, we have to provide integration access token to enable the shopping cart feature. Follow steps 9-19 to create your access token.

  5. Click ‘System’, then ‘Integration’

  6. Click ‘Add New Integration’

  7. Give integration name

  8. Click on ‘API’ and Select Resource Access ‘All’

  9. Then click ‘Save and Activate’ from the dropdown

  10. Click ‘Allow’

  11. Click on ‘Done’

  12. Integration is created.

  13. Next, to get your access token click ‘edit icon’

  14. Copy ‘Access Token’

  15. Next, allow Oauth access tokens to be used as standalone bearer tokens. Got to Stores > Configuration > Services > OAuth > Consumer Settings > Allow OAuth Access Tokens to be used as standalone Bearer tokens option to Yes and save config.

  16. Finally, Go to the REVE Chat plugin ‘Account Setup’ page again. And fill out the integration access token form. Then click ‘Save’, And that’s it! REVE Chat is successfully integrated with your magento shop.

Uninstall REVE chat plugin

Step 1: Enable maintenance mode

Start by enabling maintenance mode to restrict access to your website’s frontend by running the following command as the Magento file system owner inside the root directory of your Magento installation:

php bin/magento maintenance:enable

Step 2: Uninstall the extension

Next, disable the extension and clear previously generate static view files by running the following command:

php bin/magento module:disable Revechat_Widget --clear-static-content

run the following commands to uninstall the extension using Composer and update dependencies:

composer remove Revechat_Widget
php bin/magento setup:upgrade
php bin/magento setup:di:compile

If you manually installed the plugin in magento_root/app/code directory then you have to follow below commands

rm -rf magento_root/app/code/Revechat
php bin/magento setup:upgrade
php bin/magento setup:di:compile
php bin/magento setup:static-content:deploy

Clear your Magento cache by running the following command:

bin/magento cache:flush

Step 3: Verify uninstallation

Verify the uninstallation has been successfully completed by running the following command:

bin/magento module:status Revechat_Widget

Step 4: Disable maintenance mode

Next, disable maintenance mode by running the following command:

bin/magento maintenance:disable

Fix File permissions of var folder.

find var -type f -exec chmod 777 {} \; 
find var -type d -exec chmod 777 {} \;
php bin/magento cache:flush

Finally, open a web browser and verify that your website and admin panel are working as expected.

Last updated

Was this helpful?