Download & Extend

Commerce decimal quantities

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

Version Downloads Date Links
7.x-1.x-dev tar.gz (8.63 KB) | zip (9.89 KB) 2011-Dec-19 Notes

Project Information


Maintainers for Commerce decimal quantities

  • czigor - 1 commit
    last: 26 weeks ago, first: 26 weeks ago

Issues for Commerce decimal quantities

To avoid duplicates, please search before submitting a new issue.
All issues
Bug reports
nobody click here