my-software Posted December 14, 2015 Share Posted December 14, 2015 (edited) Hi all, I'm trying to make a modification by adding fields to search products by ean13 field. So I added: $this->fields_list['ean13'] = array( 'title' => $this->l('ean13'), 'align' => 'left', ); It was ok but I want to search products by poducts attributes ean13 field too. So I try to add join only when I search product by ean13 field (please notice that as result I want only product, not all option) if(isset($context->cookie->productsproductFilter_ean13)){ $this->_join .= " INNER JOIN `ps_product_attribute` pa ON a.`id_product` = pa.`id_product` and pa.ean13 like '%".$context->cookie->productsproductFilter_ean13."%'"; $this->_select .= ' , pa.`ean13`, '; } After syste show me error: Column 'ean13' in where clause is ambiguous (Of course this is the correct error). Summary how I can search product by product ean13 or product options ean13 (if have it) ? Can you help me to resolve this problem? Best, Peter Edited December 18, 2015 by my-software (see edit history) Link to comment Share on other sites More sharing options...
my-software Posted December 18, 2015 Author Share Posted December 18, 2015 Any suggestion would be really appreciated! Best, Peter Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now