I need someone to write me a PHP script that allow user to add products too WooCommerce database. The meaning of this script is that i want to add products to my WooCommerce store from another website.
Form inputs needed:
1. Product name
2. Product description
3. Product category (Dropdown, must be populated by existing categories in WooCommerce)
4. Product picture (html file image capture)
5. Product price
6. Stock amount
1. Must be written in PHP procedural! NO OOP!
2. Must use mysqli
3. Must have a config file where DB credentials will be added