2014-08-19 08:00:13 +04:00
|
|
|
Opencart module
|
2016-01-29 18:04:48 +03:00
|
|
|
===============
|
2014-08-15 13:35:22 +04:00
|
|
|
|
2017-03-22 12:04:42 +03:00
|
|
|
Module allows integrate CMS Opencart >= 2.3 with [retailCRM](http://retailcrm.pro)
|
|
|
|
|
|
|
|
### Previous versions:
|
|
|
|
|
|
|
|
[v1.x](https://github.com/retailcrm/opencart-module/tree/v1.x)
|
2017-03-22 12:06:44 +03:00
|
|
|
|
2017-03-22 12:04:42 +03:00
|
|
|
[v2.x (2.0, 2.1, 2.2)](https://github.com/retailcrm/opencart-module/tree/v2.2)
|
2014-08-15 13:35:22 +04:00
|
|
|
|
2016-03-14 23:00:43 +03:00
|
|
|
#### Features:
|
2014-08-15 13:35:22 +04:00
|
|
|
|
2016-03-10 02:07:25 +03:00
|
|
|
* Export orders to retailCRM & fetch changes back
|
2016-03-14 23:04:26 +03:00
|
|
|
* Export product catalog into [ICML](http://www.retailcrm.pro/docs/Developers/ICML) format
|
2014-08-15 13:35:22 +04:00
|
|
|
|
2016-03-10 02:07:25 +03:00
|
|
|
#### Install
|
2014-08-19 23:53:11 +04:00
|
|
|
|
2016-03-10 02:07:25 +03:00
|
|
|
Copy files to the site root
|
2016-01-29 18:04:48 +03:00
|
|
|
|
|
|
|
```
|
|
|
|
unzip master.zip
|
|
|
|
cp -r opencart-module/* /path/to/site/root
|
|
|
|
```
|
|
|
|
|
2016-03-10 02:07:25 +03:00
|
|
|
#### Setup
|
2016-01-29 18:04:48 +03:00
|
|
|
|
2016-03-10 02:07:25 +03:00
|
|
|
* Go to Admin -> Extensions -> Modules -> retailCRM
|
|
|
|
* Fill you api url & api key
|
|
|
|
* Specify directories matching
|
2016-01-29 18:04:48 +03:00
|
|
|
|
2016-03-10 02:07:25 +03:00
|
|
|
#### Getting changes in orders
|
2016-01-29 18:04:48 +03:00
|
|
|
|
2016-03-10 02:07:25 +03:00
|
|
|
Add to cron:
|
2016-01-29 18:04:48 +03:00
|
|
|
|
|
|
|
```
|
2016-03-10 02:07:25 +03:00
|
|
|
*/5 * * * * /usr/bin/php /path/to/opencart/system/cron/history.php >> /path/to/opencart/system/logs/cronjob_history.log 2>&1
|
2016-01-29 18:04:48 +03:00
|
|
|
```
|
|
|
|
|
2016-03-10 02:07:25 +03:00
|
|
|
#### Setting product catalog export
|
2016-01-29 18:04:48 +03:00
|
|
|
|
2016-03-10 02:07:25 +03:00
|
|
|
Add to cron:
|
2016-01-29 18:04:48 +03:00
|
|
|
|
|
|
|
```
|
2016-07-12 16:28:14 +03:00
|
|
|
* */4 * * * /usr/bin/php /path/to/opencart/system/cron/icml.php >> /path/to/opencart/system/logs/cronjob_icml.log 2>&1
|
2016-01-29 18:04:48 +03:00
|
|
|
```
|
|
|
|
|
2016-03-10 02:07:25 +03:00
|
|
|
Your export file will be available by following url
|
2016-01-29 18:04:48 +03:00
|
|
|
|
|
|
|
```
|
2016-03-10 02:07:25 +03:00
|
|
|
http://youropencartsite.com/retailcrm.xml
|
2016-01-29 18:04:48 +03:00
|
|
|
```
|
2016-08-31 17:28:11 +03:00
|
|
|
|
|
|
|
#### Export existing orders and customers
|
|
|
|
|
|
|
|
You want to run this command onecly:
|
|
|
|
/usr/bin/php /path/to/opencart/system/cron/export.php
|