Drupal – Disable the Collapsible in Ubercart Checkout Panes

By default, the panes in the checkout form are collapsible. if you want to remove the collapsible features, you could customize the theme_uc_cart_checkout_form($form) function in your theme template.php.

function <theme>_uc_cart_checkout_form($form) {
  foreach ($form['panes'] as &$pane) {
    if (isset($pane['#collapsible'])) {
      $pane['#collapsible'] = 0;
    }
  }
  return drupal_render($form);
}

 

Done =)

Reference:

About these ads

4 thoughts on “Drupal – Disable the Collapsible in Ubercart Checkout Panes”

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s