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 ?
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 ?
Full, working solution:
Copy
js/mage/adminhtml/grid.js
tojs/colors/adminhtml/grid.js
Make 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.xml
Edit 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.