| 1 |
<?php |
<?php |
| 2 |
// $Id: uc_node_checkout.module,v 1.8.2.3 2009/01/29 21:03:59 rszrama Exp $ |
// $Id: uc_node_checkout.module,v 1.8.2.4 2009/01/30 16:59:04 rszrama Exp $ |
| 3 |
|
|
| 4 |
/** |
/** |
| 5 |
* @file |
* @file |
| 319 |
if (!empty($_GET['attr'])) { |
if (!empty($_GET['attr'])) { |
| 320 |
foreach (explode('_', $_GET['attr']) as $attr) { |
foreach (explode('_', $_GET['attr']) as $attr) { |
| 321 |
list($aid, $oid) = explode('-', $attr); |
list($aid, $oid) = explode('-', $attr); |
| 322 |
|
if ($form['attributes'][$aid]['#type'] == 'checkboxes') { |
| 323 |
|
$oid = explode('|', $oid); |
| 324 |
|
} |
| 325 |
$form['attributes'][$aid]['#default_value'] = $oid; |
$form['attributes'][$aid]['#default_value'] = $oid; |
| 326 |
} |
} |
| 327 |
} |
} |
| 410 |
$attr = array(); |
$attr = array(); |
| 411 |
|
|
| 412 |
foreach ((array) $form_state['values']['attributes'] as $aid => $oid) { |
foreach ((array) $form_state['values']['attributes'] as $aid => $oid) { |
| 413 |
|
if ($form['attributes'][$aid]['#type'] == 'checkboxes') { |
| 414 |
|
$oid = implode('|', $oid); |
| 415 |
|
} |
| 416 |
$attr[] = $aid .'-'. $oid; |
$attr[] = $aid .'-'. $oid; |
| 417 |
} |
} |
| 418 |
|
|
| 883 |
|
|
| 884 |
return $products[$order_product_id]; |
return $products[$order_product_id]; |
| 885 |
} |
} |
|
|
|