Helpcenter +918010117117 https://cdn.storehippo.com/s/573db3149f0d58741f0cc63b/ms.settings/5256837ccc4abf1d39000001/57614ef64256dc6851749879-480x480.png" [email protected] https://www.facebook.com/StoreHippohttps://twitter.com/StoreHippohttps://www.linkedin.com/company/hippoinnovations/https://plus.google.com/+Storehippo/posts
B4,309-10 Spaze iTech Park, Sector 49, Sohna Road, 122001 Gurgaon India

ms.user

It contains the details of the current user.
User is not logged in
 If a user is not logged in, we get the data of current user in an object with fields isLoggedIn as false, device info and device type (like desktop, laptop) and currency name (like INR, USD), conversion rate as 1 or true.
User is logged in
When a user is logged in, we get the data of current user in an object with fields isLoggedIn as true and detailed information of current user (like first name, last name, email id, phone, user_id  etc) according to the user.


Variables

Value Description
isLoggedIn This variable defines that user is logged in or not, if it's value is false, then the user is not logged in and vice-versa.
currency This variable gives the name and conversion rate of currency.
role This variable defines that the specific role about user (vendor, admin, member etc).
verified This variable defines that user is verified or not, if its value is true or 1, then the user is verified and vice-versa.
first_name The variable gives the first name of the user.
last_name The variable gives the last name of the user.
_id If a user is logged in, it gives the unique id of the user.
email If a user is logged in, it gives the email id of the user.
language This variable gives the language of the user.
active This variable defines that user is active or not, if its value is true or 1, then user is active and vice-versa.
wishlist This variable contains the product information added to the wishlist, if any.
use_temporary_password This variable sends a temporary password (automatically generated) to the user, if set to 1 or true.
substore This variable lets a user to search and order store-based (physical location based) products.