This commit is contained in:
dkorol 2016-04-06 12:34:40 +03:00
parent 7f69765295
commit a87af86a69
2 changed files with 7 additions and 1 deletions

4
admin/model/retailcrm/icml.php Normal file → Executable file
View File

@ -63,6 +63,8 @@ class ModelRetailcrmIcml extends Model
{ {
$categories = $this->model_catalog_category->getCategories(array()); $categories = $this->model_catalog_category->getCategories(array());
foreach($categories as $category) { foreach($categories as $category) {
$category = $this->model_catalog_category->getCategory($category['category_id']);
$e = $this->eCategories->appendChild( $e = $this->eCategories->appendChild(
$this->dd->createElement( $this->dd->createElement(
'category', $category['name'] 'category', $category['name']
@ -118,7 +120,7 @@ class ModelRetailcrmIcml extends Model
if (!empty($categories)) { if (!empty($categories)) {
foreach ($categories as $category) { foreach ($categories as $category) {
$e->appendChild($this->dd->createElement('category')) $e->appendChild($this->dd->createElement('categoryId'))
->appendChild( ->appendChild(
$this->dd->createTextNode($category) $this->dd->createTextNode($category)
); );

4
system/cron/dispatch.php Normal file → Executable file
View File

@ -106,6 +106,10 @@ $request = new Request();
$registry->set('request', $request); $registry->set('request', $request);
$response = new Response(); $response = new Response();
$response->addHeader('Content-Type: text/html; charset=utf-8'); $response->addHeader('Content-Type: text/html; charset=utf-8');
$cache = new Cache('file');
$registry->set('cache', $cache);
$registry->set('response', $response); $registry->set('response', $response);
$session = new Session(); $session = new Session();
$registry->set('session', $session); $registry->set('session', $session);