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

ValueDescription
isLoggedInThis 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.
currencyThis variable gives the name and conversion rate of currency.
roleThis variable defines that the specific role about user (vendor, admin, member etc).
verifiedThis variable defines that user is verified or not, if its value is true or 1, then the user is verified and vice-versa.
first_nameThe variable gives the first name of the user.
last_nameThe variable gives the last name of the user.
_idIf a user is logged in, it gives the unique id of the user.
emailIf a user is logged in, it gives the email id of the user.
languageThis variable gives the language of the user.
activeThis variable defines that user is active or not, if its value is true or 1, then user is active and vice-versa.
wishlistThis variable contains the product information added to the wishlist, if any.
use_temporary_passwordThis variable sends a temporary password (automatically generated) to the user, if set to 1 or true.
substoreThis variable lets a user to search and order store-based (physical location based) products.

Examples