Skip to content

Commit

Permalink
v2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
gwinn committed Jan 13, 2016
1 parent d323a79 commit 8edf8b9
Show file tree
Hide file tree
Showing 34 changed files with 2,759 additions and 1,497 deletions.
58 changes: 36 additions & 22 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,40 +1,54 @@
Prestashop module
=============
=================

Prestashop module for interaction with [IntaroCRM](http://www.intarocrm.com) through [REST API](http://docs.intarocrm.ru/rest-api/).
Модуль интеграции CMS Prestashop c [RetailCRM](http://www.retailcrm.com)

Module allows:
Модуль позволяет:

* Send to IntaroCRM new orders
* Configure relations between dictionaries of IntaroCRM and Prestashop (statuses, payments, delivery types and etc)
* Generate [ICML](http://docs.intarocrm.ru/index.php?n=Пользователи.ФорматICML) (IntaroCRM Markup Language) for catalog loading by IntaroCRM
* Экспортировать в CRM данные о заказах и клиентах и получать обратно изменения по этим данным
* Синхронизировать справочники (способы доставки и оплаты, статусы заказов и т.п.)
* Выгружать каталог товаров в формате [ICML](http://retailcrm.ru/docs/Разработчики/ФорматICML) (IntaroCRM Markup Language)

Installation
-------------
###Установка

### 1. Manual installation
#####Скачайте модуль

[Cкачать](http://download.retailcrm.pro/modules/prestashop/retailcrm-2.0.zip)

#### Clone module.
```
git clone [email protected]:/intarocrm/prestashop-module.git
```
#####Установите через административный интерфейс управления модулями.

![Установка модуля](/docs/images/add.png)


###Настройка

#####Перейдите к настройкам

![Настройка модуля](/docs/images/setup.png)

#####Введите адрес и API ключ вашей CRM и задайте соответствие справочников

#### Install Rest API Client.
![Справочники](/docs/images/ref.png)

Install api-client-php via [composer](http://getcomposer.org)

#####Регулярная генерация выгрузки каталога

Добавьте в крон запись вида

```
cd prestashop-module
/path/to/composer.phar install
* */4 * * * /usr/bin/php /path/to/your/site/modules/retailcrm/job/icml.php
```

#### Create .zip file.
#####Регулярное получение изменение из RetailCRM

Добавьте в крон запись вида

```
zip -r intarocrm.zip intarocrm
*/7 * * * * /usr/bin/php /path/to/your/site/modules/retailcrm/job/sync.php
```

#### Install via Admin interface.
#####Единоразовая выгрузка архива клиентов и заказов в RetailCRM


Go to Modules -> Add module. After that upload your zipped module and activate it.
```
/usr/bin/php /path/to/your/site/modules/retailcrm/job/export.php
```
35 changes: 0 additions & 35 deletions composer.json

This file was deleted.

67 changes: 0 additions & 67 deletions composer.lock

This file was deleted.

Binary file added docs/images/add.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/images/ref.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/images/setup.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
13 changes: 0 additions & 13 deletions intarocrm/config.xml

This file was deleted.

39 changes: 0 additions & 39 deletions intarocrm/export.tpl

This file was deleted.

9 changes: 0 additions & 9 deletions intarocrm/index.php

This file was deleted.

Loading

0 comments on commit 8edf8b9

Please sign in to comment.