Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

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.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6110467
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T14:31:09+00:00 2026-05-23T14:31:09+00:00

Recently answered this question with a change to a core file: Approach on changing

  • 0

Recently answered this question with a change to a core file:

Approach on changing row color on orders grid in admin

There is one file that needed updating to answer this question: js/mage/adminhtml/grid.js

What I would like to know is how to do this properly, i.e. without editing the core file.

Edit

This is what worked:

in app/design/adminhtml/default/default/layout/local.xml:

<?xml version="1.0"?>
<layout version="0.1.0">
  <default>
    <reference name="head">
        <action method="removeItem"><type>js</type><name>mage/adminhtml/grid.js</name></action>
        <action method="addItem"><type>js</type><name>colors/adminhtml/grid.js</name></action> 
    </reference>
  </default>
</layout>

Then I put a new directory + subdirectory and file in js/colors/adminhtml/grid.js

And many thanks to Alan for giving me the ‘courage’ to do it properly…

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T14:31:09+00:00Added an answer on May 23, 2026 at 2:31 pm
    1. Add a Javascript Block to the Page, using events, the adminhtml application’s local.xml, or a custom module layout xml file

    2. Add a Prototype dom:loaded event listener to the page

    3. Using Prototype’s $$ method, search the dom for the order status HTML DOM nodes. If possible, use an ID in there to ensure you’re getting the right nodes.

    4. Use Prototype’s addClassName method to add a css class to the nodes from #3.

    5. Add a CSS file to the page, using events, the adminhtml application’s local.xml, or a custom module layout xml file. In this CSS file add style definitions to get the colors you want.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I've recently asked and had answered this question and it's stopped the issue of
I was asked this question in a job interview recently. I answered that I
I recently answered this question how-to-call-user-defined-function-in-order-to-use-with-select-group-by-order-by My answer was to use an inline view
I recently answered this question: What are good reasons to use static methods in
I recently posted a question which was answered by Bryan Watts, regarding generic repository
Edit: While this question has been asked and answered before ( 1 ), (
I recently asked a question (and had it answered) here: jQuery Load JSON I
Recently, I asked (and answered) a question on StackOverflow about why a unit test
This task has already been asked/answered, but I recently had a job interview that
I know this question has probably been answered over 200 times and I have

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.