Making a metafield editable in the admin interface
-
I am creating a product feed from our legacy, in-house product database into WooCommerce. Eventually we will make WooCommerce the master database when everything is working. The basics are already working with variations and local attributes. Next I need to add a bunch of custom fields. (Are ‘custom fields’ the same thing as meta_data fields? ) To test this, I successfully added a meta_data field ‘brand’ to a product and now when I cURL get this product, it’s amongst the metafields viz:
'meta_data' => [ { 'key' => '_alg_ean', 'value' => '8023517000273', 'id' => 26536 }, { 'id' => 27529, 'key' => 'brand', 'value' => 'Italfama' } ],When I go into WooCommerce Admin for this product, the field does not appear so we can’t change it. We had a similar thing with EAN but for that we used an add-on that added the ‘_alg_ean’ meta_data field that can also be seen. But that field is now editable in the Admin interface under the ‘Inventory’ section. Which is slightly odd as I read somewhere that a field started with _ would not be editable.
How do we make a meta_data field editable?
many thanks for any advice.
The topic ‘Making a metafield editable in the admin interface’ is closed to new replies.