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

Leaderboard

Popular Content

Showing content with the highest reputation on 04/10/2014 in Posts

  1. Модуль работает, а что с ним станется))) А вот комплект не появляется,если Вы об этом. Есть такая функция Спрятать комплект, если товара нет в наличии
    1 point
  2. Спасибо, я так и понял (разобрал что происходит от indexa до контроллера)
    1 point
  3. хороший вопрос дело в родителе и его Magic Methods abstract class Controller { protected $registry; protected $id; protected $layout; protected $template; protected $children = array(); protected $data = array(); protected $output; public function __construct($registry) { $this->registry = $registry; } public function __get($key) { return $this->registry->get($key); } public function __set($key, $value) { $this->registry->set($key, $value); } т.е. по сути $this->language->load(‘product/category’); равнозначно $this->registry->get('language')->load(‘product/category’);
    1 point
  4. Васо, првильно ли я понял - когда в методе класса ControllerProductCategory мы обращаемся к несуществующему свойству $this->language, срабатывает __get родительского класса (abstract class Controller), который возвращает экземпляр класса Language, а затем запускаем метод load этого класса $this->language->load(‘product/category’);
    1 point
  5. все эти "utm_" надо @добавлять в исключения@ в контроллере seo_pro [=== catalog/controller/common/seo_pro.php ===] : switch ($route) { case 'product/product': if (isset($data['product_id'])) { $tmp = $data; $data = array(); if ($this->config->get('config_seo_url_include_path')) { $data['path'] = $this->getPathByProduct($tmp['product_id']); if (!$data['path']) return $link; } $data['product_id'] = $tmp['product_id']; if (isset($tmp['tracking'])) { $data['tracking'] = $tmp['tracking']; } } break;по аналогии с if (isset($tmp['tracking'])) { $data['tracking'] = $tmp['tracking']; }(это для товара; для категорий - там ниже код).
    1 point
  6. $this->{Подключить класс языка из папки system\library\language.php}language->{public function load в этом классе подгружает указанный каталог\файл для загрузки языковых переменных из него в контроллер}load(‘product/category’);
    -1 points
Guest
×
  • 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.