Merge pull request #17 from sergeygw1990/master
Вынесение метода оформления заказа callback в конфиг
This commit is contained in:
commit
4cc6a3f0a2
@ -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'];
|
||||||
}
|
}
|
||||||
|
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user