Highlighting Order If Purchased By Certain Usergroup

Hi all, hope you are keeping safe during these strange times!

A question for the far more gifted than I.

I would like to highlight an order in the View Orders view if the checkout was made by a particular usergroup ID.

So I have 2 additional usergroups on my site, TRADE and TRADE ON ACCOUNT with Usergroup IDs of 3,5.

I would like to highlight the oder in a shade of blue if the purchase was made by one of these usergroups. Attached is an example of what I want to achieve.

Can anyone help? Thanks in advance for your time in replying

K

exampleAdminHighlight.jpg

Would require the fetch of the usergroup_ids of the user_id of the order and then look to see if your desired usergroup_id is in that set for each order. Then you would have a conditional 'class' added to the 'tr' tag to set the background color.

Would require the fetch of the usergroup_ids of the user_id of the order and then look to see if your desired usergroup_id is in that set for each order. Then you would have a conditional 'class' added to the 'tr' tag to set the background color.

That sounds logical enough thank you. Howver, it think it would still be beyond me!!

Is this something you could do and give me a quote for?

thanks

Would require the fetch of the usergroup_ids of the user_id of the order and then look to see if your desired usergroup_id is in that set for each order. Then you would have a conditional 'class' added to the 'tr' tag to set the background color.

Hi,

Sorry to ask again but was wondering if you could provide a quick quote for this and provide me with fix for this?

thanks