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 think it would be extremely useful to see the number of available uses for each coupon, as well as how many times it has been used, on the default coupon list.
Comment | File | Size | Author |
---|---|---|---|
#5 | commerce_coupon-display_uses-1691672-5.patch | 6.63 KB | twardnw |
#2 | commerce_coupon-display_uses-1691672-2.patch | 6.72 KB | twardnw |
#1 | commerce_coupon-display_uses-1691672-1.patch | 4.66 KB | twardnw |
Comments
Comment #1
twardnw CreditAttribution: twardnw commentedHere is a patch that adds 'Number of uses' to the default coupon list.
Comment #2
twardnw CreditAttribution: twardnw commentedBoth numbers available if you apply the patch in #1685444: Times used coupon views handler and then the patch in this comment.
Comment #3
twardnw CreditAttribution: twardnw commentedstatus update
Comment #4
pcambraTyler, please review the change in #168544: Nothing Happens when I submit as you can now add the times a coupon has been used.
I've got no problem in displaying the number of uses in the default coupon UI, so setting it back to 'needs work'.
Comment #5
twardnw CreditAttribution: twardnw commentedRelying on the latest 7.x-1.x-dev, here is a patch which shows 'number of uses' and 'times used' in the default view of coupons.
Comment #6
pcambraI committed your change to include the number of uses and time used, but I'd rather keep the default order to updated date. Anyways this is just a view, so you can alter it the way you wanted to sort by default by times used, i.e.
Thanks!