Admin - Place an Order - Create User Account?
Admin - Place an Order - Create User Account?
We've been testing the functionality and there's (another) potential problem..
When using the administrative interface in placing a new order, if the search for an existing user account doesn't return the details and the administrator completes the form, is a new user account created?
If not, why not?
When using the administrative interface in placing a new order, if the search for an existing user account doesn't return the details and the administrator completes the form, is a new user account created?
If not, why not?
Re: Admin - Place an Order - Create User Account?
In version 7.0.3 we do have an option to create new user when placing order via merchant side.
- Logan Rhodehamel
- Developer
- Posts: 4116
- Joined: Wed Dec 10, 2003 5:26 pm
Re: Admin - Place an Order - Create User Account?
In AC7.0.2 and below, when the merchant is placing an order if you do not locate an existing customer no account is created. The answer to why not is that creating an account is not required to place an order. Our workflow for placing an order in that version was not very friendly. To place an order with a new account, you must first create the account then place the order.
We put some extra effort into refining this feature for 7.0.3, incorporating feedback from customers who were using it.
We put some extra effort into refining this feature for 7.0.3, incorporating feedback from customers who were using it.
Cheers,
Logan
.com
If I do not respond to an unsolicited private message, it's not because I'm ignoring you. It's because the answer to your question is valuable to others. Try the new topic button.
Logan

If I do not respond to an unsolicited private message, it's not because I'm ignoring you. It's because the answer to your question is valuable to others. Try the new topic button.
Re: Admin - Place an Order - Create User Account?
For those of us that don't have v. 7.0.3 - is there any forseeable problem in creating a new user when the administrator checks for the customer's email address?
i.e. either a new account is created with a temporary password and the email address when the search for the customer is performed, or the account is created when the administrator refreshes the shipping options?
i.e. either a new account is created with a temporary password and the email address when the search for the customer is performed, or the account is created when the administrator refreshes the shipping options?
Re: Admin - Place an Order - Create User Account?
I have 7.0.3
At the People/user screen. If you click add user, it asks for password, Can There be a button to use a temporary password that the user must reset for security reasons?
At the People/user screen. If you click add user, it asks for password, Can There be a button to use a temporary password that the user must reset for security reasons?
Re: Admin - Place an Order - Create User Account?
How does the manual admin order create handle multiple shipping destinations, since they require an account?Logan_AbleCommerce wrote:In AC7.0.2 and below, when the merchant is placing an order if you do not locate an existing customer no account is created. The answer to why not is that creating an account is not required to place an order.
- Logan Rhodehamel
- Developer
- Posts: 4116
- Joined: Wed Dec 10, 2003 5:26 pm
Re: Admin - Place an Order - Create User Account?
We don't have that currently. However I have registered bug 8181 to add this at some point.kastnerd wrote:Can There be a button to use a temporary password that the user must reset for security reasons?
Cheers,
Logan
.com
If I do not respond to an unsolicited private message, it's not because I'm ignoring you. It's because the answer to your question is valuable to others. Try the new topic button.
Logan

If I do not respond to an unsolicited private message, it's not because I'm ignoring you. It's because the answer to your question is valuable to others. Try the new topic button.
- Logan Rhodehamel
- Developer
- Posts: 4116
- Joined: Wed Dec 10, 2003 5:26 pm
Re: Admin - Place an Order - Create User Account?
Merchant place order interface does not support multiple destinations.ZLA wrote:How does the manual admin order create handle multiple shipping destinations, since they require an account?
Cheers,
Logan
.com
If I do not respond to an unsolicited private message, it's not because I'm ignoring you. It's because the answer to your question is valuable to others. Try the new topic button.
Logan

If I do not respond to an unsolicited private message, it's not because I'm ignoring you. It's because the answer to your question is valuable to others. Try the new topic button.
Re: Admin - Place an Order - Create User Account?
I know that no account is created, as one is not required.. But if that customer contacts the company the following week and wants to order again, rather than going through the rigmarole of providing their details again, we want to create a user account in the first instance.
In short:
1. Search for the user by email address;
2. If the user doesn't exist:
- Create a new user account
- Repackage the basket and redirect the browser to the PlaceOrder2.aspx page, with the basket ID in the querystring
3. When the admin completes the address fields, this data is stored in the new users primary address fields and order address fields as required
For example:
Are there any obvious problems with this logic?
In short:
1. Search for the user by email address;
2. If the user doesn't exist:
- Create a new user account
- Repackage the basket and redirect the browser to the PlaceOrder2.aspx page, with the basket ID in the querystring
3. When the admin completes the address fields, this data is stored in the new users primary address fields and order address fields as required
For example:
Code: Select all
int userId = UserDataSource.GetUserIdByEmail(CustomerEmail.Text);
if (userId > 0)
{
//_Basket.UserId = userId;
User user = UserDataSource.Load(userId);
Basket.Transfer(_Basket.UserId, userId);
_Basket.Package();
_Basket.Recalculate();
Response.Redirect("PlaceOrder2.aspx?BasketId=" + user.Basket.BasketId);
}
else
{
String tempPassword = "tempPassword";
MembershipCreateStatus status;
User newUser = UserDataSource.CreateUser(CustomerEmail.Text, tempPassword, string.Empty, string.Empty, true, 0, out status);
newUser.IsApproved = true;
newUser.Save();
newUser.PrimaryAddress.FirstName = "TempFirstName";
newUser.PrimaryAddress.LastName = "TempLastName";
newUser.PrimaryAddress.Save();
User user = UserDataSource.Load(newUser.UserId);
Basket.Transfer(_Basket.UserId, newUser.UserId);
_Basket.Package();
_Basket.Recalculate();
Response.Redirect("PlaceOrder2.aspx?BasketId=" + user.Basket.BasketId);
}
- Logan Rhodehamel
- Developer
- Posts: 4116
- Joined: Wed Dec 10, 2003 5:26 pm
Re: Admin - Place an Order - Create User Account?
The suggestion seems OK to me. I haven't tried the custom code, but the concept seems to fit what you want to do.niall08 wrote:Are there any obvious problems with this logic?
Cheers,
Logan
.com
If I do not respond to an unsolicited private message, it's not because I'm ignoring you. It's because the answer to your question is valuable to others. Try the new topic button.
Logan

If I do not respond to an unsolicited private message, it's not because I'm ignoring you. It's because the answer to your question is valuable to others. Try the new topic button.