Rhobur Posted October 12, 2016 Share Posted October 12, 2016 Hi, I have added a few columns with features to the Catalog->Products. All OK except I can't get the search to work for them. My problem is that in order to be displayed I need to make a sql alias for each table column which has to be exactly the column name, alias used by the SELECT clause. I need to do that otherwise I get an error in the WHERE clause for xxxx not being a column name. But if I end up with lets say 4 identical aliases then these couldn't be added to the fields_list in order to construct the form columns. Using the column alias from the SELECT clause doesn't work, it displays the column data but results in no search data found. Any idea of how the search can be achieved when having to deal with multiple tables having the same column name? Link to comment Share on other sites More sharing options...
rocky Posted October 13, 2016 Share Posted October 13, 2016 Have you tried giving the identical columns different names? For example: a.`column` as a_column, b.`column` as b_column and then using 'a_column' and 'b_column'. Link to comment Share on other sites More sharing options...
Rhobur Posted October 14, 2016 Author Share Posted October 14, 2016 Yes I have tried that but for some unknown reason the search doesn't work unless the alias is "value" which is each table's column name. If I use a different alias, the content of the table column is displayed but not searchable :puzzled: 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