diff --git a/modules/customer/includes/commerce_customer.checkout_pane.inc b/modules/customer/includes/commerce_customer.checkout_pane.inc index b148b3d..2f8f917 100644 --- a/modules/customer/includes/commerce_customer.checkout_pane.inc +++ b/modules/customer/includes/commerce_customer.checkout_pane.inc @@ -228,6 +228,15 @@ function commerce_customer_profile_pane_checkout_form_validate($form, &$form_sta // Notify field widgets to validate their data. field_attach_form_validate('commerce_customer_profile', $profile, $form[$checkout_pane['pane_id']], $form_state); + // If there were any errors, let the chckout proces know about them by + // returning FALSE. + $errors = form_get_errors(); + foreach ($errors as $field => $error) { + if (substr($field, 0, 26) == 'customer_profile_billing][') { + return FALSE; + } + } + return TRUE; }