1
0
mirror of synced 2024-11-21 20:46:04 +03:00

вынесение метода оформления заказа callback в конфиг

This commit is contained in:
Sergey 2019-08-29 13:25:13 +03:00
parent 22305a71ee
commit 888d634ecc
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)) {
$order['orderMethod'] = 'callback';
$order['orderMethod'] = $this->config['order_method_callback'];
} else {
$order['orderMethod'] = $this->config['order_method'];
}

View File

@ -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)