sword2500 Posted February 10, 2021 Share Posted February 10, 2021 Hi, Config: php: 5.6.40 Version : 1.6.1.24 mode multiboutiques enabled. I have a problem after adding the left join $this->_join .= 'LEFT JOIN `'._DB_PREFIX_.'order_detail` od ON (od.`id_order` = a.`id_order`)'; in my override file AdminOrderController.php. All my orders with N products are duplicate N times. Someone have a idéa to correcting this broken JOIN. thanks. AdminOrdersController.php Link to comment Share on other sites More sharing options...
Eolia Posted February 10, 2021 Share Posted February 10, 2021 Add a: GROUP BY a.id.order at the end of the request Link to comment Share on other sites More sharing options...
sword2500 Posted February 10, 2021 Author Share Posted February 10, 2021 18 minutes ago, Eolia said: Add a: GROUP BY a.id.order at the end of the request yes, fixed with $this->_group = 'GROUP BY a.`id_order`'; thanks. 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