Page 1 of 1

Adding an Edit Basket option to your Edit User screen

Posted: Tue Feb 12, 2008 4:16 pm
by AbleMods
Introduction
The purpose of this modification is to give you, the esteemed site admin, the ability to edit the shopping basket of a registered user. Why? Well, I don't really know. But I found a page written to do it and it looks really cool. You want to be a cool site admin, don't you?

Actually it makes a really nice impression with the customer when they are on the phone trying to order something. By handling their basket for them, you encourage them to continue their online experience. This motivates an online checkout instead of the dreaded "Can't I just pay you over the phone" response. It also quite possibly saves the sale.

This modification assumes AC7 RC2

But I can already do this
Yes, you can create a new order for a customer from the Admin screen. But you cannot edit their existing basket. This can potentially lead to confusion because the customer now has basket items for items they also just ordered. Customers are easily confused, so keeping things simple and painless encourages a return visit.

Gimme
The changes are actually very easy. First make a backup copy of the ~/Admin/People/Users/CurrentBasketDialog.ascx user control.

Now edit the file. Look for this line of code in the Page_Load section near the beginning:

Code: Select all

EditBasketLink.NavigateUrl += _UserId;
Add another line directly below it that looks like this:

Code: Select all

EditBasketLink0.NavigateUrl += _UserId;
So now you should have this:

Code: Select all

EditBasketLink.NavigateUrl += _UserId;
EditBasketLink0.NavigateUrl += _UserId;
Now we need to edit the HTML part of the page, so scroll all the way to the bottom of the file. Find this line:

Code: Select all

        <asp:HyperLink ID="EditBasketLink" runat="server" NavigateUrl="~/Admin/Orders/PlaceOrder1.aspx?UserId=" SkinID="Button" Text="Create Order"></asp:HyperLink>
Replace that line with this exact code:

Code: Select all

        <asp:HyperLink ID="EditBasketLink" runat="server" NavigateUrl="~/Admin/Orders/PlaceOrder1.aspx?UserId=" SkinID="Button" Text="Create Order"></asp:HyperLink>
    &nbsp;&nbsp;&nbsp;&nbsp;
        <asp:HyperLink ID="EditBasketLink0" runat="server" NavigateUrl="~/Admin/People/Users/EditBasket.aspx?UserId=" SkinID="Button" Text="Edit Basket"></asp:HyperLink>
Now save the file. Done!

Testing the changes
Ok, now the fun part. Let's make sure we haven't blown something (else) up. Log into your site and go to the store side. Add some items to your cart. Don't check out.
Click back to the Admin side and log in to the Admin side with the same account you just used to add basket items. Click on the People menu and choose Users.

Find the user account you used and click Edit. Scroll down on the Edit User page and you'll see the current basket contents, a Create Order button and....holy new buttons Batman! There is your new spiffy Edit Basket button. Click it.

Editing a basket
take a look at the edit basket screen. First, you'll notice there's no "Delete item" button. You don't need it. Just set a particular basket item to "0" quantity and hit the Recalculate button at the bottom. The item is then removed.
You can add new items to the basket with the Add Product button, and (insert that 2001 space movie theme) it even allows searching by SKU - how cool is that?!

Conclusion
Anything that improves the customer service experience is a good thing. Customers like instant gratification when it comes to their shopping experience. This modification puts one more tool in your belt when it comes to helping convert site visitors into store customers.

Re: Adding an Edit Basket option to your Edit User screen

Posted: Thu Jan 12, 2012 11:04 am
by crazyjoe
I need this enhancement for my 7.0.7 cart. Can anyone update this so it works with the latest version?

Re: Adding an Edit Basket option to your Edit User screen

Posted: Thu Jan 12, 2012 11:20 am
by AbleMods
Shouldn't be necessary. Able fixed this in later versions.

In 7.0.7, just find the user record and go to the Orders tab. You should see that shopper's basket contents right there. Now click the Create Order button. This will take you straight to the admin-side place-order page with the basket contents populated.

If the Current Basket section of the Orders tab is blank, then the shopper basket is currently empty.

Re: Adding an Edit Basket option to your Edit User screen

Posted: Thu Jan 12, 2012 11:42 am
by crazyjoe
Great Success! Thanks Joe!