• Resolved Mark Krieger

    (@markcanada)


    Hi there

    I seem to be having an issue where even with logged in users the re-fill of the checkout fields is active and that wreaks havoc when switching to other users to check something out and the fields being overwritten with whatever is stored in the browser..?
    Is that just me?

    Thanks
    Mark

Viewing 10 replies - 1 through 10 (of 10 total)
  • Plugin Author Streamline

    (@streamlinestar)

    Hi Mark ( @markcanada )

    Thank you for getting in touch and noticing this.
    What you have noticed is true and once we were developing the best solution when dealing with user switching we had to make a choice should we rely on our data or on WooCommerce’s and we made a choice to go with the second.

    Let me go a bit more into details and explain the matter at hand.
    We are relying on WooCommerce session variable that keeps track of all user data and that is where we are also storing our captured abandoned cart data.
    You can try to start shopping and add any items to your shopping cart and after that once you sign in to your shop account – you will notice that your shopping cart will be replaced with items from your previous shopping experience (if you previously did use a logged in shopping, filled a cart and didn’t complete the purchase) and WooCommerce will also populate the checkout field data with the data you have saved in your account’s data. So this is all WooCommerce and how it handles user sessions if you are logged in or not.

    Now if you enable our product, we will be relying on WooCommerce’s way of working since we do not want to get into any conflicts that may arise later down the line in case of some new feature releases on the WooCommerce side. And in this case we are basically doing the same – if you add items to your shopping cart, enter your phone number + email we will capture an abandoned cart. After this point if you decide to login to your account, WooCommerce will replace your shopping cart with the previously saved cart data and therefore your abandoned cart data will be also replaced.

    I hop that the way we laid it out sounds somewhat reasonable ??
    Please let us know if you have any additional questions or suggestions.

    Warm regards

    Thread Starter Mark Krieger

    (@markcanada)

    Hi Streamline

    Thanks for the info. That’s what I would expect according to your plugin information.
    I am having the problem that when I am logged in as an admin and use a user switching plugin to switch to it used to pull the “current” user’s data from the account to checkout page.
    But it seems that it now, after installing your plugin, does not use that any more but replaces it with the information on the last checkout page visit – which is in most cases another user which I used before.
    So it doesn’t look like address entry collection and re-enter is WooCommerce based but that somehow your plugin is still active on the checkout page even when logged in – while I only expect it to work on the shopping cart for logged in users.

    So I am wondering if something else is causing that behaviour, if it is a bug or unintended consequence of the plugin.

    Thank you
    Mark

    Plugin Author Streamline

    (@streamlinestar)

    Hi Mark,

    Thanks for adding extra info on the issue.
    Would you mind sharing which plugin are you using to switch between different users so we could take a closer look into the behavior you have described?

    Kind thanks

    Thread Starter Mark Krieger

    (@markcanada)

    Plugin Author Streamline

    (@streamlinestar)

    Thanks @markcanada
    We will require some time to take a deeper dive into the way this plugin works and to understand the matter. Will get back here as soon as we have an understanding of this issue.

    Best wishes

    Plugin Author Streamline

    (@streamlinestar)

    Hi @markcanada

    Thank you very much for being so patient.
    Since we are undergoing a mayor product rebranding – we were quite short on new development time.

    But we have now had the time to investigate the Fast user switching plugin, how it functions and have now made sure that using this plugin you will get the same results as if our product wouldn’t be installed.
    Thank you for pointing out on this issue since we have now found the issue and improved the product. Please go ahead and update it to the 4.2 version and test it out with the user switching plugin.

    Also we must point out that when you are using Fast user switching plugin – it does not clear the shopping cart and therefore all items that are in your cart are automatically captured for the new user that you switch to.
    Now if you will test out how default WooCommerce would handle it then you would notice that if a logged in user loges out – the shopping cart is cleared, however when you switch to a different user via fast user switching plugin the cart is not cleared. This might cause some issues down the line since our plugin will update the users cart data once you go to the Checkout page or add / remove / edit your shopping cart.

    This is actually an issue that Fast user switching plugin developers should take care of since it seems like an issue on their side.

    Once again – thank you very much for helping to improve the product for everyone! ??

    Warm regards

    Thread Starter Mark Krieger

    (@markcanada)

    Hi @streamlinestar

    Thanks you so much for looking into it and taking care of the address issue.

    Also thank you for letting me know about the cart issue. I guess the ideal would be that the cart moves with the client logged in and that the admin could pre-load or inspect the user’s cart like it does if one would use regular log in and out with your plugin.
    I wonder if there is a hook they have or can create that would allow a function to be called in your plugin after their switch to replace the user’s cart with your saved data with an additional piece of PHP code I can add in the site to make the connection between your plugins?

    Thank you again very much
    Mark

    Plugin Author Streamline

    (@streamlinestar)

    Hi @markcanada

    You are exactly right that the shopping cart should move along with the user and it does if you use default WooCommerce login / logout functionality.
    In this situation the best bet would be to try to reach out to Fast User Switching plugin authors and ask them to address the issue of cart contents not being updated during user switching.

    So by default WooCommerce stores cart data for each registered user and restores is for each user as he signs in. The right way to solve this issue would be rather to rely on the source data (coming from WooCommerce) than to rely on CartBounty captured data (the end product). If you take care that after fast user switching the cart data is restored for each individual user then CartBounty will not require any additional modifications.
    I hope this makes any sense ??

    Best wishes

    Hi I have a similar issue I think is caused by this plugin.
    When an order is placed for a registered user, the state code is populating the City field, not only in the order address but then writing back to the user profile.

    Plugin Author Streamline

    (@streamlinestar)

    Hi @pete4mask

    Thanks for your feedback.
    Or product actually doesn’t interact in any way when it comes to completed orders. In contrary – when a user completes the purchase and a new order is generated via WooCommerce our abandoned cart row is immediately deleted.
    Maybe you could add some screenshots or more details to your issue if I’m missing something here?

    Maybe you could add some steps how to reproduce this so we could be able to see this behavior? It would help if you could add some screenshots into it as well.

    Thanks

    • This reply was modified 5 years, 4 months ago by Streamline.
Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘Overwritten when logged in’ is closed to new replies.