After upgrading from 7.x-1.2 to 7.x-1.3 I found that my Quantity field would not display on the add to cart form. After troubleshooting I found that reverting the Commerce License module back to 7.x-1.2 resolved the issue.

I am wondering if this was intended or a bug in the updated version of the module.

Comments

karamuse’s picture

This happened to me as well. It took me several days to realize it was this module that was causing the issue.

bojanz’s picture

Category: Bug report » Support request
Status: Active » Fixed

This is the correct behavior. You can never buy more than 1 license at the same time.

karamuse’s picture

Is there a way to change that? In our case we off a hard copy of a publication that the user can request multiple of. Then after the transaction we offer a downloadable PDF using commerce file which requires commerce license.

ppelgrims’s picture

Status: Fixed » Active

Why exactly? If I want 100 software licenses for my company, I'd have to go through this a 100 times?

brianlp’s picture

I agree that the quantity field makes sense. Is there a way to make this available again other than reverting to 1.2?

bojanz’s picture

There was never any logic for handling quantity. So even if you revert, you won't get the effect you want. You'll need to patch commerce_license for that.

djg_tram’s picture

I found no problem with disabling this functionality and allow the cart to change quantities. It depends on your products, of course, but it's very unwise of Commerce License to decide it instead of me.

You don't need to hack the module. Put this into your own module and disable the form alter of License:

function MYMODULE_module_implements_alter(&$implementations, $hook) {
  if ($hook == 'form_views_form_commerce_cart_form_default_alter') {
    unset($implementations['commerce_license']);
  }
}
avpaderno’s picture

Issue tags: -, -commerce license

I am editing the used issue tags. I apologize for bumping this issue.

tomtech’s picture

Status: Active » Closed (outdated)

Automatically closed because Drupal 7 security and bugfix support has ended as of 5 January 2025. If the issue verifiably applies to later versions, please reopen with details and update the version.