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

Нужна помощь Fatal error: Call to undefined method Cart\Customer::getCustomerGroupId() in domen.ru\catalog\model\catalog\cms.php on line 169


 Share

Recommended Posts

Нужна помощь, у авторизованного покупателя при перехогде на страницу "Популярные товары" Выскакивает белый экран с данной ошибкой:

  Fatal error: Call to undefined method Cart\Customer::getCustomerGroupId() in domen.ru\catalog\model\catalog\cms.php on line 169

В 169 строке вот что:

	public function getMostViewed($data = array()) {
		$this->load->model('catalog/product');
		
		if ($this->customer->isLogged()) {
			$customer_group_id = $this->customer->getCustomerGroupId();
		} else {
			$customer_group_id = $this->config->get('config_customer_group_id');
		}	

Можно конечно просто отклюлить "популярные товары", но хочется все же разобраться.

Link to comment
Share on other sites


  • 4 months later...
  • 11 months later...

Лелится это ик.

В файле catalog\model\catalog\cms.php неправильно указана функция, нужно внести изменения.

было: $customer_group_id = $this->customer->getCustomerGroupId();
надо: $customer_group_id = $this->customer->getGroupId();

 

  • +1 1
Link to comment
Share on other sites


  • 1 year later...
В 26.02.2020 в 10:02, rustaban сказал:

Лелится это ик.

В файле catalog\model\catalog\cms.php неправильно указана функция, нужно внести изменения.

было: $customer_group_id = $this->customer->getCustomerGroupId();
надо: $customer_group_id = $this->customer->getGroupId();

 

спасипотому что, помогло

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.