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.
I want to create integration with Commerce decimal quantities.
To do this we need to provide additional javascript settings:
- minimum value
- step
And add this settings to administration UI.
On next week I will provide patch for this issue!
Comment | File | Size | Author |
---|---|---|---|
#2 | commerce_extra_decimal-6511176-2.patch | 7.48 KB | 5n00py |
Comments
Comment #1
5n00py CreditAttribution: 5n00py commentedAs I see setting for step already implemented in dev.
But if I set step value to 0.5 i get following error:
Warning: Division by zero in commerce_extra_quantity_validate_cardinality() (line 97 in sites/all/modules/contrib/commerce_extra/modules/quantity/commerce_extra_quantity.module).
Comment #2
5n00py CreditAttribution: 5n00py commentedAs I say before I have patch that solving problems with commerce_decimal_quantities.
This patch do this things:
Comment #3
5n00py CreditAttribution: 5n00py commentedShould be reviewed after #1667642: Quantity decrease/increase functionality to be set in add to cart form formatter or .
Comment #4
DamienMcKennaFYI the purpose if the "assigned" field is to indicate that you're actively working on the issue, if you've uploaded a patch and don't intend to do further work then you should un-assign the issue. Also, if there's a patch then you should also leave the issue as "needs review".
Comment #5
5n00py CreditAttribution: 5n00py commentedThx for info. Actually this issue depends on #1667642: Quantity decrease/increase functionality to be set in add to cart form formatter or .
So I postpone it.