I'm not a huge fan of using the term "coupon." While the functionality is the same, in certain use cases, it's not an appropriate term to use. I'd also like to be able to override what the pane displays, or add additional instructions without having to hack the module. For example, if a user gets a discount code in the email they receive when they create their account, I'd like to be able to alter the text in the pane to let my users know where to find their discount code.

I'm using D5 for this particular project, but it's applicable to all versions. It shouldn't be too terribly difficult to pull the generation of the pane and form item out of the uc_coupon_checkout_pane function, and put it into a themable function.

Comments

longwave’s picture

Status: Active » Fixed

An old issue, but I finally got round to looking at it. You can now override theme_uc_checkout_pane_coupon to render the form, but if you want to alter the fieldset itself (title etc), I think you'll still need a hook_form_alter().

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

sittard’s picture

Would it be possible to theme the text used in the cart line item to a more appropriate term? In this instance I would like to change 'Coupon: @code' to read 'Voucher Code: @code'.