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.
It would be nice to pull in address default preferences during the checkout, when people are entering new addresses that may be preferred.
Comment | File | Size | Author |
---|---|---|---|
#5 | add_set_as_default-2789691-5.patch | 1.43 KB | gcb |
#2 | add_set_as_default-2789691-2.patch | 1.46 KB | gcb |
Comments
Comment #2
gcbComment #3
gcbComment #4
jsacksick CreditAttribution: jsacksick commentedThis should be wrapped in a t(), something like t('Set this as my default @profile_type, array('@profile_type' => ....);
Profile type should be loaded first (if that's not already the case via commerce_customer_profile_type_load(), see commerce_customer.checkout_pane.inc for an example).
Furthermore, this should only appear if the user already has a default address, otherwise, this would be useless (the first address will be automatically set as the default).
Comment #5
gcbAlso it didn't work if your addressbook was empty before completing form. That and the translation issue are fixed. The other conditional seems not particularly important: how is the perception of control a problem in this case?
Comment #6
gcb