I was recently working on a website where the process required to have the address select drop-down fields not appear on the ubercart checkout page so i wrote this small module.
I saw other people ask how to-do it, so here is your answer.
First, here is the info file:
1 2 3 4 5 |
name = Remove Ubercart Address Select field description = Hides the select address dropdown in the checkout pane package = "Ubercart - extra" core = 6.x dependencies[] = uc_cart |
And here is the drupal module file:
1 2 3 4 5 6 |
<?php //Hides the select address dropdown in the checkout pane function uc_address_select_remove_form_uc_cart_checkout_form_alter(&$form, &$form_state) { unset($form['panes']['delivery']['delivery_address_select']); unset($form['panes']['billing']['billing_address_select']); } |
Please let mew know if it helped you. 🙂