Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

fanatic

Users
  • Posts

    4,905
  • Joined

  • Last visited

Everything posted by fanatic

  1. if (!empty($jetcache_categories) && is_array($jetcache_categories)) { $data['categories'] = $jetcache_categories; } else { $categories = $this->model_catalog_category->getCategories(0); /* foreach ($categories as $category) { if ($category['top']) { // Level 2 $children_data = array(); $children = $this->model_catalog_category->getCategories($category['category_id']); foreach ($children as $child) { $filter_data = array( 'filter_category_id' => $child['category_id'], 'filter_sub_category' => true ); $children_data[] = array( 'name' => $child['name'] . ($this->config->get('config_product_count') ? ' (' . $this->model_catalog_product->getTotalProducts($filter_data) . ')' : ''), 'href' => $this->url->link('product/category', 'path=' . $category['category_id'] . '_' . $child['category_id']) ); } // Level 1 $data['categories'][] = array( 'name' => $category['name'], 'children' => $children_data, 'column' => $category['column'] ? $category['column'] : 1, 'href' => $this->url->link('product/category', 'path=' . $category['category_id']) ); } } // jetcache for 2.x , 3.x if (isset($jetcache_settings['jetcache_widget_status']) && $jetcache_settings['jetcache_widget_status'] && isset($jetcache_settings['header_categories_status']) && $jetcache_settings['header_categories_status']) { $this->registry->get('controller_jetcache_jetcache')->hook_header_categories($data['categories']); } */ } была закоментирована последняя скобка
  2. система->пользователи->группы пользователей->скрыть дополнения
  3. обычный товар и так не попадет в bestseller или где нужно скрыть товар? в категории? производителях? поиске? в модулях(каких)?
  4. есть контроллер catalog/controller/module/mymodule <?php class ControllerModuleMymodule extends Controller{ public function myfunction($data){ return $data['a'] + $data['b']; } } в нужном контроллере $arr = array('a'=> 1, 'b'=> 2); $test = $this->load->controller('module/mymodule/myfunction', $arr); в переменной $test будет 3 (результат работы метода myfunction, контроллера mymodule)
  5. это так вы пытаетесь обработать? или это все же метод вызываемого контроллера?
×
×
  • Create New...

Important Information

On our site, cookies are used and personal data is processed to improve the user interface. To find out what and what personal data we are processing, please go to the link. If you click "I agree," it means that you understand and accept all the conditions specified in this Privacy Notice.