I have a Drupal 7 webshop with commerce, and using the commerce_customer contrib module to handle adresses.

I have enabled the "Enable profile copying on this checkout pane" and copying field data from Billing info to Shipping info.

It's default checked, that is, that shipping form is hidden, and values is taken from billing info.

Normal case is that, when a user unchecks the "i want another shipping address" the values is prefilled into shipping fields.

Is there a way i can, prevent that from happen, if user has a certain role.

It's ok to patch commerce_customer module, with ex. a drupal_alter() implementation.

  • It's a form, so anything should be possible with an alter. Have you tried this already with hook_form_alter()? Get anywhere? – Ryan Szrama Mar 5 at 3:21

Your Answer

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

Browse other questions tagged or ask your own question.