Sometimes the easiest things can be a pane in the butt. I have a simple request. How do I read data from the checkout pane so I can display it on the view pane. Here is my simple code.
<?php
function uc_checkout_pane_autoship($op, &$arg1, $arg2) {
switch (
$op) {
case 'view':
$contents['autoship'] = array(
'#type' => 'checkbox',
'#title' => t('Create an Autoship from this Order for next month.'),
'#weight' => 1,
'#default_value' => $checked,
'#required' => false,
);
return array(
'contents' => $contents, 'next-button' => FALSE);
break;
case
'process':
if (
$arg2['autoship'] ) drupal_set_message('Autoship was created for order '. $arg1->order_id);
return
true;
break;
case 'review':
$review[] = array('title' => t('AutoShip'), 'data' => $arg2["autoship"]);
return $review;
break;
}
}
?>Here is the issue, I can read the value of checkbox in 'process' but I cannot read the value of the checkbox in 'review'. I've tried storing the global var, but looks like review is done before process. I need to let the user know before checkout if they ahve the checkbox selected, I'm sure I'm missing something simple.
thanks
JimF

