jigoshop/jigoshop — pull request #685 by Xethron (2012-09-19 05:33:09+00:00)
Title: DevAdded 'select' type for checkout_form_field to allow plugins to add custom select fields to Billing and Shipping address.

Using 'jigoshop_billing_fields' filter, jigoshop sends an array with the fields that get printed. Now, you can add a select field like such:

```php
$fields[] = Array (
'name'	=> 'billing-town',
'type'	=> 'select', //NEW 'type'
'label'	=> 'Town',
'required'	=> 1,
'class'	=> Array ('form-row-first'),
'rel'	=> 'my-rel',
'options'	=> Array ('PTA' => 'Pretoria', 'JHB' => 'Johannesburg', 'CPT' => 'Cape Town', ............), //NEW Field
'selected'	=> 'JHB' //NEW Field
);
```

and it should output:

```html

Town
*

Pretoria

Johannesburg

Cape Town

```