1
0
mirror of synced 2024-11-21 12:36:02 +03:00

Merge pull request #17 from sergeygw1990/master

Вынесение метода оформления заказа callback в конфиг
This commit is contained in:
Alex Lushpai 2019-08-29 14:02:07 +03:00 committed by GitHub
commit 4cc6a3f0a2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 1 deletions

View File

@ -42,7 +42,7 @@ class Parser {
)); ));
if (empty($xml->name) && empty((string) $xml->email)) { if (empty($xml->name) && empty((string) $xml->email)) {
$order['orderMethod'] = 'callback'; $order['orderMethod'] = $this->config['order_method_callback'];
} else { } else {
$order['orderMethod'] = $this->config['order_method']; $order['orderMethod'] = $this->config['order_method'];
} }

View File

@ -18,6 +18,7 @@ $config = array(
'order_prefix' => '', // optional 'order_prefix' => '', // optional
'set_external_ids' => false, // set externalId field 'set_external_ids' => false, // set externalId field
'order_method' => 'shopping-cart', 'order_method' => 'shopping-cart',
'order_method_callback' => 'callback', // set your order type
/** /**
* delivery mapping (tiu => CRM) * delivery mapping (tiu => CRM)