Support » Plugin: WooCommerce Address Book » First shipping address used in checkout not in Account

  • Resolved gurnzbot

    (@gurnzbot)


    When I add a shipping address for a logged in user within the checkout process, the address is not in the account’s “Address Book”, but I can see it available in the checkout’s shipping address dropdown select box.

    Steps to reproduce:

    1. Register a new user and log in
    2. Add an item to my cart
    3. Go to checkout
    4. Enter billing address
    5. Click “Ship to a different address”
    6. Enter new shipping address
    7. Complete checkout

    When you then go to “My Account”, and click on “Address Book”, you do not see any address under “Shipping Address Book”. The billing address does exist.

    If you go to the checkout again, you can see the address available for selection.

    If you go through the checkout process a second time and select “Add new address” for shipping, it will be added to “Address Book” as expected under “My Account”. Furthermore, both addresses entered at this point are selectable in checkout, but the first one does not show up in “My Account”.

    So it seems as if the first Shipping Address is just not shown within the user’s account.

    I do not see any errors in the debug.log

    • This topic was modified 1 year ago by gurnzbot.
Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Contributor Matt Harrison

    (@matt-h-1)

    Hi,

    Thanks for reporting this! We have fixed this in version 1.7.2 so it should work properly again to save addresses when checking out.

    If you are still having any issues here, just let us know.

    Matt

    Hey Matt!

    The first shipping address saved for a user still does not show up under My Account->Address Book.

    I went through the plugina bit and found the following lines in the my-address-book.php template, which seem to be skipping the first address since it has an index within the address array of shipping.

    // Prevent default shipping from displaying here.
    if ('shipping' === $woo_address_book_name || 'billing' === $woo_address_book_name) {
        continue;
    }

    Is there a reason to skip the first/default address?
    It seems expected that the user would be able to see and edit it within the Address Book plugin.

    Thanks for any insight!! 😀

    • This reply was modified 7 months, 2 weeks ago by gurnzbot. Reason: Added template name for reference
    Plugin Contributor Matt Harrison

    (@matt-h-1)

    Hi,

    The primary Shipping Address doesn’t show in the address book list because it already shows above as the Shipping Address next to the Billing Address.

    Clicking Make Primary under any address makes that one your primary and moves the current primary down into the other addresses of the address book.

    I don’t entirely follow. I think I’m just being dense and misunderstanding.

    Under the /my-account/edit-address/ screen, I only see one address (I expect to see 2).
    However within the checkout dropdown I see 2 available addresses (as expected).

    Here are relevant screenshots.

    My Account screen

    Checkout

    Plugin Contributor Matt Harrison

    (@matt-h-1)

    Interesting. What does that page look like without the address book plugin enabled?

    Here is what we typically have in our setups:

    With Address Book Plugin: https://imgur.com/a/XhMtb57

    Without Address Book Plugin: https://imgur.com/a/GhqeqwK

    I’m wondering if there is some setting you have which is making the default shipping address not show up. If so, we should check for that setting.

    Welp this is embarrassing.

    Your screenshots helped me track down the issue. It was on our end.

    Seems our front-end guy did the ol’ display: none !important; on that specific element. Why? God knows. Time to go talk to someone.

    I apologize for wasting your time :/

    • This reply was modified 7 months, 2 weeks ago by gurnzbot.
    Plugin Contributor Matt Harrison

    (@matt-h-1)

    Welp, at least that clears up the issue and you are all set now.

    • This reply was modified 7 months, 2 weeks ago by Matt Harrison.
Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘First shipping address used in checkout not in Account’ is closed to new replies.