Skip to content

Commit

Permalink
Merge pull request #2 from alvinjohnsonso/compatibility-support
Browse files Browse the repository at this point in the history
Update OpenCart 2 addon to work with OpenCart 3
  • Loading branch information
GeekOfAges authored Feb 3, 2021
2 parents 18ebf92 + 95d713c commit 27326d7
Show file tree
Hide file tree
Showing 11 changed files with 464 additions and 278 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
upload/
*.zip
60 changes: 60 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
# tawk.to Live Chat

Free live chat widget for your site

This module is for Opencart 3.x.x

## Description

The tawk.to Live Chat app lets you monitor and chat with visitors on your OpenCart site. Be there when they need you with unlimited messaging, ticketing and your own Knowledge Base — all 100% FREE.

Don’t have an account yet? [Create one here!](https://tawk.to/?utm_source=opencart&utm_medium=link&utm_campaign=signup)

## Installation
This section describes how to install the plugin and get it working.

### Adding the module

#### Extension Installer
1. Download the plugin ending in `.ocmod.zip` from the OpenCart Marketplace.
2. Go to Extensions -> Installer and upload the zip file.

#### Manual Installation
1. Download the plugin ending in `.zip` from the OpenCart Marketplace.
2. Extract the zip file and copy the files into your OpenCart folder. Then copy the Admin and Catalog folders and paste them into the opencart folder.

> If you aren’t using the English language for the OpenCart admin area, copy the language file into the correct language folder. If you are not using the default OpenCart theme, be sure to paste tawkto.twig in the correct theme folder.
* admin/controller/extension/module/tawkto.php -> `<opencart_folder>`/admin/controller/extension/module/
* admin/language/en-gb/extension/module/tawkto.php -> `<opencart_folder>`/admin/language/`<your_language>`/extension/module/
* admin/view/image/tawkto/ -> `<opencart_folder>`/admin/view/image/
* admin/view/template/extension/module/tawkto.twig -> `<opencart_folder>`/admin/view/template/extension/module/
* catalog/controller/extension/module/tawkto.php -> `<opencart_folder>`/catalog/controller/extension/module/tawkto.php
* catalog/view/theme/default/template/extension/module/tawkto.twig -> `<opencart_folder>`/catalog/view/theme/`<your_theme>`/template/extension/module/tawkto.twig

### Widget Configuration
1. Go to the Modules section in the Extensions and install the tawk.to plugin there.
2. After installing, click the Edit button.
3. Log in to your tawk.to account.
4. Select the property the widget you want to place on your store and click the Use selected widget button.
5. The widget will now appear on your store.

## Frequently Asked Questions
Visit our [Help Center](https://help.tawk.to/) for answers to FAQs

## Changelog

### 2.0.0
* Updated module for Opencart 3 compatibility support.

### 1.3.0
* Added monitoring of cart item option to tawk.to module config page.

### 1.2.0
* Added visibility options to tawk.to module config page, to control the display of the chat widget in the frontend

### 1.1.0
* Updated tawk.to module config page to use new widget app

### 1.0.0
* Choose desired widget and it will be inserted in your site
225 changes: 132 additions & 93 deletions admin/controller/extension/module/tawkto.php

Large diffs are not rendered by default.

29 changes: 29 additions & 0 deletions admin/language/en-gb/extension/module/tawkto.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
<?php
/**
* @package tawk.to Integration
* @author tawk.to
* @copyright (C) 2021 tawk.to
* @license GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
*/

// Heading
$_['heading_title'] = 'tawk.to';

// Text
$_['text_extension'] = 'Extensions';
$_['text_success'] = 'Success: You have modified module filter!';
$_['text_content_top'] = 'Content Top';
$_['text_content_bottom'] = 'Content Bottom';
$_['text_column_left'] = 'Column Left';
$_['text_column_right'] = 'Column Right';
$_['text_edit'] = 'Activate Module';

// Entry
$_['entry_layout'] = 'Layout:';
$_['entry_position'] = 'Position:';
$_['entry_status'] = 'Status:';
$_['entry_sort_order'] = 'Sort Order:';
$_['entry_status'] = 'Status';

// Error
$_['error_permission'] = 'Warning: You do not have permission to modify the tawk.to module!';
Loading

0 comments on commit 27326d7

Please sign in to comment.