diff --git a/admin/model/retailcrm/icml.php b/admin/model/retailcrm/icml.php old mode 100644 new mode 100755 index 8887493..bfdf129 --- a/admin/model/retailcrm/icml.php +++ b/admin/model/retailcrm/icml.php @@ -63,6 +63,8 @@ class ModelRetailcrmIcml extends Model { $categories = $this->model_catalog_category->getCategories(array()); foreach($categories as $category) { + $category = $this->model_catalog_category->getCategory($category['category_id']); + $e = $this->eCategories->appendChild( $this->dd->createElement( 'category', $category['name'] @@ -118,7 +120,7 @@ class ModelRetailcrmIcml extends Model if (!empty($categories)) { foreach ($categories as $category) { - $e->appendChild($this->dd->createElement('category')) + $e->appendChild($this->dd->createElement('categoryId')) ->appendChild( $this->dd->createTextNode($category) ); diff --git a/system/cron/dispatch.php b/system/cron/dispatch.php old mode 100644 new mode 100755 index 47e3144..e7ccfdb --- a/system/cron/dispatch.php +++ b/system/cron/dispatch.php @@ -106,6 +106,10 @@ $request = new Request(); $registry->set('request', $request); $response = new Response(); $response->addHeader('Content-Type: text/html; charset=utf-8'); + +$cache = new Cache('file'); +$registry->set('cache', $cache); + $registry->set('response', $response); $session = new Session(); $registry->set('session', $session);