diff --git a/composer.json b/composer.json new file mode 100644 index 0000000..5b855e4 --- /dev/null +++ b/composer.json @@ -0,0 +1,35 @@ +{ + "name": "intarocrm/prestashop-module", + "description": "Prestashop integration for IntaroCRM", + "type": "library", + "keywords": ["api", "Intaro CRM", "rest"], + "homepage": "http://www.intarocrm.ru/", + "config": { + "vendor-dir": "intarocrm/classes" + }, + "authors": [ + { + "name": "Alex Lushpai", + "email": "lushpai@intaro.ru", + "role": "Developer" + } + ], + "support": { + "email": "support@intarocrm.ru" + }, + "require": { + "php": ">=5.3", + "intarocrm/rest-api-client": "1.2.*" + }, + "autoload": { + "psr-0": { + "": "src/" + } + }, + "repositories": [ + { + "type": "git", + "url": "https://github.com/intarocrm/rest-api-client" + } + ] +} diff --git a/intarocrm/intarocrm.php b/intarocrm/intarocrm.php index 0159d88..55e2885 100644 --- a/intarocrm/intarocrm.php +++ b/intarocrm/intarocrm.php @@ -813,9 +813,8 @@ class IntaroCRM extends Module /* * get last sync date */ - //$lastSync = Configuration::get('INTAROCRM_LAST_SYNC'); + $lastSync = Configuration::get('INTAROCRM_LAST_SYNC'); - $lastSync = false; $startFrom = ($lastSync === false) ? null : $lastSync; $endTime = date('Y-m-d H:i:s');