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.
There are some open issues unde this:
- #2857372: Create backreference field for promotion on coupons
- #2857374: Extend Promotion entity class with method for Coupons
- #2855838: Deleting a promotion does not delete its coupons
And, as Bojan suggested, it's best to have one PR for this.
It also helps with some possible conflicts for code and updates needed.
p.s. I will add them as child issues for this
Comments
Comment #2
vasikePR available with solution for the child issues
https://github.com/drupalcommerce/commerce/pull/660
Extra: it seems the CouponsFieldPostUpdateTest was broken
https://github.com/drupalcommerce/commerce/pull/660/commits/3bc2de5d17e2...
Extra commit there so maybe we could get a green for PR.
Comment #3
bojanz CreditAttribution: bojanz at Centarro commentedDunno if this is a better title, but let's try it.
Comment #5
bojanz CreditAttribution: bojanz at Centarro commentedThanks! After discussing with mglaman we agreed to remove the getCouponsCodes() and hasCouponCode() methods. Other small tweaks were applied.