Hi,
This isn't directly an Ubercart issue, but it affects the "admin/store/orders/99/edit" page for me.
Basically, I am using hook_form_alter() to add an Ajax autocomplete to the product selector (used for adding products to an order when the order is being created by an administrator). I am not using the uBrowser option for this - just the default (list of products with a search filter textfield underneath), although I want to get rid of the select box with the (in my case anyway) HUGE list of products...
However, whilst I get the little gray Ajax "ball" in the textfield, Drupal doesn't seem to do the rest i.e. set automplete=OFF, and attach the Ajax script. No errors are thrown so I'm guessing it might be that since the DIV is built by Javascript, the elements in it are missing whatever initialisation scripts get called.
function form_alter() {
if ($form_id == 'uc_order_product_select_form') {
$form['product_search']['#autocomplete_path'] = 'admin/store/products/autocomplete';
}
}Can anyone suggest how I can make the Ajax work for this pane/DIV ??
Regards,
- Paul


I'd love it if you posted this as a contrib when it's done!


Joined: 03/11/2008