We have repeating manual code for manipulating a customer profile.
Let's move that to a form element to make it easy to reuse (billing profile pane, payment information pane, shipping).
Then let's create a matching field widget, for use on the order admin page.

This base can then be extended to support reusing profiles (Commerce Addressbook 3.x UX) in a followup.

Comments

bojanz created an issue. See original summary.

bojanz’s picture

Assigned: Unassigned » bojanz

I'll work on this.

Note that the reason why this is in Commerce and not Profile is because we need special handling for limiting address countries based on the store.
It's easier to duplicate the form element in Profile without that logic, than to implement special events to get around this.

Followup: #2844920: Allow customer profiles to be reused.

  • bojanz committed 04e2e17 on 8.x-2.x
    Issue #2844917 by bojanz: Create a commerce_profile_select form element...
bojanz’s picture

Status: Active » Fixed

Done. Partially resolves #2822211: The allowed billing addresses are not reflected on the checkout widget. Requires the -dev release of Address, I'll tag a new Address release in time for the new Commerce beta.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.