Jump to content
  • 0

Helper List nie działają zapytania z " $this->_select .=" i "$this->_join .= "


paczekslodki

Question

Przy dodawaniu kodu SQL do AdminCategoriesController nie zwraca żadnego wyniku, za pomocą var_dump sprawdziłem zapytanie i jest ono poprawne. Może ktoś wie, co przeoczyłem?

 

Problem powodują te 3 linijki, dodane do kodu

$this->_join .= 'LEFT JOIN `'._DB_PREFIX_.'product` p ON (a.`id_category` = p.`id_category_default`)';
		    $this->_select .= 'COUNT(p.id_product)';
		    $this->_group .= 'GROUP BY a.id_category';

Edited by paczekslodki (see edit history)
Link to comment
Share on other sites

0 answers to this question

Recommended Posts

There have been no answers to this question yet

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