Getting user info

  • Posts: 197
  • Thank you received: 13
1 year 11 months ago #347897

-- HikaShop version -- : 4.7
-- Joomla version -- : 4.2.6
-- PHP version -- : 8.1

Hi.
when creating a mass action for orders, i can get all properties and info of the order with this code :

$orderClass = hikashop_get('class.order');
$order = $orderClass->loadFullOrder({order_id}, true, false);



how can I do the same for the user ?
i want to create a mass action to trigger when user is created, and I need to get all properties of the user

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

  • Posts: 83024
  • Thank you received: 13403
  • MODERATOR
1 year 11 months ago #347900

Hi,

You can do like that:

$userClass = hikashop_get('class.user');
$user = $userClass->get({user_id});

The following user(s) said Thank You: khashiz

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

  • Posts: 197
  • Thank you received: 13
1 year 11 months ago #347906

Thank you Nicolas

you are brilliant

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

Time to create page: 0.056 seconds
Powered by Kunena Forum