Jump to content

  • You cannot start a new topic
  • You cannot reply to this topic

Highlighting Order If Purchased By Certain Usergroup Rate Topic   - - - - -

 
  • happyhare
  • Advanced Member
  • Members
  • Join Date: 11-Jun 14
  • 56 posts

Posted 24 April 2020 - 11:52 PM #1

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

 

 

Attached Files



 
  • tbirnseth
  • CS Cart Expert
  • Authorized Reseller
  • Join Date: 08-Nov 08
  • 11590 posts

Posted 25 April 2020 - 07:14 PM #2

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.


EZ Merchant Solutions: Custom (USA based) B2B Development, Consulting, Development and Special Projects (get a quote here).
Commercial addons, payment methods and modifications to meet your business and operations needs.


 
  • happyhare
  • Advanced Member
  • Members
  • Join Date: 11-Jun 14
  • 56 posts

Posted 28 April 2020 - 01:09 PM #3

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



 
  • happyhare
  • Advanced Member
  • Members
  • Join Date: 11-Jun 14
  • 56 posts

Posted 01 June 2020 - 11:28 PM #4

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