• Resolved bruceandmrgiggles

    (@bruceandmrgiggles)


    I like how really simple and customizable your wishlist is. However, it seems that the wishlists are shared by users with the same roles? I registered a user with “Customer” role and added items to the wishlist using that user’s account. I registered another user with the same role. The same items were displayed in the wishlist even though I haven’t started adding for the new user. Is it possible for registered users to have their own wishlist? I’m not an advanced developer, so it’d be great if you could guide me, thanks!

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Contributor Joris van Montfort

    (@jorisvanmontfort)

    Hi,

    When users are not logged in the wish list is stored in a cookie. After login the wishlist is stored as user meta. The cookie data is copied to the user meta. The user meta is supposed to work at individual user level. I haven’t tested your case, but would you mind testing again? Please open an incognito browser window and login there to make sure the data is not being copied from the cookie. After login please add some items to the wish list. Log out and login again to see if it was stored correctly.

    Close the incognito window and try the same for your other user.

    The cookie data is obviously shared when testing on the same browser and on the same machine without the incognito window.

    I hope this test works and I suspect the problem is with data being copied from the same cookie. With users on different machines or different user accounts this should work perfectly. Please let me know if the problem still persists or not.

    Kind regards, Joris

    Thread Starter bruceandmrgiggles

    (@bruceandmrgiggles)

    Okay, I did what you said, and yes it worked if users used different browsers. I also tried logging them in again using the same browser – one user’s items were replaced by the other user’s items in the wishlist.

    So you mean to say it’s better that a user does not log into an account right after the other, using the same device and browser? Otherwise, the cookies will keep copying the data? Isn’t there a way to prevent cookies from copying all data all the time for this? Thanks for the reply, btw.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Wishlist for each registered users’ is closed to new replies.