Title: Adding Product Using PHP
Last modified: August 20, 2016

---

# Adding Product Using PHP

 *  Resolved [mihart](https://wordpress.org/support/users/mihart/)
 * (@mihart)
 * [13 years, 2 months ago](https://wordpress.org/support/topic/adding-product-using-php/)
 * Hi,
 * Here is my target. User should able to add product in frontend. I’m using wp 
   user frontend and tweak it and I was able to post product in frontend. But it
   was only a simple product. What I want is when I add product it will be a “Variable”
   and will set “Attributes” and then with “Variations” and with “Image Variation”.
 * Can someone direct me on how can I do this in php? I tried this in Jigo and I
   failed so I switch to Woo and hoping I can make this.
 * Thank you in advance!
 * [http://wordpress.org/extend/plugins/woocommerce/](http://wordpress.org/extend/plugins/woocommerce/)

Viewing 3 replies - 1 through 3 (of 3 total)

 *  [Roy Ho](https://wordpress.org/support/users/splashingpixelscom/)
 * (@splashingpixelscom)
 * [13 years, 2 months ago](https://wordpress.org/support/topic/adding-product-using-php/#post-3602872)
 * I don’t have a solution for you but just curious as to why you think people should
   be able to add products in the front end?
 *  [Coen Jacobs](https://wordpress.org/support/users/coenjacobs/)
 * (@coenjacobs)
 * [13 years, 2 months ago](https://wordpress.org/support/topic/adding-product-using-php/#post-3602877)
 * This is very well possible, as all our products are actual posts in the database.
   We use the postmeta table intensively, maybe you will need to load some files
   on the frontend for loading functions. This is a very high end customisation 
   though.
 * I think your best bet is to have a look at how the plugin stores all the meta
   data and apply that to your frontend code. Remember that we use WordPress core
   for a lot as well, stuff that is probably not loaded on frontend, so you might
   have to duplicate (or try to load) the files or parts of the code base (with 
   all the risks that come with it).
 * Long story short: Yes it is possible, very complex and I don’t even know where
   to start.
 *  Thread Starter [mihart](https://wordpress.org/support/users/mihart/)
 * (@mihart)
 * [13 years, 2 months ago](https://wordpress.org/support/topic/adding-product-using-php/#post-3603132)
 * Hi Coen,
 * Thank you very much for letting me know that it is possible. I will start looking
   deeper in the plugin code.
 * Thank you so much.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Adding Product Using PHP’ is closed to new replies.

 * ![](https://ps.w.org/woocommerce/assets/icon.svg?rev=3234504)
 * [WooCommerce](https://wordpress.org/plugins/woocommerce/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/woocommerce/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/woocommerce/)
 * [Active Topics](https://wordpress.org/support/plugin/woocommerce/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/woocommerce/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/woocommerce/reviews/)

 * 3 replies
 * 3 participants
 * Last reply from: [mihart](https://wordpress.org/support/users/mihart/)
 * Last activity: [13 years, 2 months ago](https://wordpress.org/support/topic/adding-product-using-php/#post-3603132)
 * Status: resolved