(under construction)
Operator 'cart-process' is called before reviewing the cart/order.
You can process the form values added through the 'cart-datails' operation.
@param $op
'cart-process'
@param $arg1
current order
@return
TRUE | FALSE ????? Here you decide whether it is allowed to process the cart.
// Handles receiving the data entered by the customer.
The example processes the $_POST (sick!) variables. So be aware of checking the user input carefully!
<?php
if (variable_get('uc_cod_delivery_date', FALSE)) {
$arg1->payment_details['delivery_month'] = intval($_POST['cod_delivery_month']);
$arg1->payment_details['delivery_day'] = intval($_POST['cod_delivery_day']);
$arg1->payment_details['delivery_year'] = intval($_POST['cod_delivery_year']);
}
return TRUE;
?>

