Submit Woocommerce Product by visitors

If you have a listing site, or a website where you want to host products from other people, one of your biggest concern must be the product submission process. Is it alright the way users are adding product from the admin area? Or, should you get a frontend solution for them?
There are lot’s of situations that giving access to visitors, submit products and visible only after approval by admin.
I will show you how you can do that with the help of UPG plugin .

Many of us knows that UPG is used for creating stunning photo & YouTube gallery but it has lot’s of tweaks that we can do more then mentioned. We can independently post to Woocommerce using forms of UPG. After submission, UPG doesn’t have any interaction with submitted products.

Note: If you want product to go for approval after submit, you must change settings in UPG.
Let’s create a page and insert UPG’s form shortcode which will generate form.
Dashboard Pages Add New
Give any page name as desired and copy paste the shortcode below.

[upg-form class="pure-form pure-form-stacked" title="Submit to WooCommerce" name="my_form" post_type="product" taxonomy="product_cat" tag_taxonomy="product_tag" ajax="true"] 

[upg-form-tag type="post_title" title="Product Title" value="" placeholder="main title" class="pure-input-1"]
    <div class="pure-g">
        <div class="pure-u-1 pure-u-md-1-2">
            [upg-form-tag type="category" title="Select category" taxonomy="product_cat" ]
        <div class="pure-u-1 pure-u-md-1-2">
            [upg-form-tag type="tag" title="Insert tag"]
    <div class="pure-g">
        <div class="pure-u-1 pure-u-md-1-2">
            [upg-form-tag type="other" new_type="number" name="_price" title="Price" value="" placeholder="0.00"]
        <div class="pure-u-1 pure-u-md-1-2">
            [upg-form-tag type="other" new_type="number" name="_sale_price" title="Sale Price" value="" placeholder="0.00"]
 [upg-form-tag type="article" title="Description"  placeholder="Long Description" editor="true"]
[upg-form-tag type="file" title="Select file"]
[upg-form-tag type="submit" name="submit" value="Submit Now"]


Woocommerce Submit Form
  • Title of the product.
  • Display woocommerce categories only.
  • Tags inputed are saved only for woocommerce tags.
  • Set regular & sales price with number validation.
  • GUI description area.
  • Select primary image of the product.

You can add more custom fields. Only to things to keep in mind is, the name of the input filed should be same as used on woocommerce.

Leave a Reply