- Posts: 240
- Thank you received: 13
Getting user info
3 years 8 months ago #347897
by khashiz
Getting user info was created by khashiz
-- 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
-- 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.
3 years 8 months ago #347900
by nicolas
Replied by nicolas on topic Getting user info
Hi,
You can do like that:
You can do like that:
Code:
$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.
3 years 8 months ago #347906
by khashiz
Replied by khashiz on topic Getting user info
Thank you Nicolas
you are brilliant
you are brilliant
Please Log in or Create an account to join the conversation.
Time to create page: 0.161 seconds