diff --git a/classes/Parser.php b/classes/Parser.php index a74242f..2679173 100644 --- a/classes/Parser.php +++ b/classes/Parser.php @@ -42,7 +42,7 @@ class Parser { )); if (empty($xml->name) && empty((string) $xml->email)) { - $order['orderMethod'] = 'callback'; + $order['orderMethod'] = $this->config['order_method_callback']; } else { $order['orderMethod'] = $this->config['order_method']; } diff --git a/config/config-dist.php b/config/config-dist.php index bbd19ce..97dc347 100644 --- a/config/config-dist.php +++ b/config/config-dist.php @@ -18,6 +18,7 @@ $config = array( 'order_prefix' => '', // optional 'set_external_ids' => false, // set externalId field 'order_method' => 'shopping-cart', + 'order_method_callback' => 'callback', // set your order type /** * delivery mapping (tiu => CRM)