mirror of
https://github.com/retailcrm/opencart-module.git
synced 2024-11-29 08:36:05 +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());
|
$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
4
system/cron/dispatch.php
Normal file → Executable 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);
|
||||||
|
Loading…
Reference in New Issue
Block a user