3 replies [Last post]
BigMike's picture
Offline
Joined: 10/20/2008
Juice: 1057
Was this information Helpful?

On the sales order page under the order & admin comments sections, I am trying to change the user number to a user name. We have 9 sales employees here who are adding comments to SOs and its confusing trying to remember which employee is which user number on our website.

Why not just put a user name, so here is what I've tried:

Versions: D6.20 UC2.x-dev
File: uc_order/uc_order.order_pane.inc
Line: near 979

Original code:

      $data['user'] = array(
        '#value' => uc_get_initials($comment->uid),
        '#cell_attributes' => array('align' => 'center'),
      );

I tried...

        '#value' => uc_get_initials($comment->name),
        '#value' => $comment->name,
        '#value' => uc_get_initials($comment->registered_name),
        '#value' => $comment->registered_name,

...and so far no dice. I know I could probably create an IF statement to check what uid placed the order comment, and then just set '#value' => 'Bob' if the uid matches Bob's id, but I don't want to have to mess with this if we shuffle employees around or bring on new hands in the future. I'd rather it just work the proper method.

Can anyone help me out on this? Thanks in advance!!
BigMike

BigMike's picture
Offline
Joined: 10/20/2008
Juice: 1057
Re: Simple question regarding user ID and username

Anyone?

BigMike's picture
Offline
Joined: 10/20/2008
Juice: 1057
helpQuote:[b]To complete

help

Quote:

To complete this form, please complete the word verification below.

BigMike's picture
Offline
Joined: 10/20/2008
Juice: 1057
Re: Simple question regarding user ID and username

So I found out that there is an "Initial" system in Ubercart, where you can provide initials to users.

It took me nearly 5 months to figure out this. I wish Ubercart had a better support community (where is everyone?).

To access the user initials system, navigate to your /admin/store/settings/store/initials.

Hope this helps someone out,
Mike