When a user logins in, their anonymous basket contents replace their registered user basket contents. I have a client who wants the anonymous basket merged into the registered user basket so that no potential sales are lost. Their shoppers tend to build large baskets (20+ items) so this is a big deal to them.
I tried changing .Migrate(), but wound up causing more problems than I solved.
Is there an easier way to accomplish this? We have full source code.
R11 how to merge anonymous basket into registered basket
R11 how to merge anonymous basket into registered basket
Joe Payne
AbleCommerce Custom Programming and Modules http://www.AbleMods.com/
AbleCommerce Hosting http://www.AbleModsHosting.com/
Precise Fishing and Hunting Time Tables http://www.Solunar.com
AbleCommerce Custom Programming and Modules http://www.AbleMods.com/
AbleCommerce Hosting http://www.AbleModsHosting.com/
Precise Fishing and Hunting Time Tables http://www.Solunar.com
Re: R11 how to merge anonymous basket into registered basket
You should try to extend BasketService and override its Transfer method. There you can ensure to copy over the basket items instead of deleting target items.
Re: R11 how to merge anonymous basket into registered basket
K so do I just do a basketitem.cooy() and add that to the target collection?
Joe Payne
AbleCommerce Custom Programming and Modules http://www.AbleMods.com/
AbleCommerce Hosting http://www.AbleModsHosting.com/
Precise Fishing and Hunting Time Tables http://www.Solunar.com
AbleCommerce Custom Programming and Modules http://www.AbleMods.com/
AbleCommerce Hosting http://www.AbleModsHosting.com/
Precise Fishing and Hunting Time Tables http://www.Solunar.com
Re: R11 how to merge anonymous basket into registered basket
Yes something like that. This copy thing can also be tried in front end codes before calling migrate. Just copy over the basket items to new user's basket before calling migrate.