Hi,

I love this module but I'm missing one thing: support for decimal quantity's.

I'm using the module "Commerce decimal quantities" (https://drupal.org/project/commerce_decimal_quantities) and I'm using Inline entity form as a Line item widget at my order edit screen.

My line item can really contain a decimal quantity, because I can enter it using the default line item manager widget.

When I edit a line item using Inline Entity form as widget, I cannot enter a decimal quantity in the quantity field (or another field) and get the error message "You must specify a positive number for the quantity"

I really like using Inline Entity form to edit my Line Items inside my order admin screen because I can edit all the different kinds of extra fields inside my line item. That is not possible with the default Line Item Manager...

Can anybody help?

Thanks!

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

maxplus’s picture

Anyone?

Watergate’s picture

I'm having the same problem. But I think a feature request should be opened for the 'Commerce decimal quantities' module, since that module is adding the "extra" functionality to the forms..

maxplus’s picture

Status: Active » Closed (fixed)

OK,

I opened a feature request in the Decimal Quantity issue cue: https://www.drupal.org/node/2301695

vincentdemers’s picture

Hi!

I added a snippet of code in https://www.drupal.org/node/2301695#comment-10049648 explaining how I achieved this.

guy_schneerson’s picture

Hi vincentdemers thanks for this. Will try and incorporate it, I love this module and anything we can do to make it better is important.