3 edited body
source | link

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

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?

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?

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?

2 removed tags from the title
source | link

Programmatically Alter Billing/Shipping Address form in Commerce 2

UsingI am using Drupal Commerce 2.11 inand 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
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 D8Drupal 8 and Drupal Commerce?

Programmatically Alter Billing/Shipping Address form in Commerce 2

Using Commerce 2.11 in 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 D8 and Commerce?

Programmatically Alter Billing/Shipping Address form

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?

1
source | link

Programmatically Alter Billing/Shipping Address form in Commerce 2

Using Commerce 2.11 in 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 D8 and Commerce?