Page 1 of 1
How can customer modify basket items without remove then add
Posted: Wed Jul 22, 2009 12:08 pm
by ZLA
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?
Re: How can customer modify basket items without remove then add
Posted: Wed Jul 22, 2009 2:35 pm
by jmestep
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>
Re: How can customer modify basket items without remove then add
Posted: Wed Jul 22, 2009 3:16 pm
by ZLA
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?
Re: How can customer modify basket items without remove then add
Posted: Thu Jul 23, 2009 4:29 am
by mazhar
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.
Re: How can customer modify basket items without remove then add
Posted: Thu Jul 23, 2009 6:08 am
by ZLA
Oh well. I'll post a feature request.