You are here

function uc_quote_save_choice in Ubercart 6.2

Same name and namespace in other branches
  1. 5 shipping/uc_quote/uc_quote.module \uc_quote_save_choice()

Validate handler added to uc_cart_checkout_form().

Saves the choice of shipping method in the customer's session.

1 string reference to 'uc_quote_save_choice'
uc_quote_form_alter in shipping/uc_quote/uc_quote.module
Implements hook_form_alter().

File

shipping/uc_quote/uc_quote.module, line 1119
The controller module for fulfillment modules that process physical goods.

Code

function uc_quote_save_choice($form, &$form_state) {
  $quote_option = explode('---', $_POST['quote-option']);
  $_SESSION['quote'] = array(
    'method' => $quote_option[0],
    'accessorials' => $quote_option[1],
    'rate' => $_POST['rate'][$_POST['quote-option']],
    'quote_form' => $_POST['quote-form'],
  );
}