mirror of
https://github.com/retailcrm/opencart-module.git
synced 2024-11-22 05:06:07 +03:00
bugfixes
This commit is contained in:
parent
7f69765295
commit
a87af86a69
4
admin/model/retailcrm/icml.php
Normal file → Executable file
4
admin/model/retailcrm/icml.php
Normal file → Executable file
@ -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)
|
||||
);
|
||||
|
4
system/cron/dispatch.php
Normal file → Executable file
4
system/cron/dispatch.php
Normal file → Executable file
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user