citrus/spree_variant_options — pull request #23 by sbounmy (2012-04-21 14:37:06+00:00)
Title: Allow select out of stock

Hello @citrus !

I don't know if this is a personal feature or not but I needed to be able to select out of stock variants to be able to allow customers to add them to their wishlist with spree_wishlist.

I've changed spree_variant_options to support :

```ruby
SpreeVariantOptions::VariantConfig.allow_select_outofstock = true
```

What it does ?
- allow select out of stock variants
- update form variant_id with html attribute data-form-type = "variant"
- enable the data-form-type = "variant" 's submit buttons

Some integration tests comes along with this PR.

A demo is worth than a thousand of words : http://hallyustyle.com/en/products/style-up-loose-fit-knit-back-lace

Let me know if you have any questions !

Stephane :beer: :beer: