Get a woocommerce product info and transfer to a custom DB table

by Walnef   Last Updated April 15, 2019 09:08 AM

I'm currently doing a registering service for products with wordpress and woocommerce. All products that customers can register will be in woocommerce database, but not visible on frontend.

Here is my goal : make a form with a dropdown list (items inside it will be all my woocommerce products), where user can pick his product. He will then write when he bought his product, name, address, etc.

The path will be : get all informations I want from product database of woocommerce before using it later -> get personal info written inside form on frontend -> write all that data inside a table in mySQL.

I tried with wc_get_products(); but I do not know how to get specific information (name, url of photo, SKU, and some specific information like warranty period), it returns some weird array.

I already mapped my table for mySQL, I just need to know how to get info and send it into it.

Thanks to anyone who can help me.

Tags : woocommerce

Related Questions

Updated March 26, 2015 12:02 PM

Updated March 27, 2015 05:02 AM

Updated April 04, 2015 15:03 PM

Updated April 04, 2015 16:03 PM

Updated April 06, 2015 19:03 PM