opencart-module/README.md

67 lines
2.0 KiB
Markdown
Raw Normal View History

2020-11-24 10:15:27 +03:00
[![Build Status](https://github.com/retailcrm/opencart-module/workflows/ci/badge.svg)](https://github.com/retailcrm/opencart-module/actions)
[![Coverage](https://img.shields.io/codecov/c/gh/retailcrm/opencart-module/master.svg?logo=github)](https://codecov.io/gh/retailcrm/opencart-module)
[![GitHub release](https://img.shields.io/github/release/retailcrm/opencart-module.svg?logo=codecov)](https://github.com/retailcrm/opencart-module/releases)
[![PHP version](https://img.shields.io/badge/PHP->=5.4-blue.svg?logo=php)](https://php.net/)
2018-06-18 14:05:15 +03:00
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
2020-08-07 14:04:05 +03:00
#### Migrating to 4.* from early modules versions
Before you copy the files of module you will to remove the directory `path/to/opencart/system/library/retailcrm`
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
```
2020-08-07 14:04:05 +03:00
*/5 * * * * /usr/bin/php /path/to/opencart/system/library/retailcrm/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
```
2020-08-07 14:04:05 +03:00
* */4 * * * /usr/bin/php /path/to/opencart/system/library/retailcrm/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:
2020-08-07 14:04:05 +03:00
/usr/bin/php /path/to/opencart/system/library/retailcrm/cron/export.php