Mehdib92 Posted November 14, 2014 Share Posted November 14, 2014 Hi, I'd like to add a new column in the product list in the back office. I succeed to add the column but when I want to filter the list to show only the product_only = 1 (or 0), I have the message Column 'online_only' in where clause is ambiguous I don't find how to add the alias before `online_only` (like sa.`online_only`) Thanks Link to comment Share on other sites More sharing options...
Mehdib92 Posted November 14, 2014 Author Share Posted November 14, 2014 (edited) OK just 10 minutes after I discovered the function processFilter(). So In my AdminProductsController I add the lines : public function processFilter() { parent::processFilter(); $this->_filter = str_replace('`online_only`', 'sa.online_only', $this->_filter); } Edited November 14, 2014 by Mehdib92 (see edit history) 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