• Hello,

    the additional addresses that have been created aren’t displayed in the backend under the respective user. I’d like to use a code snippet to display these additional addresses in the backend under the respective user. What values do I need to query for this, or where does the plugin store these addresses?

    Thank you very much for your help!
    (Perhaps there is a way to incorporate this directly into the plugin so that they can be displayed under the user in the admin area.)

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

    (@matt-h)

    Hi,

    The data is all stored under the user as usermeta. You can use these functions if you’d like to access the address book object directly in your code.

    $billing_address_book = \CrossPeakSoftware\WooCommerce\AddressBook\get_address_book( new \WC_Customer( $user_id ), 'billing' );
    $shipping_address_book = \CrossPeakSoftware\WooCommerce\AddressBook\get_address_book( new \WC_Customer( $user_id ), 'shipping' );

    We also have the Pro version of the plugin which has Backoffice support which includes the ability to manage a user’s address book right from their user profile in the admin.

    Matt

Viewing 1 replies (of 1 total)

You must be logged in to reply to this topic.