I need to change row color in magento orders grid based on order status.
For start I don’t want a complex solution with configurable interface.
I just want to know where to start.
What is the best approach ?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Full, working solution:
Copy
js/mage/adminhtml/grid.jstojs/colors/adminhtml/grid.jsMake the file 666 and the folders (js/colors & js/colors/adminhtml) 777.
Edit it and after line 208 (before the line containing
}.bind(this)) add:At the end of the file add:
Now create or edit the admin local.xml file in
app/design/adminhtml/default/default/layout/local.xmlEdit it to include:
The orders grid will now be in vibrant colours and you should be able to clearly see what orders need attention.
The
colorize()function can be edited to suit your order states and preferred colour scheme.