Support » Plugin: WooCommerce Address Book » Importing 8 addreses

  • Resolved originalconcept


    Hello! I use a plugin to import customer in a regular basis.

    They use to hace between 5 to 8 shipping addreses.

    How are named the metafields so I can import them directly to each user profile?


Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Contributor Matt Harrison


    The fields are similar to the normal shipping fields but replace the prefix with values like shipping2_ and shipping3_

    You also need an array of all the address names used which is stored in wc_address_book

    See this thread for a sample PHP script being used to import addresses.

    Thank you for the quixk response.
    And in case I have to add an additional field to these addreses?

    I have to add a custom metafield called “internal_id” for each address, this because when I send the order to my ERP y have to send the internal ID of the addresss to avoid create new addreses.


    Plugin Contributor Matt Harrison


    If in your default shipping address you have this saved as shipping_internal_id

    You can just save it with the other prefix like shipping2_internal_id or shipping3_internal_id.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Importing 8 addreses’ is closed to new replies.