diff --git a/CHANGELOG.md b/CHANGELOG.md index a559b00..99345f6 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,7 @@ +## v.4.0.0 +* Поддержка корпоративных клиентов +* Поддержка изменения покупателя в заказе + ## v.3.3.9 * Исправлены цены в ICML diff --git a/README.md b/README.md index 7ea509f..d453e45 100644 --- a/README.md +++ b/README.md @@ -34,12 +34,16 @@ cp -r opencart-module/* /path/to/site/root * Fill you api url & api key * Specify directories matching +#### 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` + #### Getting changes in orders Add to cron: ``` -*/5 * * * * /usr/bin/php /path/to/opencart/system/cron/history.php >> /path/to/opencart/system/storage/logs/cronjob_history.log 2>&1 +*/5 * * * * /usr/bin/php /path/to/opencart/system/library/retailcrm/cron/history.php >> /path/to/opencart/system/storage/logs/cronjob_history.log 2>&1 ``` #### Setting product catalog export @@ -47,7 +51,7 @@ Add to cron: Add to cron: ``` -* */4 * * * /usr/bin/php /path/to/opencart/system/cron/icml.php >> /path/to/opencart/system/storage/logs/cronjob_icml.log 2>&1 +* */4 * * * /usr/bin/php /path/to/opencart/system/library/retailcrm/cron/icml.php >> /path/to/opencart/system/storage/logs/cronjob_icml.log 2>&1 ``` Your export file will be available by following url @@ -59,4 +63,4 @@ http://youropencartsite.com/retailcrm.xml #### Export existing orders and customers You want to run this command onecly: -/usr/bin/php /path/to/opencart/system/cron/export.php +/usr/bin/php /path/to/opencart/system/library/retailcrm/cron/export.php diff --git a/README.ru.md b/README.ru.md index 044d030..89e7299 100644 --- a/README.ru.md +++ b/README.ru.md @@ -26,6 +26,10 @@ unzip master.zip cp -r opencart-module/* /path/to/site/root ``` +#### Обновление до 4.* с более ранних версий модуля + +Перед копированием файлов модуля необходимо удалить директорию `path/to/opencart/system/library/retailcrm` + #### Активируйте модуль В списке модулей нажмите "Установить" @@ -39,7 +43,7 @@ cp -r opencart-module/* /path/to/site/root Для получения изменений и новых данных добавьте в cron следующую запись: ``` -*/5 * * * * /usr/bin/php /path/to/opencart/system/cron/history.php >> /path/to/opencart/system/storage/logs/cronjob_history.log 2>&1 +*/5 * * * * /usr/bin/php /path/to/opencart/system/library/retailcrm/cron/history.php >> /path/to/opencart/system/storage/logs/cronjob_history.log 2>&1 ``` #### Настройка экспорта каталога @@ -47,7 +51,7 @@ cp -r opencart-module/* /path/to/site/root Для периодической выгрузки каталога добавьте в cron следующую запись: ``` -* */4 * * * /usr/bin/php /path/to/opencart/system/cron/icml.php >> /path/to/opencart/system/storage/logs/cronjob_icml.log 2>&1 +* */4 * * * /usr/bin/php /path/to/opencart/system/library/retailcrm/cron/icml.php >> /path/to/opencart/system/storage/logs/cronjob_icml.log 2>&1 ``` В настройках retailCRM установите путь к файлу выгрузки @@ -60,13 +64,13 @@ http://youropencartsite.com/retailcrm.xml Для периодической выгрузки акционных цен в CRM в настройках модуля укажите тип цены, в который необходимо выгружать акционные цены, в крон добавьте следующую запись ``` -0 0 * * * /usr/bin/php /path/to/opencart/system/cron/prices.php >> /path/to/opencart/system/storage/logs/cronjob_prices.log 2>&1 +0 0 * * * /usr/bin/php /path/to/opencart/system/library/retailcrm/cron/prices.php >> /path/to/opencart/system/storage/logs/cronjob_prices.log 2>&1 ``` #### Выгрузка существующих заказов и покупателей Запустите команду единожды: -/usr/bin/php /path/to/opencart/system/cron/export.php +/usr/bin/php /path/to/opencart/system/library/retailcrm/cron/export.php #### Кастомизация моделей diff --git a/VERSION b/VERSION index 3b47f2e..fcdb2e1 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -3.3.9 +4.0.0 diff --git a/src/upload/system/cron/.htaccess b/src/upload/system/library/retailcrm/cron/.htaccess similarity index 56% rename from src/upload/system/cron/.htaccess rename to src/upload/system/library/retailcrm/cron/.htaccess index 437eb07..e300f4e 100644 --- a/src/upload/system/cron/.htaccess +++ b/src/upload/system/library/retailcrm/cron/.htaccess @@ -1,4 +1,4 @@ Allow from all -Satisfy any - \ No newline at end of file +Satisfy any + diff --git a/src/upload/system/cron/dispatch.php b/src/upload/system/library/retailcrm/cron/dispatch.php similarity index 100% rename from src/upload/system/cron/dispatch.php rename to src/upload/system/library/retailcrm/cron/dispatch.php diff --git a/src/upload/system/cron/export.php b/src/upload/system/library/retailcrm/cron/export.php similarity index 100% rename from src/upload/system/cron/export.php rename to src/upload/system/library/retailcrm/cron/export.php diff --git a/src/upload/system/cron/history.php b/src/upload/system/library/retailcrm/cron/history.php similarity index 100% rename from src/upload/system/cron/history.php rename to src/upload/system/library/retailcrm/cron/history.php diff --git a/src/upload/system/cron/icml.php b/src/upload/system/library/retailcrm/cron/icml.php similarity index 100% rename from src/upload/system/cron/icml.php rename to src/upload/system/library/retailcrm/cron/icml.php diff --git a/src/upload/system/cron/prices.php b/src/upload/system/library/retailcrm/cron/prices.php similarity index 100% rename from src/upload/system/cron/prices.php rename to src/upload/system/library/retailcrm/cron/prices.php