You are here

public function UCXF_AddressPane::execute in Extra Fields Checkout Pane 6.2

Executes an operation

Parameters

string $op:

Return value

mixed

Overrides UCXF_Pane::execute

File

class/UCXF_AddressPane.class.php, line 25
Contains the UCXF_AddressPane class.

Class

UCXF_AddressPane
Class that deals with checkout panes and order panes especially for the address fields.

Code

public function execute($op) {

  // Execute operation following the logics of UCXF_Pane first
  $result = parent::execute($op);

  // Check if operation was succesfull
  if (is_null($result)) {

    // No result, follow logics of original address panes
    return $this
      ->getOriginalPane($op);
  }
  return $result;
}