Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
hook_menu_alter() had been gone for a long time. We only used it to provide a tab for adding fields to an order. The replacements for this hook in D8 are listed at https://www.drupal.org/node/2118147#alter
case 'field_ui.overview_uc_order' in uc_order_help() will also need to be changed to point to the correct page once the above has been accomplished.
Comment | File | Size | Author |
---|---|---|---|
#2 | uc_order_menu_alter.patch | 1.47 KB | longwave |
|
Comments
Comment #2
longwaveI think we can just remove it entirely, for now at least. We don't have a 'field_ui_base_route' defined in OrderProduct, which is the equivalent method of adding the same routes that this hook used to alter.
Comment #3
TR CreditAttribution: TR commentedThat's where you would add a field to the Order entity - where can that be done now?
Comment #4
longwaveYou can add fields to orders at /admin/store/config/orders/fields. You cannot currently add fields to order *products*, which were only partially supported in D7 which is why this alter was needed to tweak the UI for them.
Comment #6
longwaveCommitted, we can make order products properly fieldable later if we need to.