You are here

function uc_cart_checkout_review_form in Ubercart 6.2

Same name and namespace in other branches
  1. 5 uc_cart/uc_cart.module \uc_cart_checkout_review_form()
  2. 7.3 uc_cart/uc_cart.pages.inc \uc_cart_checkout_review_form()

Gives customers the option to finish checkout or go revise their information.

See also

uc_cart_checkout_review_form_back()

uc_cart_checkout_review_form_submit()

5 string references to 'uc_cart_checkout_review_form'
uc_2checkout_form_alter in payment/uc_2checkout/uc_2checkout.module
Implements hook_form_alter().
uc_cart_checkout_review in uc_cart/uc_cart.pages.inc
Allows a customer to review their order before finally submitting it.
uc_credit_form_alter in payment/uc_credit/uc_credit.module
Implements hook_form_alter().
uc_cybersource_form_alter in payment/uc_cybersource/uc_cybersource.module
Implements hook_form_alter().
uc_paypal_form_alter in payment/uc_paypal/uc_paypal.module
Implements hook_form_alter().

File

uc_cart/uc_cart.pages.inc, line 469
Cart menu items.

Code

function uc_cart_checkout_review_form() {

  // Set the session variable to pass the redirect check on the pageload.
  if (isset($_POST['op']) && $_POST['op'] == t('Back')) {
    $_SESSION['do_review'] = TRUE;
  }
  $form['back'] = array(
    '#type' => 'submit',
    '#value' => t('Back'),
    '#submit' => array(
      'uc_cart_checkout_review_form_back',
    ),
  );
  $form['submit'] = array(
    '#type' => 'submit',
    '#value' => t('Submit order'),
  );
  return $form;
}