Skip to content

Commit

Permalink
Merge pull request #18 from alvinjohnsonso/ps-validator
Browse files Browse the repository at this point in the history
Prestashop Coding Standard
  • Loading branch information
GeekOfAges authored Mar 5, 2021
2 parents 43ecc0d + 93c64ad commit ed0c118
Show file tree
Hide file tree
Showing 49 changed files with 646 additions and 549 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
*.zip
./build/tawkto
63 changes: 41 additions & 22 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,37 +4,56 @@ Free live chat widget for your site

## Description

tawk.to is a free live chat app that lets you monitor and chat with visitors on your website or from a free customizable page. No catch. No spam. No wares. It's truly free and always will be.
The tawk.to Live Chat app makes it easy to monitor and chat with visitors on your website. Be there when they need you with unlimited messaging, ticketing and your own Knowledge Base — all 100% FREE.

No account ? Create one here : https://www.tawk.to/?utm_source=prestashop&utm_medium=link&utm_campaign=signup
Compatible with all modern browsers, tawk.to was created in response to the growing need for businesses to respond in real time, with real people.

Never lose another lead or sale again — tawk.to offers iOS, Android, Windows and Mac OSX apps to keep you connected wherever you go.

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

## Installation

== Prestashop 1.5 - 1.6 Installation ==
This section describes how to install the plugin and get it working on Prestashop versions 1.5 - 1.6
### Prestashop 1.6
This section describes how to install the plugin and get it working on Prestashop 1.6

1. Download and extract the tawkto.zip
2. Upload `tawkto` directory to the `/modules/` directory
3. Install module from `Modules -> Front Office Features`
4. Go to `Administration`, then to `Tawk.to` to select page and widget you wish to use
#### Module Installer
1. Download the `tawk-prestashop-1.6-<release_verion>.zip` from [latest release.](https://github.com/tawk/tawk-prestashop/releases)
2. Go to `Dashboard` -> `Modules and Services`.
3. Click `Add a new module`, upload the zip file, and click `Upload this module`.
4. Search for the `tawk.to` plugin and `install`.

== Prestashop 1.7 Installation ==
This section describes how to install the plugin and get it working on Prestashop version 1.7
#### Manual Installation
1. Download and extract the `tawk-prestashop-1.6-<release_verion>.zip` from [latest release.](https://github.com/tawk/tawk-prestashop/releases)
2. Upload `tawkto` directory to the `/modules/` directory.
3. Go to `Dashboard` -> `Modules and Services`.
4. Search for the `tawk.to` plugin and `install`.

1. Download and extract the tawkto1.7.zip
2. Go to Dashboard -> Modules -> Modules and Services.
3. Click on the Upload a Module button
4. Drag and drop the tawkto1.7.zip, or upload the tawkto1.7.zip using the Upload a Module popup
5. Click on `Configure` to start setting your tawk.to module
#### Where is the configuration page located?
It is under `Dashboard` -> `Administration` -> `tawk.to`.

Note: You will need a free tawk.to account to generate the embed code, create one here : https://www.tawk.to/?utm_source=prestashop&utm_medium=link&utm_campaign=signup
### Prestashop 1.7
This section describes how to install the plugin and get it working on Prestashop 1.7

## Frequently Asked Questions
#### Module Installer
1. Download the `tawk-prestashop-1.7-<release_verion>.zip` from [latest release.](https://github.com/tawk/tawk-prestashop/releases)
2. Go to `Dashboard` -> `Modules` -> `Module Manager`.
3. Click `Upload a module`, upload the zip file, and the module will install automatically.

[FAQ](http://tawk.uservoice.com/knowledgebase)
#### Manual Installation
1. Download and extract the `tawk-prestashop-1.7-<release_verion>.zip` from [latest release.](https://github.com/tawk/tawk-prestashop/releases)
2. Upload `tawkto` directory to the `/modules/` directory.
3. Go to `Dashboard` -> `Modules` -> `Module Catalog`.
4. Search for the `tawk.to` plugin and `install`.

## Screenshots
#### Where is the configuration page located?
It is under `Dashboard` -> `More` -> `tawk.to`.

1. Chat window - minimized
2. Plugin settings page
3. Chat widget - maximized
### Widget Configuration
1. Go to the configuration page.
2. Log in to your tawk.to account.
3. Select the property and the widget you want to place on your store and click `Use selected widget`.
4. The widget will now appear on your store.

## Frequently Asked Questions
Visit our [Help Center](https://help.tawk.to/) for answers to FAQs
41 changes: 41 additions & 0 deletions build/build-package.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
#!/bin/sh

build_dir=$(dirname $0);

build_release_file() {
if [ -z "$1" ]
then
echo "Prestashop version wasn't specified";
return;
fi

ps_version=$1;
ps_dir=$build_dir/../prestashop$ps_version/;

echo "Building Prestashop $ps_version..."
echo "Creating temporary directory"
rm -rf $build_dir/tawkto
mkdir $build_dir/tawkto

echo "Copying files to temporary directory"
cp -r $ps_dir/* $build_dir/tawkto/

echo "Retrieving release version"
release_version=$(retrieve_version $ps_dir);

echo "Creating zip file"
(cd $build_dir && zip -9 -rq tawk-prestashop-$ps_version-$release_version.zip tawkto)

echo "Cleaning up"
rm -rf $build_dir/tawkto

echo "Done building Prestashop $ps_version!"
}

retrieve_version() {
ps_dir=$1;
awk 'gsub(/<version><!\[CDATA\[|]]><\/version>/,"")' $ps_dir/config.xml | xargs;
}

build_release_file 1.6;
build_release_file 1.7;
Loading

0 comments on commit ed0c118

Please sign in to comment.