How can customer modify basket items without remove then add

For general questions and discussions specific to the AbleCommerce 7.0 Asp.Net product.
Post Reply
ZLA
Commodore (COMO)
Commodore (COMO)
Posts: 496
Joined: Fri Mar 13, 2009 2:55 pm

How can customer modify basket items without remove then add

Post by ZLA » Wed Jul 22, 2009 12:08 pm

Is there any way during checkout for a customer to modify a basket item without having to remove it and then add it back with new options?

There are several points here:
  • Is there any to let a user change an item from the Basket (Basket.aspx), Item Details (One Page Checkout) or confirmation (multi page checkout - ShipMethod and Payment) pages? Say a link that says "Change Item" similar to the Delete link on the Basket page.
  • Clicking on the link should take you to the item and if the item is saved, replace the current basket item with the new addition.
  • When the user clicks on "Change Item" and it takes you to the item, it should preselect the options the user has already picked for the item in the basket.
Does any of this exist? If not, what would be required to implemement this?

This is very important to my client so I would really appreciate any solutions or comments?

User avatar
jmestep
AbleCommerce Angel
Posts: 8164
Joined: Sun Feb 29, 2004 8:04 pm
Location: Dayton, OH
Contact:

Re: How can customer modify basket items without remove then add

Post by jmestep » Wed Jul 22, 2009 2:35 pm

In Able 5.5, Ablenet version you could do that.
Is this what you are asking- put this product in the basket, click to edit.
http://hitechwireless.com/6-Shot-6-Unit ... 101C0.aspx
It goes back to the product page with a button Update Cart on it.
It looks like it passes the orderitem id back to the product page and automatically selects the previous option in the dropdown.
That might give you enough of an idea of how to do it and here is the code from the Basket Panel user control. Maybe mazhar could post a version for Able7- it looks like it wouldn't be too hard to do.

Code: Select all

'update orderitem id in edititem link
				Dim hlEdit As HyperLink
				hlEdit = DirectCast(BasePage.FindControl_R(e.Item, "hlEdit"), HyperLink)
				If intProductID > 0 Then
					hlEdit.NavigateUrl = cbProduct.GetStaticURL(sStoreUrl, "?OrderItem_ID=" & intOrderItemID & "&", 0, objOrderItem.Product_ID, objOrderItem.Name)
				Else
					hlEdit.NavigateUrl = ""
				End If
				hlEdit = Nothing

Code: Select all

							<asp:HyperLink ID="hlEdit" Runat="server">
								<%# DataBinder.Eval(Container.DataItem, "Name") %>
							</asp:HyperLink>

Judy Estep
Web Developer
jestep@web2market.com
http://www.web2market.com
708-653-3100 x209
New search report plugin for business intelligence:
http://www.web2market.com/Search-Report ... -P154.aspx

ZLA
Commodore (COMO)
Commodore (COMO)
Posts: 496
Joined: Fri Mar 13, 2009 2:55 pm

Re: How can customer modify basket items without remove then add

Post by ZLA » Wed Jul 22, 2009 3:16 pm

Thanks Judy. That's exactly the functionality I'm looking for.

Unfortunately, I don't think there is any support for this in AC 7x. Looking at ProductHelper.cs and BuyProductDialog.ascx, there seems to be no support for specifying the OrderItemId. In BuyProductDialog.ascx, the only querystring parameter seems to be ProductId. While it could be done, I'm not sure my knowledge of options, variants and kits is strong enough yet to do this safely.

AC gurus, does this feature exist?
Or can you point me in the right direction?

User avatar
mazhar
Master Yoda
Master Yoda
Posts: 5084
Joined: Wed Jul 09, 2008 8:21 am
Contact:

Re: How can customer modify basket items without remove then add

Post by mazhar » Thu Jul 23, 2009 4:29 am

Yes you are right, this feature is not included in 7.0.0 Plus. For some one who wants to implement suggested guile line could be to study BuyProductDialog and ProductHelper class. When redirecting customer back to product page from basket you can pass basketItemId and then update related methods to load the page if there are some selected options for basket item.

ZLA
Commodore (COMO)
Commodore (COMO)
Posts: 496
Joined: Fri Mar 13, 2009 2:55 pm

Re: How can customer modify basket items without remove then add

Post by ZLA » Thu Jul 23, 2009 6:08 am

Oh well. I'll post a feature request.

Post Reply