How to add additional information to shipping methods? I have a list of shipping methods added via the UI admin/commerce/config/shipping-methods.

I need to have an accompanying description added to each shipping method.
First I thought that I could add an additional field under the settings for shipping types, but this didn't work (Added the field, but it never shows up when adding or editing a shipping method).

I'm fine if this is only doable programmatically, but I have found absolute zero information on how to do this on drupal 8.
I would actually prefer if I can do it programmatically, as I will be adding my own shipping method plugin in the future.

Question
How do I add an additional field to each shipping method?
I know this is an old thread, but I encountered the same problem. So in case you have the same issue:

This isn't really a commerce question, rather a general one.

There is a hook, where you can simple add new fields to an existing entity: HOOK_entity_base_field_info

So in this case:

/**
 * Implements hook_entity_base_field_info().
 */
function yourmodule_entity_base_field_info(EntityTypeInterface $entity_type) {
  if ($entity_type-&gt;id() === 'commerce_shipping_method') {
    $fields['shipment_description'] = BaseFieldDefinition::create('string_long')
      -&gt;setLabel(t('Description'))
      -&gt;setDescription(t('The shipping method description.'))
      -&gt;setRequired(FALSE)
      -&gt;setTranslatable(TRUE)
      -&gt;setSettings([
        'default_value' =&gt; '',
        'max_length' =&gt; 255,
      ])
      -&gt;setDisplayOptions('form', [
        'type' =&gt; 'string_textarea',
        'weight' =&gt; 0,
      ])
      -&gt;setDisplayConfigurable('view', TRUE)
      -&gt;setDisplayConfigurable('form', TRUE);
    }
}


This will add a simple textarea field type, but you can add any field type you like.

This will only add the field visually, you must also do an update to your database table. In a .install file, do something like this:

/**
 * Implements hook_install().
 */
function hartmann_add_field_install() {
  $entity_manager = \Drupal::entityManager();

  $desc_definition = $entity_manager-&gt;getFieldStorageDefinitions('commerce_shipping_method')['shipment_description'];
  $entity_manager-&gt;onFieldStorageDefinitionCreate($desc_definition);
}

/**
 * Implements hook_uninstall().
 */
function hartmann_add_field_uninstall() {
  $entity_manager = \Drupal::entityManager();

  $desc_definition = $entity_manager-&gt;getLastInstalledFieldStorageDefinitions('commerce_shipping_method')['shipment_description'];
  $entity_manager-&gt;onFieldStorageDefinitionDelete($desc_definition);
}


Then reinstall your module.
In more recent versions of Drupal 8, entitymanager is deprecated. I don't now the updated code for .install, but some research and you will find it.