1. Home
  2. WP User Frontend Pro
  3. Tutorials
  4. Editing Forms

Editing Forms

Creating the Edit and Dashboard pages

Go to Dashboard > Pages > Add new page Create two new pages named Dashboard and Edit and simply paste the shortcodes in them. For Dashboard page use [wpuf_dashboard post_type="product"] and use [wpuf_edit] in the Edit page. wpuf create and edit dashboard

Now go to WPUF > Settings > General Settings and to enable editing of products, select the page where [wpuf_edit] is located from the drop down menu. wpuf create and edit dashboard

Creating the Form

Now we are going to create the form to upload products, currently with these fields only. But you can add more fields as you wish. wpuf woocommerce product formWPUF > Forms > Add form Now we need to add fields from the right panel. For creating a simple product we will need only 4 fields which are “post title” “post body” “featured image” and a “text” field to add price. Fields which have “This taxonomy is a WooCommerce attribute” must be checked to be positive to work.

Form Fields:

Post title – It will be your product Post – it will be your Products Description Featured Image – will be your product’s Main Image For the text field, please use _price as the meta key for it to work as the price for WooCommerce.

Custom Taxonomies:

Product_type – The type of product it is. If you want to allow user to post just a simple product I will recommend you not to use this field. Product_cat – You can allow users to choose all categories or specify only one or more. You can also add custom taxonomies for WooCommerce such as product_type, product_cat, product_tag, product_shipping_class if you want to add product type (simple, variation, downloadable etc), category, tag, shipping class if you want the user to set those fields out while uploading. When you are satisfied adding fields to the form hit save and copy the shortcode for the form.

Was this article helpful to you? Yes 2 No 1

How can we help?