Jump to content
  • разработка интернет магазинов на opencart
  • доработка интернет магазинов на opencart

Fatal error: Call to undefined method ModelCatalogCategory


DarkP
 Share

Recommended Posts

Готовлю к запуску вот этот сайт: http://gipsoprofil.ru/. Он мне досился уже в "готовом" вигде, кто его разрабатывал сказать не могу, занимаюсь наполнением.

Обновил VQMOD до версии 2.4.1. Теперь при захогде в любую категории вываливается ошибка:

 

Fatal error: Call to undefined method ModelCatalogCategory::getCategoriesByParentId() in /home/europrofil/gipsoprofil.ru/docs/vqmod/vqcache/vq2-catalog_model_catalog_category.php on line 16

Версия движка: ocStore 1.5.5.1.1

Пожалуйси, подскажите что надо поправить.

Link to comment
Share on other sites


Ну ик откройте 

/home/europrofil/gipsoprofil.ru/docs/vqmod/vqcache/vq2-catalog_model_catalog_category.php

и посмотрите, что им у вас в 16-ой строке вызывается. Вообещё вопросов два: до обновления vqmod`а рилиило нормально? Зачем вы его обновили?

Link to comment
Share on other sites

Ну ик откройте 

/home/europrofil/gipsoprofil.ru/docs/vqmod/vqcache/vq2-catalog_model_catalog_category.php

и посмотрите, что им у вас в 16-ой строке вызывается. Вообещё вопросов два: до обновления vqmod`а рилиило нормально? Зачем вы его обновили?

 

До обновления всё рилиило. Там вот что:

$sql .= " INNER JOIN " . DB_PREFIX . "product p ON (p.manufacturer_id=m.manufacturer_id)";
if ($filter_sub_category == true) {
$implode_data = array();
$categories = $this->getCategoriesByParentId($filter_category_id);
$categories[]=$filter_category_id;
$implode_data = implode(',',$categories);
$sql .= " INNER JOIN " . DB_PREFIX . "product_to_category p2c ON (p.`product_id`=p2c.`product_id`) and p2c.`category_id` in (".$implode_data.")";
                            } else {
$sql .= " INNER JOIN " . DB_PREFIX . "product_to_category p2c ON (p.`product_id`=p2c.`product_id`) and p2c.`category_id`=".$filter_category_id."";
                            }
$sql .= " GROUP BY p.manufacturer_id";
Link to comment
Share on other sites


Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • 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.