Auto Complete for product variations use Is there a way, when hiring for Attribute field setting


  (admin/commerce/config/product-variation-types/bags-cases/fields/field_color)


to add an additional choice added.

I need urgently an auto-complete feature in the frontend for the field type term reference.

For a very large amount of product variations, it is otherwise with a 5 meter long drop down menu very user unfriendly (+4000 zip codes for a single service).

With the Finder module, I could not solve the problem unfortunately.
You will need to write your own module and implement a hook_form_alter to override the normal Commerce way of displaying attribute selection.

A good example to look at is the Commerce Fancy Attributes module, which replaces the drop down with image selection. http://drupal.org/project/commerce_fancy_attributes

You can change the input type to autocomplete and point it to the correct callback url which returns your zipcode options in the format required for the product field.

$form['attribute_field_name']['#type'] = 'textfield';
$form['attribute_field_name']['#autocomplete_path'] = 'path/that/returns/list/of/zip/codes';