From 888d634ecce1c691c3204ca39799f9cf0d6638a9 Mon Sep 17 00:00:00 2001 From: Sergey Date: Thu, 29 Aug 2019 13:25:13 +0300 Subject: [PATCH] =?UTF-8?q?=D0=B2=D1=8B=D0=BD=D0=B5=D1=81=D0=B5=D0=BD?= =?UTF-8?q?=D0=B8=D0=B5=20=D0=BC=D0=B5=D1=82=D0=BE=D0=B4=D0=B0=20=D0=BE?= =?UTF-8?q?=D1=84=D0=BE=D1=80=D0=BC=D0=BB=D0=B5=D0=BD=D0=B8=D1=8F=20=D0=B7?= =?UTF-8?q?=D0=B0=D0=BA=D0=B0=D0=B7=D0=B0=20callback=20=D0=B2=20=D0=BA?= =?UTF-8?q?=D0=BE=D0=BD=D1=84=D0=B8=D0=B3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- classes/Parser.php | 2 +- config/config-dist.php | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) 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)