This guide is essential for Dokan users who are creating various types of marketplaces with unique requirements. A common question they might have is how to add a new field to the Dokan product form. Here’s how you can do it.
To meet specific marketplace needs, plugin customization is sometimes necessary. One frequent customization involves adding a new field to the product upload form in Dokan.
Advanced Custom Fields (ACF) is a powerful tool that allows you to create and manage custom fields within the WooCommerce backend effortlessly. However, when it comes to Dokan, these custom fields aren’t automatically integrated into the product form that vendors use. This means that even though the fields exist in the WooCommerce backend, they won’t be visible or editable by vendors in their product forms by default.
Normally, integrating these fields into Dokan would require writing custom code to ensure they appear correctly in the vendor dashboard. This process can be complex and time-consuming, especially if you’re not comfortable with coding. Fortunately, there is a more efficient solution available that eliminates the need for manual coding, allowing you to achieve the same results quickly and easily.
How to Add Custom Fields to Dokan Product Forms Without Coding
Follow these steps:
- Install the ACF for Dokan PRO plugin.
- Once activated, you’ll see a new option called Vendor Edits Allowed? when creating a custom field.
When you enable the Vendor Edits Allowed? option, the custom field you created, will be displayed directly in the vendor dashboard’s add and edit product forms. This allows vendors to input or modify data for that field when managing their products.
The plugin supports a wide variety of field types, ensuring flexibility for different needs. Compatible field types include text, number, email, phone, text area, WYSIWYG editor, image, file upload, repeater fields, dropdown select boxes, and more. This versatility lets you tailor the product form to gather the specific information required for your marketplace.
This method allows you to customize the product form without needing to write any code.