Skip to main content

Need little help in backend customization

More
14 years 3 weeks ago #64480 by vvujke
Hi all,
I need little help in backend. What I would like to add/change is:
  1. On Customer page to add column that displays user groups after username column
  2. On Order page to add column that displays user groups after Customer column

Tnx :cheer:

Please Log in or Create an account to join the conversation.

More
14 years 3 weeks ago #64584 by nicolas
Hi,

You can edit these layouts for your back end template via the menu Display->Views. It's the file "form" of the views "user" and "order".

You will have to get the order user id for the order view :
$id = $this->order->order_user_id;

and for the user view:
$id = $this->user->user_id;

before using the $id in some joomla code to get the group of the user.
Here is a thread about that:
forum.joomla.org/viewtopic.php?t=530721

Something like that might do the trick:
jimport( 'joomla.user.helper' );
$groups = JUserHelper::getUserGroups($id);
echo reset($groups);

Please Log in or Create an account to join the conversation.

Time to create page: 0.158 seconds
Powered by Kunena Forum