• Resolved Chad Reitsma

    (@chadreitsma)


    3.0 really did a number on this.

    1. User’s can’t see their addresses on their account page (there are just empty boxes
    2. If you edit an address it doesn’t even load (Javascript issue???)
    3. Deleting an address says it deletes, but if you refresh it is still in the database.

    I see your database structure changed — should I delete the old wc_address_book meta key? Seems like it’s now using wc_address_book_shipping and wc_address_book_billing as the reference arrays.

Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Author Matt Harrison

    (@matt-h-1)

    Hi Chad,

    Sorry to hear you are having issues with the new version.

    We haven’t encountered these issues on any of the sites we’ve upgraded so far except for we have have seen empty addresses show up. We believe this was from address books from an older version that had some empty addresses saved that were hidden before so they show as empty ones in the new version, although we haven’t been able to yet see if that is reproducible.

    The wc_address_book meta key was from the 1.x version of the plugin the upgrade to wc_address_book_shipping and wc_address_book_billing was back in 2.0 in 2021. It is safe to delete the wc_address_book meta key, but it shouldn’t cause any issues if it is left there.

    As far as not being able to edit or delete addresses, we haven’t seen that yet. Are you able to see if there is any javascript or php errors that might help point us to the cause?

    This is a very serious issue. It removed the addresses on three sites where I use this plugin.

    Thread Starter Chad Reitsma

    (@chadreitsma)

    Hey Matt,
    Thanks for the quick reply!

    I forgot that we added a filter which modified the $address_book Array – this was causing issues with the edit/delete buttons because the names didn’t match the new format in the database (so the AJAX + href’s used the wrong reference).

    I think I can figure the rest out from here. Thanks again!

    • This reply was modified 1 year, 3 months ago by dwdonline.
    • This reply was modified 1 year, 3 months ago by dwdonline.
    Thread Starter Chad Reitsma

    (@chadreitsma)

    @dwdonline

    There is some code inside the new plugin that will attempt to convert old addresses to the new format. Unfortunately, if you had a filter like I did it fills them with empty/broken results, then removes the original meta keys.

    I had to restore the deleted shipping# user_meta (from a DB backup), then delete all corresponding (empty) arrays which were saved as wc_address_book_address_shipping_shipping<#>

    After logging in again, it will convert them properly. Hopefully that helps!

    Plugin Author Matt Harrison

    (@matt-h-1)

    Hi Chad,

    That is good to hear you were able to figure out how to get it working.

    This was a major upgrade where we changed almost everything about how the plugin works under the hood. This was all done to start using the WooCommerce CRUD functions, optimize how efficient address data is loaded in and stored, reduce the number of WooCommerce core overrides we were using, eliminate address naming fragility when storing or modifying data, and allow the plugin to be easier extended.

    We did it all at once to reduce the number of times we introduced potentially breaking changes, which we tried to detail in the changelog. With this new structure we hope it will allow us to now extend the plugin further without any more changes that aren’t breaking.

    As you saw with the upgrade functions, we tried to release it in a way that it wasn’t breaking at all as long as the plugin wasn’t being overridden with customization so users that just installed the plugin and didn’t modify it at all will upgrade seamlessly with no changes required.

    Perhaps, since WordPress’ upgrade notifications don’t show the changelog unless you click through to get to it we do need a bigger notification in the admin it notify of the upgrade to let any others that have modifications in place be more aware to what they need to do when upgrading.

    Plugin Author Matt Harrison

    (@matt-h-1)

    @dwdonline I see you deleted your second reply. Does that mean you were able to figure out what happened?

    Here is what I have noticed. When I log in as a customer and go through the checkout process, it seems to be loading, but when I get to the checkout page, everything disappears.

    If I go back to the address book, and then cart, checkout everything loads correctly.

    Does this make any sense? I have also noticed if I dont have the import/export section enabled it does not work even with this work around.

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘All addresses missing / broken’ is closed to new replies.