opencart-module/README.md

63 lines
1.8 KiB
Markdown
Raw Normal View History

2018-06-18 14:05:15 +03:00
[![Build Status](https://img.shields.io/travis/retailcrm/opencart-module/master.svg?style=flat-square)](https://travis-ci.org/retailcrm/opencart-module)
2020-02-19 17:43:55 +03:00
[![Coverage](https://img.shields.io/codecov/c/gh/retailcrm/opencart-module/master.svg?style=flat-square)](https://codecov.io/gh/retailcrm/opencart-module)
2018-06-18 14:05:15 +03:00
[![GitHub release](https://img.shields.io/github/release/retailcrm/opencart-module.svg?style=flat-square)](https://github.com/retailcrm/opencart-module/releases)
[![PHP version](https://img.shields.io/badge/PHP->=5.4-blue.svg?style=flat-square)](https://php.net/)
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
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)
[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
```
*/5 * * * * /usr/bin/php /path/to/opencart/system/cron/history.php >> /path/to/opencart/system/storage/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
```
* */4 * * * /usr/bin/php /path/to/opencart/system/cron/icml.php >> /path/to/opencart/system/storage/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