Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
It should be great to allow setting 0 the line item quantity in some cases. It has no sense for 'add to cart form', but it does for 'cart form', in order to remove that line item.
Comment | File | Size | Author |
---|---|---|---|
#1 | commerce_extra-allow_zero_quantity-2506747-1.patch | 6.21 KB | grisendo |
Comments
Comment #1
grisendo CreditAttribution: grisendo commentedI attach a patch. You can configure if you want this behavior or not (no by default) at admin/commerce/config/commerce_extra
Comment #2
Jerenus CreditAttribution: Jerenus commentedChecking patch modules/quantity/commerce_extra_quantity.install...
Checking patch modules/quantity/commerce_extra_quantity.js...
Checking patch modules/quantity/commerce_extra_quantity.module...
Hunk #4 succeeded at 76 (offset 1 line).
Hunk #5 succeeded at 132 (offset 2 lines).
Hunk #6 succeeded at 146 (offset 2 lines).
Applied patch modules/quantity/commerce_extra_quantity.install cleanly.
Applied patch modules/quantity/commerce_extra_quantity.js cleanly.
Applied patch modules/quantity/commerce_extra_quantity.module cleanly.
Comment #3
Jerenus CreditAttribution: Jerenus commentedCommitted manually. Thanks.
Comment #5
Jerenus CreditAttribution: Jerenus commented