The Commerce Stock 2.0 branch already incorporates the feature of this module and makes this module obsolate. See http://drupal.org/node/1142968#comment-5674706
This module enables you to give decimal quantities when buying a product.
The Drupal Commerce module allows only integer number quantities to be bought. This can be a great pain if you are selling liquids, curtains, wires or time related services.
This module adds a checkbox to the Product type edit form to enable decimal quantities for that product type.
At present it hacks the 'Add to cart' form and the 'Shopping cart' view to allow decimal quantities for the products that have the above checkbox enabled.
As to Commerce Stock 7.x-1.x: Since the field commerce_stock is an integer type if you buy 12.6 of something, the stock will be decreased by only 12.
Usage:
1. Enable the module.
2. Go to the edit form of the product type you wish to enable decimal quantities for.
3. Check the checkbox 'Allow decimal quantities'.
4. Report the bugs you encounter in the issue queue.
Downloads
Project Information
- Maintenance status: Unsupported
- Development status: Obsolete
- Module categories: Commerce/Advertising
- Reported installs: 12 sites currently report using this module. View usage statistics.
- Downloads: 98
- Last modified: May 1, 2012