• Resolved originalconcept

    (@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?

    Thanks

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

    (@matt-h-1)

    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.

    https://www.ads-software.com/support/topic/add-new-adresses-via-php/

    Thread Starter originalconcept

    (@originalconcept)

    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.

    Thanks

    Plugin Author Matt Harrison

    (@matt-h-1)

    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.