-
Notifications
You must be signed in to change notification settings - Fork 15
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Sync shipping address #125
Comments
I'm going to close this, because I think we could better solve this problem by providing a nice export of members in the Memberful dashboard. |
@dstrojny I don't suppose you'd still consider this? We'd like this to synchronise with WordPress as we have a WooCommerce shop which separately stores Billing/Shipping address and at the moment Memberful also stores a shipping address and obviously they're getting out of sync. Right now if we run the Memberful export, we don't see any of the WordPress shipping addresses. |
Sure! We can definitely reconsider this. |
I have this working with a custom plugin and child theme for a WooCommerce site I work with. My approach was: Memberful --> WordPress/WooCommerce
WordPress/WooCommerce --> Memberful
I suppose you could take out the sleep and just The behaviour is transparent to the user (except it takes a few seconds longer to save the address) and doesn't require custom WooCommerce templates for the address editing pages. The custom WooCommerce templates may be required in order to change the account-editing links to Memberful account links (which will bring up the Memberful Overlay automatically) e.g. sign in/out and password reset. It should be noted that I initially tried the approach of adding a WordPress filter to the "update_user_metadata" hook but this quickly led to circular updates between the WordPress DB and the Webhook essentially calling each other. One case the above hasn't been tested for is if the user edits their address on the checkout page during checkout. It's a start though. |
Cool! Thanks for sharing the solution you have in place 👍 |
After thinking this through I've swapped out Doing it this way makes the bi-direction sync asynchronous without any apparent slowdown (by also setting |
We have an option for collecting shipping address, but it doesn't sync with the WordPress user profile. We should consider adding it in.
The text was updated successfully, but these errors were encountered: