function uc_discounts_uc_checkout_complete in Ubercart Discounts (Alternative) 6.2
Same name and namespace in other branches
- 7.2 uc_discounts/uc_discounts.module \uc_discounts_uc_checkout_complete()
Implementation of hook_uc_checkout_complete(). Upon successful completion of checkout, record usage Note: $order->uc_discounts_codes is set by the checkout pane
File
- uc_discounts/
uc_discounts.module, line 315
Code
function uc_discounts_uc_checkout_complete($order, $account) {
uc_discounts_uses_save_for_order($order);
// Don't allow user to re-use codes on another order without re-entering them
unset($_SESSION['uc_discounts_codes']);
}