New fields for Vendor Registration form:

Admin can easily create custom fields for vendors in the vendor registration form. While creating a custom field using Advance Custom Field, the admin needs to select ‘Vendor Edits Allowed’ so that field is visible in the registration form.

Admin needs to select User Role equals to Vendor in the custom field to make this setting work. After vendor login, they can update the custom fields from the edit account page. Right now the supported field types of ACF are text, textarea, number, url, select, email, checkbox, radio.

Now, the field is created for a vendor. You will be worrying how you can display its value. You can use ACF functions:

the_field(‘field_name’, ‘user_1’); // where 1 indicates user ID

echo get_field(‘field_name’, ‘user_1’);

Vendor edit order form:

When the admin creates custom fields from the ACF plugin for the Order post type, the Vendor will be also able to add/update values for orders from their dashboard.

You can use ACF functions like the_field, get_field to display the custom field value of the vendor.

You can display its value using these functions:

the_field(‘text_field’, 123); // where 123 is the order id

echo get_field( “text_field”, 123 );

The plugin will work with ACF and Dokan free as well as PRO versions.


  • Allows admin to create a new custom field for vendor registration form as well order post type.
  • The vendor can update it from the edit account page
  • Supported field types are text, textarea, number, url, select, email, checkbox, radio
  • No license needed, purchase once and use unlimited times
Buy Now

Information

Created On:
May 29, 2021
Version:
1.1
Compatible With:
WordPress 5.1 or more, WooCommerce, Dokan, Dokan Pro, ACF, ACF Pro
Files Included:
PHP Files
Documentation:
Yes