вынесение метода оформления заказа callback в конфиг
This commit is contained in:
parent
22305a71ee
commit
888d634ecc
@ -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'];
|
||||
}
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user