{"id":1686257,"date":"2020-07-03T14:47:18","date_gmt":"2020-07-03T14:47:18","guid":{"rendered":"https:\/\/toolset.com\/?post_type=course-lesson&#038;p=1686257"},"modified":"2021-05-19T06:37:23","modified_gmt":"2021-05-19T06:37:23","slug":"creating-front-end-forms-for-adding-woocommerce-products","status":"publish","type":"course-lesson","link":"https:\/\/toolset.com\/de\/course-lesson\/creating-front-end-forms-for-adding-woocommerce-products\/","title":{"rendered":"Creating Front-end Forms for Adding WooCommerce Products"},"content":{"rendered":"<div class=\"wp-block-image\">\n<figure class=\" tb-image tb-image-media aligncenter\" data-toolset-blocks-image=\"38bd5f5e39de5b2763a759ed662e2b68\"><a href=\"https:\/\/toolset.com\/wp-content\/uploads\/2020\/09\/add-product-front-end-1.png\"><img decoding=\"async\" loading=\"lazy\" src=\"https:\/\/toolset.com\/wp-content\/uploads\/2020\/09\/add-product-front-end-1-500x645.png\" alt=\"An example of a Toolset form for adding a new WooCommerce Product\" class=\"wp-image-1770763\"\/><\/a><div class=\"tb-image-caption\"><figcaption>An example of a Toolset form for adding a new WooCommerce Product<\/figcaption><\/div><\/figure>\n<\/div>\n\n\n<h2 class=\"wp-block-heading\" id=\"what-kinds-of-products-you-can-add-with-forms\">What kinds of Products you can add with Forms<\/h2>\n\n\n\n<p>You can create Toolset forms for adding and editing&nbsp;<strong>Simple Products<\/strong>&nbsp;and&nbsp;<strong>External\/Affiliate<\/strong>&nbsp;products. You cannot create Toolset forms for Variable and Grouped products.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\" tb-image tb-image-media aligncenter\" data-toolset-blocks-image=\"481e46dc2552700c233a25c567bb4694\"><a href=\"https:\/\/toolset.com\/wp-content\/uploads\/2020\/10\/toolset-woocommerce-product-type-dropdown.png\"><img decoding=\"async\" loading=\"lazy\" src=\"https:\/\/toolset.com\/wp-content\/uploads\/2020\/10\/toolset-woocommerce-product-type-dropdown-500x148.png\" alt=\"\" class=\"wp-image-1817577\"\/><\/a><div class=\"tb-image-caption\"><figcaption>Toolset allows you to build a front-end form for adding Simple products<\/figcaption><\/div><\/figure>\n<\/div>\n\n\n<h2 class=\"wp-block-heading\">What can Product forms contain<\/h2>\n\n\n\n<p>When you add a new product from the WordPress backend, you fill in different product fields and information. You can use almost all those fields in Toolset forms. <\/p>\n\n\n\n<p>This includes standard WooCommerce product fields, &nbsp;<a href=\"https:\/\/toolset.com\/de\/course-lesson\/adding-custom-fields-to-woocomerce-products\/\">custom fields you add to products<\/a>, <a href=\"https:\/\/toolset.com\/de\/course-lesson\/adding-a-custom-taxonomy-to-woocommerce-products\/\">custom taxonomy you add to products<\/a>, and post relationship fields.<\/p>\n\n\n\n<p>Some of these fields are available in Toolset forms&nbsp;<strong>out-of-the-box<\/strong>. This includes Product Name, Product Description, Product Short Description, Product Categories, Product Tags, and Product Image.<\/p>\n\n\n\n<p>Other product fields like Sale Price and Stock Status don&#8217;t appear in the Forms interface automatically. Instead, you must <a href=\"https:\/\/toolset.com\/de\/course-lesson\/enabling-additional-woocommerce-fields-in-product-forms\/\">register additional product fields for product forms<\/a>.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Creating a form for submitting new products<\/h2>\n\n\n\n<p>When you create a new Toolset form for submitting new products, it will be auto-populated with available product fields. You can then rearrange these fields, change their labels, insert additional ones, and remove the ones you don&#8217;t need.<\/p>\n\n\n\n<p>Use the following steps to create a form for submitting new WooCommerce Products:<\/p>\n\n\n\n<ol class=\"wp-block-list\"><li>Make sure you have the <strong>Toolset WooCommerce Blocks<\/strong> and <strong>Toolset Forms<\/strong> plugins active.<\/li><li>Go to <strong>Toolset \u2192<\/strong>&nbsp;<strong>Post Forms <\/strong>and click <strong>Add New<\/strong>. A wizard will guide you through the steps.<\/li><li>Give your form a name.<\/li><li>In the next step, you need to select the main form options. For the post type select <strong>Products<\/strong>. <\/li><li>Set up the status of the post created by the form, and other fields according to what you need.<\/li><\/ol>\n\n\n<div class=\"wp-block-image\">\n<figure class=\" tb-image tb-image-media aligncenter\" data-toolset-blocks-image=\"5bf48c126efa59eaee88166c244f9971\"><a href=\"https:\/\/toolset.com\/wp-content\/uploads\/2020\/09\/creating-form-for-adding-new-products-1.png\"><img decoding=\"async\" loading=\"lazy\" src=\"https:\/\/toolset.com\/wp-content\/uploads\/2020\/09\/creating-form-for-adding-new-products-1-500x343.png\" alt=\"Using the wizard to create front-end forms for submitting products\" class=\"wp-image-1770751\"\/><\/a><div class=\"tb-image-caption\"><figcaption>Using the wizard to create front-end forms for submitting products<\/figcaption><\/div><\/figure>\n<\/div>\n\n\n<p>In the next step, you design your form\u2019s contents.<\/p>\n\n\n\n<p>Toolset forms look good and are responsive out-of-the-box. However, you might want to <a href=\"https:\/\/toolset.com\/de\/course-lesson\/styling-front-end-forms\/\">adjust their style to fit your store&#8217;s design even more<\/a>.<\/p>\n\n\n\n<p>When you are done, click <strong>Continue<\/strong> to proceed to the final step and then save the form.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Displaying product forms<\/h2>\n\n\n\n<p>Once your form is ready, you need to display it to users.<\/p>\n\n\n\n<p>To display a form for creating products it&#8217;s best to create a standard page. There, insert the <strong>Toolset Form<\/strong> block and select your form.<\/p>\n\n\n\n<p>For more information check out the lesson about <a href=\"https:\/\/toolset.com\/de\/course-lesson\/front-end-forms-for-adding-content\/\">forms for adding content<\/a>.<\/p>\n\n\n\n<div class=\"wp-block-toolset-blocks-grid tb-grid\" data-toolset-blocks-grid=\"14ff485dcc18ab545cd63a5d6b5d8749\">\n<div class=\"wp-block-toolset-blocks-grid-column tb-grid-column tb-grid-align-top\" data-toolset-blocks-grid-column=\"3034fbe886c11054e95b46b09d3e4112\">\n<p><strong>Adding a product form to a page<\/strong><\/p>\n<\/div>\n\n\n\n<div class=\"wp-block-toolset-blocks-grid-column tb-grid-column tb-grid-align-top\" data-toolset-blocks-grid-column=\"3034fbe886c11054e95b46b09d3e4112\">\n<p><strong>Product form displayed on a standard page<\/strong><\/p>\n<\/div>\n\n\n\n<div class=\"wp-block-toolset-blocks-grid-column tb-grid-column\" data-toolset-blocks-grid-column=\"a6e73c9bcfb6574667bd3043cd1e8d9d\">\n<figure class=\"wp-block-image tb-image tb-image-media\" data-toolset-blocks-image=\"1785674aad1713b83c1d42550170f057\"><a href=\"https:\/\/toolset.com\/wp-content\/uploads\/2020\/10\/toolset-woocommerce-product-form-block.png\"><img decoding=\"async\" loading=\"lazy\" src=\"https:\/\/toolset.com\/wp-content\/uploads\/2020\/10\/toolset-woocommerce-product-form-block-500x269.png\" alt=\"\" class=\"wp-image-1817795\"\/><\/a><\/figure>\n<\/div>\n\n\n\n<div class=\"wp-block-toolset-blocks-grid-column tb-grid-column\" data-toolset-blocks-grid-column=\"a6e73c9bcfb6574667bd3043cd1e8d9d\">\n<figure class=\"wp-block-image tb-image tb-image-media\" data-toolset-blocks-image=\"80a5a4f2c7919e6b6898a4b9d2ff16c6\"><a href=\"https:\/\/toolset.com\/wp-content\/uploads\/2020\/10\/toolset-woocommerce-page-with-a-product-form-for-adding-items.png\"><img decoding=\"async\" width=\"1195\" height=\"1039\" loading=\"lazy\" src=\"https:\/\/toolset.com\/wp-content\/uploads\/2020\/10\/toolset-woocommerce-page-with-a-product-form-for-adding-items.png\" alt=\"\" class=\"wp-image-1819211\" srcset=\"https:\/\/toolset.com\/wp-content\/uploads\/2020\/10\/toolset-woocommerce-page-with-a-product-form-for-adding-items.png 1195w, https:\/\/toolset.com\/wp-content\/uploads\/2020\/10\/toolset-woocommerce-page-with-a-product-form-for-adding-items-300x261.png 300w, https:\/\/toolset.com\/wp-content\/uploads\/2020\/10\/toolset-woocommerce-page-with-a-product-form-for-adding-items-1024x890.png 1024w, https:\/\/toolset.com\/wp-content\/uploads\/2020\/10\/toolset-woocommerce-page-with-a-product-form-for-adding-items-150x130.png 150w, https:\/\/toolset.com\/wp-content\/uploads\/2020\/10\/toolset-woocommerce-page-with-a-product-form-for-adding-items-768x668.png 768w, https:\/\/toolset.com\/wp-content\/uploads\/2020\/10\/toolset-woocommerce-page-with-a-product-form-for-adding-items-598x520.png 598w\" sizes=\"auto, (max-width: 1195px) 100vw, 1195px\" \/><\/a><\/figure>\n<\/div>\n<\/div>\n\n\n\n<p>To display a form for editing products, you should add a link to them on your single-product template. <\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\" tb-image tb-image-media aligncenter\" data-toolset-blocks-image=\"822606a1080613e6a6d4f6ad3bf29a64\"><a href=\"https:\/\/toolset.com\/wp-content\/uploads\/2020\/10\/toolset-woocommerce-product-editing-form-link.png\"><img decoding=\"async\" loading=\"lazy\" src=\"https:\/\/toolset.com\/wp-content\/uploads\/2020\/10\/toolset-woocommerce-product-editing-form-link-500x321.png\" alt=\"\" class=\"wp-image-1819227\"\/><\/a><div class=\"tb-image-caption\"><figcaption>Link to edit a product on a single-product page<\/figcaption><\/div><\/figure>\n<\/div>\n\n\n<p>Editing forms are very similar to the ones for creating new items but have a slightly different workflow. To learn how to use them, check out the video and written material in the lesson about <a href=\"https:\/\/toolset.com\/de\/course-lesson\/front-end-forms-for-editing-content\/\">forms for editing content<\/a>.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Controlling access to product forms<\/h2>\n\n\n\n<p>It&#8217;s very important to define who has permissions to use a form that can add content to your site. To set access permissions for Toolset forms you need to install and use the Toolset Access plugin.<\/p>\n\n\n\n<p>Use these steps to set permissions for your product forms:<\/p>\n\n\n\n<ol class=\"wp-block-list\"><li>Go to the&nbsp;<strong>Toolset \u2192 Access Control&nbsp;<\/strong>page and click the&nbsp;<strong>Toolset Forms&nbsp;<\/strong>tab.<\/li><li>Click to expand the&nbsp;<strong>Post Forms Front-end Access<\/strong>&nbsp;section.<\/li><\/ol>\n\n\n\n<p>A table appears, with a lists of all user roles and their access to available front-end forms and permissions.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\" tb-image tb-image-media aligncenter\" data-toolset-blocks-image=\"1bf417ba7504f7ca0663f5f3cc97012b\"><a href=\"https:\/\/toolset.com\/wp-content\/uploads\/2020\/10\/toolset-woocommerce-access-settings-for-product-form.png\"><img decoding=\"async\" loading=\"lazy\" src=\"https:\/\/toolset.com\/wp-content\/uploads\/2020\/10\/toolset-woocommerce-access-settings-for-product-form-500x273.png\" alt=\"\" class=\"wp-image-1817777\"\/><\/a><div class=\"tb-image-caption\"><figcaption>Access permissions for submitting new \u201cGyms\u201d posts using Toolset forms<\/figcaption><\/div><\/figure>\n<\/div>","protected":false},"author":4341,"featured_media":1712661,"template":"","related-lesson":[8445],"class_list":["post-1686257","course-lesson","type-course-lesson","status-publish","has-post-thumbnail","hentry","related-lesson-e-commerce"],"_links":{"self":[{"href":"https:\/\/toolset.com\/de\/wp-json\/wp\/v2\/course-lesson\/1686257","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/toolset.com\/de\/wp-json\/wp\/v2\/course-lesson"}],"about":[{"href":"https:\/\/toolset.com\/de\/wp-json\/wp\/v2\/types\/course-lesson"}],"author":[{"embeddable":true,"href":"https:\/\/toolset.com\/de\/wp-json\/wp\/v2\/users\/4341"}],"version-history":[{"count":7,"href":"https:\/\/toolset.com\/de\/wp-json\/wp\/v2\/course-lesson\/1686257\/revisions"}],"predecessor-version":[{"id":2060917,"href":"https:\/\/toolset.com\/de\/wp-json\/wp\/v2\/course-lesson\/1686257\/revisions\/2060917"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/toolset.com\/de\/wp-json\/wp\/v2\/media\/1712661"}],"wp:attachment":[{"href":"https:\/\/toolset.com\/de\/wp-json\/wp\/v2\/media?parent=1686257"}],"wp:term":[{"taxonomy":"related-lesson","embeddable":true,"href":"https:\/\/toolset.com\/de\/wp-json\/wp\/v2\/related-lesson?post=1686257"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}