NemoPS Posted October 22, 2013 Share Posted October 22, 2013 Hi everybody! I just finished writing a tutorial on how to add a 'country' column in the orders list, so that you can then filter orders using it, and know from where they came from without having to inspect them one by one. Here it is: http://nemops.com/filter-by-country-prestashop-order-list/ Hope you find it useful! Cheers! Link to comment Share on other sites More sharing options...
karthiiiiiiiiiik Posted August 30, 2014 Share Posted August 30, 2014 hi nemo how can i do the filtering of the order page for COD payment automatically... Link to comment Share on other sites More sharing options...
NemoPS Posted September 1, 2014 Author Share Posted September 1, 2014 you can try adding a column like a.module, then you can filter the table using "cashondelivery" Link to comment Share on other sites More sharing options...
karthiiiiiiiiiik Posted September 1, 2014 Share Posted September 1, 2014 Hi nemo, If i am adding a column like module and then i can do the filter , but i want to show only the cash on delivery with out using the filter click event. I want to do the filtering of cash on delivery payment automatically ..? Link to comment Share on other sites More sharing options...
NemoPS Posted September 1, 2014 Author Share Posted September 1, 2014 ah well in that case just use WHERE a.module = 'cashondelivery' in the where clause (you probably won't need WHERE) Link to comment Share on other sites More sharing options...
karthiiiiiiiiiik Posted September 1, 2014 Share Posted September 1, 2014 where i need to apply a.module = 'cash on delivery' in the select statemt are in the left join statement. Link to comment Share on other sites More sharing options...
karthiiiiiiiiiik Posted September 1, 2014 Share Posted September 1, 2014 how to do select wiht where in prestashop $this->_select statement in prestashop Link to comment Share on other sites More sharing options...
NemoPS Posted September 2, 2014 Author Share Posted September 2, 2014 Try adding something like $this->_where = 'a.module = "cashondelivery"'; after the join Link to comment Share on other sites More sharing options...
karthiiiiiiiiiik Posted September 2, 2014 Share Posted September 2, 2014 (edited) i have put after the join statement but it show bad sql query : Bad SQL queryYou have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'a.payment = "Cash on delivery" ORDER BY a.id_order DESC LIMIT 0,300' at line 20if i put for a.module also i am getting the bad sql query error message Nemo can you please check and tell me.. i have tried a lot but shows mysql syntax error. Edited September 2, 2014 by karthiiiiiiiiiik (see edit history) Link to comment Share on other sites More sharing options...
NemoPS Posted September 3, 2014 Author Share Posted September 3, 2014 Can you show us the whole query? Link to comment Share on other sites More sharing options...
karthiiiiiiiiiik Posted September 3, 2014 Share Posted September 3, 2014 Hi nemo, Thank you for your suggestion, i have done sql query to work correctly... Link to comment Share on other sites More sharing options...
nikmagnus Posted July 15, 2015 Share Posted July 15, 2015 Hi Nemo, Could you tell me the areas to change to display the email address of the order. Thanks in advance Nik Link to comment Share on other sites More sharing options...
NemoPS Posted July 17, 2015 Author Share Posted July 17, 2015 You should try to get c.email from the query, then display it as with countries, like mentioned in the tutorial 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