Alter Checkout Pane validation

Created on 14 March 2016, about 9 years ago
Updated 28 February 2025, 3 months ago

Current module's codebase allows us to modify checkout pane structure.
But it is hard to do that because there is code in commerce_registration_information_checkout_form_validate() that makes almost impossible using custom form structure.

 $mail_is_required = $form['registration_information'][$prodkey][$prodkey . '-reg-' . $i]['anon_mail']['#required'];
  field_attach_form_validate(
            'registration',
            $entity,
            $form['registration_information'][$prodkey][$prodkey . '-reg-' . $i],
            $form_state
          );

Please review my way to resolve this problem
I've added a new config to checkout pane settings, and added drupal_alter() in the end of commerce_registration_information_checkout_form_validate()

✨ Feature request
Status

Closed: outdated

Version

2.0

Component

Code

Created by

πŸ‡ΊπŸ‡¦Ukraine id.tarzanych

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024