States in update_user_meta
-
Hi
Im creating a plugin for connect Prestashop & Woocommerce. When I create a new user I update this customer with Woocommerce fields with update_user_meta like this:
update_user_meta( $user_id, “billing_email”, $customer[’email’] );
But I dont know what data type I need to billing & shipping state.
I know that is a string data, but with ISO Code like Contries or full State name?
update_user_meta( $user_id, “billing_state”, $customer[‘state’]);
What data type is $customer[‘state’]?
Best regards
The page I need help with: [log in to see the link]
-
Hi @jjmontalban
Good to know you are working on creating a plugin that connects Prestashop & Woocommerce.
For help with custom coding we recommend the WooCommerce Developer Resources Portal.
You can also visit the WooCommerce Facebook group or the
#developerschannel of the WooCommerce Community Slack. We’re lucky to have a great community of open-source developers for WooCommerce, and many of our developers hang out there, as well.For direct assistance with code customizations, we recommend consulting with the WooCommerce Customizations Partners. https://woocommerce.com/customizations/
Kindly be informed that support for custom coding is beyond the scope of support we are able to provide in this forum. This particular forum is for questions that are related to the WooCommerce core features.
Nevertheless, I’m going to leave this thread open for a bit to see if anyone is able to chime in to help you out here.
Cheers
Seems we’ve not had additional inputs on this thread. Thus, we encourage you to make use of the above resources.
I’ll go ahead and mark the thread as resolved but please feel free to create a new thread if you have further questions.
The topic ‘States in update_user_meta’ is closed to new replies.