Moving added item from anonymous basket to user specific basket
Hi,
I am working on basket, I referred Changing the Default Basket Behavior of uCommerce. Further suppose if user add 2 items in basket and after adding those items user do login in system, I want to move those added 2 items from anonymous basket to user specific basket.How to do that?
I am using Umbraco v6.0.0 and uCommerce-3.0.4.13032.
Moving added item from anonymous basket to user specific basket
Hi,
I am working on basket, I referred Changing the Default Basket Behavior of uCommerce. Further suppose if user add 2 items in basket and after adding those items user do login in system, I want to move those added 2 items from anonymous basket to user specific basket.How to do that?
I am using Umbraco v6.0.0 and uCommerce-3.0.4.13032.
I think you can add this logic into the GetBasket method in your own custom OrderContext class. It would go somehting along the lines of this:
https://gist.github.com/adamjenkin/5200380
Note - NOT tested! I just did this in notepad but you should get the idea!
Hi adam,
I tried that piece of code but not working for me :(
Hi Leena
Have you made any changes to the working of the anonymous basket - if so what kind?
Hi Nickola,
yes, I changed behavior of my basket. Followed the Changing the Default Basket Behavior of uCommerce and did changes accordingly.
is working on a reply...