How can I create a new user in the webstore/Netsuite but not log them in? session.registerGuest()
and session.registerCustomer()
will both login the user aswell as create a new user.
In my case I only want the user created. Heres the usecase: we sell medical tests. Upon purchase of a test we create a user for the patient (who is most likely not the purchasee). So I need to create a new user, I was hoping to just use session.registerGuest()
but that logs in the new patient and logs out the purchaser/customer.
Any ideas how best to create a user (and not cause headaches down the track)? I could just create a new record in Customer but I'm adverse to doing this because I may not set all the necessary fields which could cause headaches down the track when/if that patient consolidates to a fully fledged customer. Creating the patient as a custom entity (ie, outside the Customer table) isn't the way to go because they could eventually become Customers so I'll need to consolidate, associate orders(tests) and etc.
If I go the path of creating a new user record, any advice on what essential customer columns/fields I should set?