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
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

longwave - October 27, 2009 - 17:01
Status:active» fixed

This option already exists in Ubercart at /admin/store/settings/checkout/edit/panes - uncheck the "Enabled" checkbox for the "Coupon discount" pane.

#2

aaronbauman - October 27, 2009 - 17:21
Status:fixed» active

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.

 
 

Drupal is a registered trademark of Dries Buytaert.