You are here

function uc_coupon_uc_cart_checkout_submit in Ubercart Discount Coupons 6

Submit handler for "Apply to Order" button in uc_cart_checkout. This handler is only invoked when JS is disabled.

uc_coupon_checkout_apply() uc_coupon_submit()

1 string reference to 'uc_coupon_uc_cart_checkout_submit'
uc_checkout_pane_coupon in ./uc_coupon.module
Checkout Pane callback function.

File

./uc_coupon.module, line 1083
Provides discount coupons for Ubercart.

Code

function uc_coupon_uc_cart_checkout_submit(&$form, &$form_state) {
  uc_coupon_submit('checkout', $form_state['values']['panes']['coupon']['code']);
}