Need little help in backend customization

  • Posts: 7
  • Thank you received: 0
12 years 2 months ago #64480

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.

  • Posts: 82818
  • Thank you received: 13364
  • MODERATOR
12 years 2 months ago #64584

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.277 seconds
Powered by Kunena Forum