Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


These support forums are now closed for new topics and comments.
Please head on over to http://eureka.ucommerce.net/ for support.

  • Leena 29 posts 100 karma points
    Mar 19, 2013 @ 14:16
    Leena
    0

    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.

  • Adam Jenkin 71 posts 226 karma points
    Mar 19, 2013 @ 22:39
    Adam Jenkin
    0

    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!

  • Leena 29 posts 100 karma points
    Mar 20, 2013 @ 04:43
    Leena
    0

    Hi adam,
    I tried that piece of code but not working for me :(

  • Nickolaj Lundgreen 233 posts 1132 karma points
    Mar 20, 2013 @ 10:07
    Nickolaj Lundgreen
    0

    Hi Leena

    Have you made any changes to the working of the anonymous basket - if so what kind?

     

  • Leena 29 posts 100 karma points
    Mar 21, 2013 @ 04:16
    Leena
    0

    Hi Nickola,

    yes, I changed behavior of my basket. Followed the Changing the Default Basket Behavior of uCommerce and did changes accordingly.

Please Sign in or register to post replies

Write your reply to:

Draft