Score:1

Is there a way to stop Commerce from hiding the customer address info when adding a user?

in flag

We are using Phone 7.x-1.0-beta1 only because it is required to perform API calls to our ERP. After upgrading to Commerce 7.x-1.16 the address info under add user is collapsed by default. Since the phone module puts the phone number in the same section of the form it also becomes hidden. When the drop down arrow to expose the address info is clicked it complains that the phone number is invalid and refuses to expose the fields. We are forced to roll back to Commerce 7.x-1.15 so admins and customers can create accounts.

Is there an option to have the address fields exposed by default or do I need to create an issue?

it flag
What you're describing doesn't sound like default behavior of Commerce Core. User forms do not generally have address sections on them. You may need to look elsewhere for your solution, but an issue in the Commerce Core issue queue would not be appropriate.
jsank95 avatar
in flag
@RyanSzrama Thanks for you reply. We did some testing and it turns out this is the way the new commerce works. They are collapsing the billing fields into a button "The customer profile add form is now hidden on edit pages by default, preventing the creation of empty profiles on order save." unfortunately this also affects the user add form. In our case we have a custom module that validates the phone field, when clicking the button to expand the billing address fields, the form submits and fails validation. We ended up making some changes to our code so we can update to 7.x-1.16.
Score:0
in flag

We were able to solve this issue. It was a combination of a change in Commerce 7.x-1.16 Issue 2274833 effecting our custom phone number validation script.

commerce_customer.module::~1012

+      '#value' => t('Add @type', array(
+        '@type' => strtolower($profile_type['name']),
+      )),

Since they Changed 'name' from customer information to account information our code was broken.

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.