0

I am using Drupal Commerce 2.11 and Drupal 8.6.9. I need to make a simple edit to the address forms in the checkout - changing the #empty_option of the "locality" select boxes. However, this is proving far more difficult than I anticipated.

I've found a few posts with possible solutions using hook_input_alter or hook_widget_alter, but they seem to rely on there being an address element. In the version of Commerce and Drupal I'm using, the address appears to be hidden inside a "profile" element instead.

Does anyone know how to alter the checkout address forms in the latest version of Drupal 8 and Drupal Commerce?

This site is temporarily in read only mode and not accepting new answers.

Browse other questions tagged .