In D8 drupal commerce there is a step after the customer selects checkout.

Left in the screen is de payment information which contains a form with:

First name, Last name
Street address
Postal Code

We only want :

First name, Last name

I created a hook_form_alter but retrospection of the form gives me no clue which field I can adjust.

Also I checked in the profile if there are any options and I could not find them?

Any suggestion


You need to edit the address field on the Customer profile type.

See admin/config/people/profiles/manage/customer/fields/profile.customer.address

| improve this answer | |
  • thxs, but this field is locked. I delete all customers already but fields keeps unlocked. Any suggestion? – Justme Aug 27 '18 at 9:42
  • As mentioned elsewhere, you need to run a recent Commerce version (2.7 or newer, in this case). – Bojan Zivanovic Aug 28 '18 at 11:23

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.