Closed (fixed)
Project:
Commerce Core
Version:
8.x-2.x-dev
Component:
Promotions
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
22 Aug 2017 at 07:14 UTC
Updated:
7 Jun 2023 at 09:19 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
sumanthkumarc commentedFor anyone with similar requirements, here's the patch.
Comment #3
sumanthkumarc commentedOops, here's the new patch with correct module name.
Comment #4
sumanthkumarc commentedyet another patch, Last patch i promise :P, which added missing field, filter and argument handlers for fields.
Comment #5
sorabh.v6Comment #6
sorabh.v6Hey @sumanthkumarc,
I tried your patch and I can confirm that it added a new category(commerce promotion usage) to the view of promotion type. That category also has 4 fields as shown below -
Comment #7
sorabh.v6There was a whitespace at the end of the patch. Removed that white and uploading new one.
Comment #8
sorabh.v6Comment #9
svendecabooterReroll of the latest patch against latest Commerce codebase.
Comment #10
klabautermann_ commentedTested against commerce 8.x-2.33. Solved my usecase to show all used coupons.
Comment #11
jsacksick commentedI tested the patch and it works great. However I think the different labels / descriptions should be tweaked. For example, we should rename "Commerce promotion usage" to just "Promotion usage" so that it's after Promotion on the view creation page.
Also, to be consistent with the other relationships, I think we should rename the different labels to "Promotion", "Coupon" instead of "Promotion ID", "Coupon ID" etc...
Patch attached... Thoughts?
Comment #12
jsacksick commentedAttaching the interdiff.
Comment #13
klabautermann_ commentedJust reviewed it and I think the renaming of labels and descriptions is good for readability at least for "mail" and "Promotion usage". Thanks @jsacksick
Comment #16
jsacksick commentedCommitted! Thanks everyone!