Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Basket bug

Status
Not open for further replies.

wowsas

Programmer
Aug 14, 2002
1
US
When a user browses to the Retail solution site as a Guest user, adds a product to his or her basket, and then register as a new user - basket become empty :(

Did some one had same problem and is there any solution?
 
Hi

This should not be a problem with the retail site as it does transfer the basket on login.

Sub MoveBasketItems(ByVal sSourceBasketID, ByVal sDestinationBasketID)
Dim mscsOrderGrp, mscsOrderGrpMgr

' The source basket must exist and contain at least one item.
Set mscsOrderGrp = LoadBasket(sSourceBasketID)
If mscsOrderGrp.Value(TOTAL_LINEITEMS) <> 0 Then

' Add the items in the source basket to the items in the destination basket.
Set mscsOrderGrp = LoadBasket(sDestinationBasketID)
Call mscsOrderGrp.AddItemsFromTemplate(sSourceBasketID)
Call mscsOrderGrp.SaveAsBasket()

' Remove the source basket.
Set mscsOrderGrpMgr = GetOrderGroupManager()
Call mscsOrderGrpMgr.DeleteOrderGroupFromDisk(sSourceBasketID)
End If
End Sub

However I did not use the retail site and so just transfer my items from the basket to new order Group on login and removed the old.

Look at login.asp on retail, inparticular the above function and Sub PrepareLoginPage()

Hope that helps

Brained
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top