You are here

protected function UCXF_Pane::order_edit_process in Extra Fields Checkout Pane 6.2

Process order data @access protected

Return value

array

1 call to UCXF_Pane::order_edit_process()
UCXF_AddressPane::order_edit_process in class/UCXF_AddressPane.class.php
Process order data @access protected
1 method overrides UCXF_Pane::order_edit_process()
UCXF_AddressPane::order_edit_process in class/UCXF_AddressPane.class.php
Process order data @access protected

File

class/UCXF_Pane.class.php, line 357
Contains the UCXF_Pane class.

Class

UCXF_Pane
Base class for checkout panes and order panes implemented by Extra Fields Pane.

Code

protected function order_edit_process() {
  $fields = $this
    ->loadFields();
  $pane_name = $this
    ->getPaneName();
  $changes = array();
  if (count($fields)) {
    foreach ($fields as $field) {
      $order_field_name = $this
        ->getFieldName($field);
      if (isset($this->order['ucxf_' . $pane_name][$order_field_name])) {
        $changes[$order_field_name] = $this->order['ucxf_' . $pane_name][$order_field_name];
      }
      elseif (isset($this->order[$order_field_name])) {
        $changes[$order_field_name] = $this->order[$order_field_name];
      }
    }
  }
  self::$processed_order_panes[] = 'ucxf_' . $pane_name;
  return $changes;
}