1
0
mirror of synced 2024-11-25 06:26:04 +03:00
tiu-client/config/config-dist.php

59 lines
1.7 KiB
PHP
Raw Normal View History

2015-09-07 18:09:12 +03:00
<?php
$сonfig = array(
2016-02-27 18:07:46 +03:00
/**
* xml link (like https://my.tiu.ru/cabinet/export_orders/xml/1234567?hash_tag=472g8fzb1af38d35f2c521dc8a1e1208)
* can be taken here: https://my.tiu.ru/cabinet/order/export_orders
*/
2015-09-07 18:09:12 +03:00
'tiu_xml_url' => '',
2016-02-27 18:07:46 +03:00
'retailcrm_url' => 'https://demo.retailcrm.ru',
'retailcrm_apikey' => 'apiKeyValue',
2015-09-07 18:09:12 +03:00
'retailcrm_order_chunk_size' => 50,
2016-02-27 18:07:46 +03:00
/**
* upload orders only from a certain date (Y-m-d H:i:s)
*/
2015-09-07 18:09:12 +03:00
'date_from' => '',
2016-02-27 18:07:46 +03:00
'order_prefix' => '', // optional
'set_external_ids' => false, // set externalId field
'order_method' => 'shopping-cart',
/**
* delivery mapping (tiu => CRM)
* https://my.tiu.ru/cabinet/shop_settings/delivery_options
*/
2015-09-07 18:09:12 +03:00
'delivery' => array(
2016-02-27 18:07:46 +03:00
'Транспортная компания' => 'ems',
2015-09-07 18:09:12 +03:00
'Доставка курьером' => 'courier',
2016-02-27 18:07:46 +03:00
'Самовывоз' => 'self-delivery'
2015-09-07 18:09:12 +03:00
),
2016-02-27 18:07:46 +03:00
/**
* payment types mapping (tiu => CRM)
* https://my.tiu.ru/cabinet/shop_settings/payment_options
*/
2015-09-07 18:09:12 +03:00
'payment' => array(
'Наличными' => 'cash',
'Оплата банковской картой' => 'bank-card',
'Безналичный расчет' => 'bank-transfer'
),
2016-02-27 18:07:46 +03:00
/**
* order statuses (CRM => tiu)
* https://my.tiu.ru/cabinet/order_v2
*/
2015-09-07 18:09:12 +03:00
'order_statuses' => array(
'new' => 'opened',
'processing' => 'accepted',
'complete' => 'closed',
'cancel-other' => 'declined',
),
2016-02-27 18:07:46 +03:00
/**
* email address for notification
*/
'support_email' => 'support@example.org',
'support_email_subject' => 'Integration problem'
);