This commit is contained in:
ellynoize 2025-01-24 11:38:25 +03:00
parent 1d23272c8e
commit 37a749ab90
3 changed files with 23 additions and 0 deletions

View file

@ -72,3 +72,11 @@ Run this command (replace `/path/to/your/site` with the actual path to your site
```
You should run this command only once.
#### Setting inventories export
Add to cron (replace `/path/to/your/site` with the actual path to your site):
```
*/15 * * * * /usr/bin/php /path/to/your/site/system/library/retailcrm/cron/inventories.php >> /path/to/your/site/system/storage/logs/cronjob_inventories.log 2>&1
```

View file

@ -488,6 +488,18 @@ class ControllerExtensionModuleRetailcrm extends Controller
}
}
/**
* Inventories upload
*
* @return void
*/
public function inventories()
{
$this->load->model('setting/setting');
$this->load->model('extension/retailcrm/inventories');
$this->model_extension_retailcrm_inventories->request($this->retailcrm->getApiClient());
}
/**
* ICML generation
*

View file

@ -0,0 +1,3 @@
<?php
$cli_action = 'extension/module/retailcrm/inventories';
require_once('dispatch.php');