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.
When viewing the checkout review page of an order that doesn't have any coupons applied only the title is shown and the pane's data is empty. Would it be better to give the user some feedback or hide the pane altogether if there isn't anything to show?
Comment | File | Size | Author |
---|---|---|---|
#4 | commerce_coupon_hide_checkout_pane.patch | 1.26 KB | freakalis |
#3 | commerce_coupon_hide_checkout_pane.patch | 1.04 KB | freakalis |
#2 | hide_coupon_review-1421280-3.patch | 1.13 KB | msmithcti |
Comments
Comment #1
pcambraI think this is a duplicate of #1307420: Hide coupon pane in checkout if no coupons are active
Comment #2
msmithcti CreditAttribution: msmithcti commentedI'm not sure #1307420: Hide coupon pane in checkout if no coupons are active is a direct duplicate. If I'm understanding that issue's description correctly, it's talking about hiding the pane if there aren't any coupons active on the whole site. This feature request is about hiding just the review pane if no coupons were applied to the order on a previous page. I've attached a patch that does what I'm describing.
Comment #3
freakalis CreditAttribution: freakalis commentedPatch in #2 does not work because function commerce_coupon_get_coupons_by_order does not exist anymore.
This patch work in beta6
Comment #4
freakalis CreditAttribution: freakalis commentedAttached wrong patch in #3, here is the correct one
Comment #5
pcambraThanks both, I've just committed this, had to rebase the patch to be applied from the module folder and not from the drupal root folder, also fixed an extra space.