Support » Plugin: CartBounty - Save and recover abandoned carts for WooCommerce » Plugin is messing the edit-address account page

  • Resolved ngrudev

    (@ngrudev)


    HEllo,

    I found out that the plugin is not working properly for logged in user on edit-address account page when user review or change his address data, such as country, state, postocode, city and etc.

    Firstly, when plugin is enabled, I cannot see the saved usermeta, but I see something else, probably saved in session from my last checkout order. When I deactivate the plugin the problem is resolved and now I can see my correct profile user meta data, such as city, country etc.

    Second, when plugin is enabled, and I change my data in edit-address account page, after page reloads I don’t see the last changes. I see the old values, but when I deactivate the plugin I see the new values. When I go to admin area and check my profile via admin dashboard I see that last values are properly saved, so there is no problem with saving data.

    SO I guess, when plugin is activated it shows the saved in session user data instead of saved in user meta.

    The page I need help with: [log in to see the link]

Viewing 15 replies - 1 through 15 (of 15 total)
  • Plugin Contributor Nauriskolats

    (@nauriskolats)

    Hi @ngrudev It’s good to hear back from you! 🙂
    Please allow me to explain how CartBounty feature “Remember user input” works which is responsible for the experience you outlined above and hopefully I will be able to show that everything works as it is intended.

    We can split users into two groups – authorized users (ones who have signed in your store) and guests (users who do not have account in your store).
    We will not be focusing on guest users here since it is clear that once the guest adds his email or phone, his name, surname is then restored after checkout page is reloaded from the saved abandoned cart data that has been captured. And in case the guest changes his name from John to Bobby, after the page reload his name field will be restored as the one he has last entered > Bobby. This is quite simple and you can easily test this behavior out on your store.

    Now with authorized users there is a slight difference. Here are scenarios that are taken into consideration:
    a) User has never placed an order in your store. In this case the user has not a lot of WooCommerce related meta data saved about him, except his email, name and maybe surname (the information that is filled by him during registration process).

    b) User has previously purchased something from you. In this case the user has previously entered all of required WooCommerce meta data required to checkout.

    Now when you add CartBounty to this, there is another layer added to it. In this case if the user signs in to the store, first time his original meta data from his account are restored in the checkout fields. And from this point on a new abandoned cart is saved for this user by CartBounty and if the user during checkout process decides to change his email, phone, name, surname, company, address or any other data, it is automatically captured by CartBounty and next time user refreshes the page, his last input is restored from CartBounty. This is how “Remember user input” feature works. If a user changed his name at this point, then it was his intention to do that and therefore we restore it to the data that the user himself entered last.

    I know it’s a bit complicated, but I hope that I managed to explain how this feature works 🙂
    Let me know if you have any additional questions.

    Best,
    Nauris

    Thread Starter ngrudev

    (@ngrudev)

    Hi Nauris,

    Tanks for explanation. I want to give you another point of view. If I understand you well, the idea is the plugin to remember the last customer meta data such as name, city, postocode etc. entered in his last checkout order, right? BUT, if user decides to redeclare its meta data via edit-address page (for example he changed his shipping address), isn’t this actually his last data? Sure it is, and thats why it is more logical after “save” button clicked the plugin to reset the client cached meta data and to remember the last saved in edit-addres as newest, instead of keeping the old data from the last checkout. With current logic, the edit-address page is useless and the bhaviour of bounty plugin confuse me. I spend I lot of time deactivating other plugins to found out which is in conflict with WC, because I was unable to update my address data. If you still want to keep your loging, you can create some new settings options in admin area of the plugin giving the users choice between current logic and new one, proposed by me. It will be even better also make another option to exclude completely the edit-account page from plugin logic. These are just 2 more checkboxes in the settings area, but they will make big satisfaction.

    Niki 🙂

    • This reply was modified 1 year, 1 month ago by ngrudev.
    • This reply was modified 1 year, 1 month ago by ngrudev.
    • This reply was modified 1 year, 1 month ago by ngrudev.
    Plugin Contributor Nauriskolats

    (@nauriskolats)

    Yes, you have a point there, but the scenario you have outlined is going to happen only once and should be a very rare occasion for a real customer.

    If your customer has authorized and his cart has been saved by CartBounty and during this session he now decides to go and change his data in WooCommerce account and then returns to the checkout in the same session, his data will be restored from the previous CartBounty captured input.

    However if the user ends his session (signs out of the account, closes the browser), next time he will sign in, his data is going to be taken from WooCommerce and only then again CartBounty “Remember user input” feature will kick in and start restoring the fields.

    Hope this explains better the mechanics of it.

    Best,
    Nauris

    Thread Starter ngrudev

    (@ngrudev)

    Yeah, I know how it works, but I still don’t want the bounty login on my edit-address. It is pointless for me. You should condsider that not only end customers are purchasing in my web site. I have also shop managers, affiliate and different agencies which are placing orders for many different customers from their account. If you can and ofcourse if you agree, it will be great to give more options to set up in the settings.

    1. To restore user session on “save” button clicked. (checkbox – unchecked by default)
    2. To completely exclude edit-address page from bounty logic. (checkbox – unchecked by default)

    Thanks 🙂
    Niki

    Plugin Contributor Nauriskolats

    (@nauriskolats)

    I see your point here. Thanks for bringing this to my attention.
    I will see how we could include some sort of logic on how to deal with this. I’m guessing we will be hooking into WordPress and WooCommerce default profile update function thus updating user’s abandoned cart data with the latest one from user’s profile.

    Will see how it turns out 🙂

    Warm regards,
    Nauris

    Thread Starter ngrudev

    (@ngrudev)

    Thank you Nauris.

    Niki 🙂

    Plugin Contributor Nauriskolats

    (@nauriskolats)

    Hi @ngrudev

    Just wanted to let you know that we have just released a new version and one of the improvements takes care of improving the “Remember user input” function.
    Now, in case a registered user decides to change his account details and come back to the checkout, his data will be first taken from his account and only then CartBounty’s “Remember user input” function will kick into action.

    Please feel free to update to the latest version and test this feature out.
    And thanks a lot for bringing this topic up! 🙂

    Best wishes,
    Nauris

    Thread Starter ngrudev

    (@ngrudev)

    Yeah, great! But The problem with missing field values is still. Please see the screenshots. After saving everything is gone. They are actually in the database, but not vissible on the account-address page.

    1. Everything is filled with new values and then saved – https://www.luga.bg/temp/first.png
    2. After page reload everything is missing – https://www.luga.bg/temp/second.png

    • This reply was modified 1 year ago by ngrudev.
    Plugin Contributor Nauriskolats

    (@nauriskolats)

    Hi @ngrudev

    I just checked on our development version if we are able to reproduce the issue on My account > Addresses page. Tried saving a different name, surname and then hit the “Save address” and it all worked out without any issues.
    Take a look at the test: https://we.tl/t-T6qoel2cKR

    CartBounty actually does not interact with the My account page, but only interacts with the Checkout form and it is there that CartBounty’s “Remember user input” function runs. It does not fire on any other form so this issue you are currently showing should not be related to CartBounty. Could it be that you have some custom code or a plugin that is causing issues with saving your address?

    Best,
    Nauris

    Thread Starter ngrudev

    (@ngrudev)

    I found incompatibility with “Braintree For WooCommerce” plugin, which I use for receiving card payments. This is the plugin page: https://wordpress.org/plugins/woo-payment-gateway/

    If I deactivate it the issue on edit-address page is resolved. What should I do?

    Plugin Contributor Nauriskolats

    (@nauriskolats)

    Thank you @ngrudev, will take a look if we are able to reproduce this issue on our testing environment and see what might be causing this behavior.

    Thread Starter ngrudev

    (@ngrudev)

    TO simulate it *when Braintree plugin is activated) first add some products in the basket and go to checkout page (just go there, don’t place order). Then return to edit-address/billing and try to change something (Billing name, phone.. wahatever) and then save it. After page reload in my case everything is missing. This is how I reproduce the problem. Deactivating one of both Braintree or Cartbounty plugin, no issue is observed. The point is I need the both plugins working together 🙂 I test this on Singe and Multisite networks and is the same.

    • This reply was modified 1 year ago by ngrudev.
    • This reply was modified 1 year ago by ngrudev.
    • This reply was modified 1 year ago by ngrudev.
    Plugin Contributor Nauriskolats

    (@nauriskolats)

    Thanks for the additional input.
    Spent some time to debug this issue and were able to localize it. The issue arises from the fact that Braintree plugin changes the default WooCommerce My account page forms to act as WooCommerce Checkout forms and that is why “Remember checkout fields” function from CartBounty fired and tried to restore data.

    Just released a fix for this making sure that “Remember checkout fields” function no longer fires on My Account page.

    Thank you for helping to find this issue! 🙂 Please go ahead and update to the latest 5.0.4 version of CartBounty.

    Thread Starter ngrudev

    (@ngrudev)

    Works perfect now! 2 of 2 issues are resolved. Great support. Plugin is better now 🙂

    Thank you

    Plugin Contributor Nauriskolats

    (@nauriskolats)

    🙂 Thank you

Viewing 15 replies - 1 through 15 (of 15 total)
  • The topic ‘Plugin is messing the edit-address account page’ is closed to new replies.