Sunday, October 21, 2012

how to copy one user details to another user?

I feel this is a very interesting feature..

1.How will you move the shopping cart details of the guest user to register user after login?

2.How you will move guest users shopping list to register user?

3.How you will move guest user Address to the Registered user ?

One of the solution is :  MigrateUserEntriesCmdImpl


This task command is used to migrate resources owned by one user to another.
The mandatory resources that are migrated are Addresses, Current Orders, Interest Items, Order Items, Orders, and Order templates.


Some of the methods are :
    migrate address
    migrate orders
    migrate coupons
    migrate current orders
    migrate experiment results
    migrate interest item list
    
    hope this will work out.......