{"id":1556,"date":"2021-06-15T12:30:43","date_gmt":"2021-06-15T12:30:43","guid":{"rendered":"https:\/\/ithemelandco.com\/docs\/woocommerce-bulk-product-editing\/?p=1556"},"modified":"2024-05-06T06:28:19","modified_gmt":"2024-05-06T06:28:19","slug":"how-to-add-custom-fields-meta-fields-to-woocommerce-bulk-product-editing-plugin","status":"publish","type":"post","link":"https:\/\/ithemelandco.com\/docs\/woocommerce-bulk-product-editing\/how-to-add-custom-fields-meta-fields-to-woocommerce-bulk-product-editing-plugin\/","title":{"rendered":"How to add Custom Fields \/ Meta Fields and bulk edit custom fields \/ meta fields in WooCommerce bulk product editing plugin?"},"content":{"rendered":"\n
WooCommerce custom fields \/ metal fields are the best way to add extra information about your Woocommerce products, as in most online stores, the default fields in the Woocommerce product page are not enough for describing the properties of the product.<\/p>\n\n\n\n
So, the store managers have to add some custom fields to add the details. For example, in a mobile store, you may need to give your customers some extra information about the Material body, thickness, Brand, etc.<\/p>\n\n\n\n
As you can see in the below picture, you can add some custom fields to add these information to the product page:<\/p>\n\n\n\n Obviously, you expect to be able to Bulk edit these information or filter your product according to them by using Woocommerce Bulk Product Editing Plugin<\/a>.<\/p>\n\n\n\n At the end of this tutorial, you will find out that bulk editing the custom fields \/ Meta fields has never been easier. So, stay with us.<\/p>\n\n\n\n To add custom fields or custom product meta in the Woocommerce bulk product editing plugin<\/a>, you have to go to the \u201cMeta Fields<\/strong>\u201d tabs.<\/p>\n\n\n\n As you can see in the below picture, In this tab, you have 2 options for adding your custom fields to the plugin:<\/p>\n\n\n\n To add manually, you have to type the name of Meta field exactly the same as the name you had assigned to that custom field in the Woocommerce product page.<\/p>\n\n\n\n For example, the first custom field in our product page was \u201cMaterial Body<\/strong>\u201d, so, if we want to add this Meta Field, we can easily type \u201cMaterial Body<\/strong>\u201d in the text box and click on \u201c+\u201d:<\/p>\n\n\n\n Then this meta field will be added to the next box which means this custom field has been added to the plugin and you can edit it as below:<\/p>\n\n\n\n If you want to see this field in the plugin with a different title, it is easily possible to assign any title to it.<\/p>\n\n\n\n For example, we typed \u201cMaterial<\/strong>\u201d as the title of this custom Field:<\/p>\n\n\n\n As these meta fields are the options that you have access to for Bulk Editing or Filtering, later, this is important to choose their types. In fact, you have to choose the best option which can display the values you have assigned to that meta field in the Woocommerce and let you edit them in the plugin accordingly.<\/p>\n\n\n\n In the \u201cSelect Type<\/strong>\u201d combo box, there are so many items to be assigned to your custom Field values including:<\/p>\n\n\n\n Some of these items can be displayed in different conditions, for example, you can choose \u201cText Input<\/strong>\u201d to be displayed either as a \u201cString<\/strong>\u201d field or \u201cNumber<\/strong>\u201d field:<\/p>\n\n\n\n It may be confusing at the beginning; however by making some examples in the next step, you will learn how to choose the best option for your custom field.<\/p>\n\n\n\n Before going to the next step and see how these options can help you to better manage and control your product values, let\u2019s get familiar with the other ways that you can add \u201cCustom Fields<\/strong>\u201d or \u201cMeta Fields<\/strong>\u201d to this plugin.<\/p>\n\n\n\n If you add more than one Custom field, you can easily \u201cChange their Order<\/strong>\u201d or \u201cDelete<\/strong>\u201d them by using the related Icon in each field.<\/p>\n\n\n\n For example, in the below picture we drag the \u201cThickness<\/strong>\u201d field and tried to drop it above the \u201cMaterial<\/strong>\u201d field:<\/p>\n\n\n\n In this part, you can enter a product ID and let the plugin display the meta field related to that product.<\/p>\n\n\n\n Then you can add those custom fields to the Plugin by clicking on \u201cSave Fields<\/strong>\u201d.<\/p>\n\n\n\n You are able to edit \u201cTitle<\/strong>\u201d, \u201cType<\/strong>\u201d or \u201cdelete<\/strong>\u201d and \u201cChanging the order<\/strong>\u201d of the custom fields in the opposite box as we described before:<\/p>\n\n\n\n If you have already installed the ACF Plugin to your website and assigned some custom fields to your products by using this plugin, it is also possible to add them to the Woocommerce Bulk Product Editing Plugin.<\/p>\n\n\n\n As shown below, you can ask plugin to show the custom fields of ACF Plugin by \u201cACF Title<\/strong>\u201d or \u201cACF Product Type<\/strong>\u201d:\u00a0<\/p>\n\n\n\n By clicking on \u201c+\u201d, the related custom fields will be displayed in the opposite box:<\/p>\n\n\n\n And you are able to edit titles, change the Order or delete them as you prefer. Then by clicking on \u201cSave Fields<\/strong>\u201d, you have access to those meta fields in the plugin as we will describe in the next step.<\/p>\n\n\n\n To clear the effectiveness of these options, we are going to add some other custom fields to our plugin and assigned these options to them:<\/p>\n\n\n\n To use custom fields in the plugin, you have access to them in the \u201cBulk Edit<\/strong>\u201d, \u201cFilter Form<\/strong>\u201d and \u201cColumn Manager<\/strong>\u201d pages after clicking on \u201cSave Fields<\/strong>\u201d.<\/p>\n\n\n\n By clicking on \u201cBulk Edit<\/strong>\u201d tab, you can see the \u201cCustom Fields<\/strong>\u201d tab as shown below:<\/p>\n\n\n\n As we expected, all the custom fields we added in the \u201cMeta Fields<\/strong>\u201d form, are displaying here. Now, let\u2019s check how those Options are helping us to bulk edit these custom fields:<\/p>\n\n\n\n As we assigned TextInput as a String option to the \u201cMaterial\u201d, we have now access to the condition box including:<\/p>\n\n\n\n To bulk edit the values related to this custom field for our products.<\/p>\n\n\n\n For the \u201cThickness\u201d, as we assigned \u201cTextInput\u201d as a \u201cNumber\u201d to it, we have access to the items in the condition box which are related to editing this meta field as a number including:<\/p>\n\n\n\n As you can see in the below picture, you can bulk edit some other custom field values the same as \u201cTextInput\u201d, including:<\/p>\n\n\n\n So, there is no need to explain them again. You can just choose the right option and enjoy editing the values related to them in an easy and effective way.<\/p>\n\n\n\n As we chose \u201cCheckBox<\/strong>\u201d as the custom field type for \u201cGuaranty\u201d, we can choose one of the values from the drop down list to bulk edit our products accordingly.<\/p>\n\n\n\n If you assign \u201cCalendar<\/strong>\u201d type to your custom field values as we selected for \u201cDelivery Date\u201d, you can edit them as a date:<\/p>\n\n\n\n In the column manager tab, you can choose the added custom fields to the plugin to see them as the columns of your product table.<\/p>\n\n\n\n For example, by adding \u201cMaterial\u201d and \u201cGuaranty\u201d as the custom fields:<\/p>\n\n\n\n<\/a><\/figure>\n\n\n\n
Step 1- Adding custom fields \/ meta fields<\/strong><\/h2>\n\n\n\n
<\/a><\/figure>\n\n\n\n
1- Add product meta key \/ custom field manually<\/strong><\/h3>\n\n\n\n
<\/a><\/figure>\n\n\n\n
<\/a><\/figure>\n\n\n\n
Enter Field Title<\/em><\/strong><\/h4>\n\n\n\n
<\/a><\/figure>\n\n\n\n
Select the Type<\/em><\/strong><\/h4>\n\n\n\n
\n
\n
<\/a><\/figure>\n\n\n\n
<\/a><\/figure>\n\n\n\n
Change order<\/em><\/strong><\/h4>\n\n\n\n
<\/a><\/figure>\n\n\n\n
2- Add custom fields \/ meta key automatically from product<\/strong><\/h3>\n\n\n\n
3- ACF Plugin Field<\/strong><\/h3>\n\n\n\n
<\/a><\/figure>\n\n\n\n
<\/a><\/figure>\n\n\n\n
Step 2 – Bulk edit custom fields in the plugin<\/strong><\/h2>\n\n\n\n
<\/a><\/figure>\n\n\n\n
1- Using custom fields in bulk edit page<\/strong><\/h3>\n\n\n\n
<\/a><\/figure>\n\n\n\n
TextInput – String<\/em><\/strong><\/h4>\n\n\n\n
\n
<\/a><\/figure>\n\n\n\n
TextInput \u2013 Number<\/em><\/strong><\/h4>\n\n\n\n
\n
<\/a><\/figure>\n\n\n\n
TextArray:<\/em><\/strong><\/h4>\n\n\n\n
<\/a><\/figure>\n\n\n\n
Email:<\/em><\/strong><\/h4>\n\n\n\n
<\/a><\/figure>\n\n\n\n
Password:<\/em><\/strong><\/h4>\n\n\n\n
<\/a><\/figure>\n\n\n\n
Website:<\/em><\/strong><\/h4>\n\n\n\n
<\/a><\/figure>\n\n\n\n
Checkbox<\/em><\/strong><\/h4>\n\n\n\n
<\/a><\/figure>\n\n\n\n
Calendar<\/em><\/strong><\/h4>\n\n\n\n
<\/a><\/figure>\n\n\n\n
2- Using custom fields on column manager and column profile<\/strong><\/h3>\n\n\n\n
<\/a><\/figure>\n\n\n\n