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.
We'll need an EFQ query, same as product does.
We'll need an EFQ query, same as product does.
Comments
Comment #1
pcambraComment #2
pcambraFixed!
Comment #4
foopang CreditAttribution: foopang commentedHi pcambra, I really need it to be able to delete a coupon from an order.
Tried commerce_coupon_remove_all_coupons_from_order() and commerce_coupon_remove_coupon_from_order() didn't work, please help!
Comment #5
pcambraPlease do not reopen closed issues after long time, also your problem don't have anything to do with this one.
Comment #6
foopang CreditAttribution: foopang commentedSorry about that. Basically what I want to do is to add a remove coupon button if there are existing coupons for the order in the checkout page.
I use a custom submit callback function to handle, but it is not working. Would you please advise how I can fix that? Many thanks for your help!