In any case the options provided by the plugin developers aren’t enough. Sometimes you have no other choice then to make changes in the core file for the modifications. However, such is not the case for some of the plugin. One such plugin is YITH MULTI VENDOR PLUGIN. Its pretty easy to add custom settings to this plugins
In this tutorial I am going to teach how you can make changes to the admin section of the vendor section.

 

File Structure

Step 1:

Firstly go to the plugins folder in wp-content/plugins/yith-woocommerce-multi-vendor-premium/templates/admin . There you will find a file called you’ll find the file called edit-product-vendors-taxonomy.php.

Step 2:

Copy this file and paste it into wp-content/themes/YOUR_THEME_FOLDER/woocommerce/admin. Replace

 

Adding new fields

The plugin automatically saves all new fields, but you’ll just have to set the _name_ field of the input field in the following way:

name=”yith_vendor_data[CUSTOM_FIELD_NAME]”, where CUSTOM_FIELD_NAME is the name of the field you’re going to add. The plugin will save that and will be able to recover it through $vendor->CUSTOM_FIELD_NAME

Here’s a small snippet of code to help you out.

 

    
<tr class="form-field">


    
<th scope="row" valign="top">
    <label for="custom_added_field"><?php _e( 'Custom Added Field', 'yith-woocommerce-product-vendors' ); ?></label>
    </th>


<td>
    <input type="text" class="regular-text" name="yith_vendor_data[custom_field]" id="custom_added_field"
    value="<?php echo $vendor->custom_field ?>"/>
    </td>



    </tr>

 

 

Make other fields editable

If you want to make the vendors be able to edit these fields, follow the same steps for vendor-admin-settings.php. This file can be found in wp-content/plugins/yith-woocommerce-multi-vendor-premium/templates/admin/vendor-panel. Follow the steps above and copy it into your theme folder

 

For the registration section the file is become-a-vendor.php. You can find it in wp-content/plugins/yith-woocommerce-multi-vendor-premium/templates/shortcodes. Copy it into your theme under the folder shortcodes.

 

Your theme might also not have the folders woocommerce, admins, shortcodes and vendor-panel, but you could create them.

 

Do let me know in the comments below if you find have queries, or any confusions. Hope this tutorial helped you out a bit with your customization for YITH MULTI VENDOR PLUGIN