Hide coupon pane on checkout form if no valid coupon codes exist
aaronbauman - October 27, 2009 - 15:55
| Project: | Ubercart Discount Coupons |
| Version: | 6.x-1.x-dev |
| Component: | Code |
| Category: | feature request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | active |
Jump to:
Description
On a fresh install of uc_coupon, my site starts with no coupons defined.
There's no point in teasing the user to enter a coupon code if no entry could ever effect the order price.
Please hide -- or enable an admin toggle to optionally hide -- the coupon checkout form pane if no valid (unexpired, unused, undefined, etc) coupon codes exist.

#1
This option already exists in Ubercart at /admin/store/settings/checkout/edit/panes - uncheck the "Enabled" checkbox for the "Coupon discount" pane.
#2
You misunderstood the request.
The request is to hide the pane when there are no valid coupon codes, even when the "Coupon discount" pane is enabled.