<commit_before>[![Build Status](https://travis-ci.org/clomax/spree_flexible_variants.svg?branch=2-3-stable)](https://travis-ci.org/clomax/spree_flexible_variants)

SpreeFlexibleVariants
=====================

Allows variants to be sold as different sized cuts from a whole product. E.g.
Fat/thin quarters, half metres, and metres from a bolt of fabric.

HowTo
-----

Each product has the option, `Flexible Variants`, to sell variants at different
sized cuts. The number of flexible units is the total number of the smallest
size you can sell.

Turn off Spree's inventory tracking for each variant in the product.

Installation
------------

Add spree_flexible_variants to your Gemfile:
<commit_msg>Added an example of use to the README.<commit_after>[![Build Status](https://travis-ci.org/clomax/spree_flexible_variants.svg?branch=2-3-stable)](https://travis-ci.org/clomax/spree_flexible_variants)

SpreeFlexibleVariants
=====================

Allows variants to be sold as different sized cuts from a whole product. E.g.
Fat/thin quarters, half metres, and metres from a bolt of fabric.

HowTo
-----

Each product has the option, `Flexible Variants`, to sell variants at different
sized cuts. The number of flexible units is the total number of the smallest
size you can sell.

##### Example:

From a 10m bolt of fabric:

| Size | Units |
|------|-------:|
|Thin quarter | 1 |
|Fat quarter | 1 |
|Half metre | 2 |
|Metre | 4 |

There are forty quarter metres in ten metres, therefore the total number of units is 40.

Turn off Spree's inventory tracking for each variant in the product.

Installation
------------

Add spree_flexible_variants to your Gemfile:

{'fraction_non_alphanumeric': 0.127633955448525, 'fraction_numerical': 0.007224563515954244, 'mean_word_length': 4.067073170731708, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 4, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '842564', 'n_tokens_mistral': 521, 'n_tokens_neox': 491, 'n_words': 195}