mirror of
https://github.com/retailcrm/prestashop-module.git
synced 2025-03-02 19:33:14 +03:00
release 0.2
This commit is contained in:
commit
9e16804432
@ -6,7 +6,7 @@ Prestashop module for interaction with [IntaroCRM](http://www.intarocrm.com) thr
|
||||
Module allows:
|
||||
|
||||
* Send to IntaroCRM new orders
|
||||
* Configure relations between dictionaries of IntaroCRM and Bitrix (statuses, payments, delivery types and etc)
|
||||
* Configure relations between dictionaries of IntaroCRM and Prestashop (statuses, payments, delivery types and etc)
|
||||
* Generate [ICML](http://docs.intarocrm.ru/index.php?n=Пользователи.ФорматICML) (IntaroCRM Markup Language) for catalog loading by IntaroCRM
|
||||
|
||||
Installation
|
||||
@ -35,4 +35,4 @@ zip -r intarocrm.zip intarocrm
|
||||
#### Install via Admin interface.
|
||||
|
||||
|
||||
Go to Modules -> Add module. After that upload your .zip archive and activate module.
|
||||
Go to Modules -> Add module. After that upload your zipped module and activate it.
|
||||
|
67
composer.lock
generated
Normal file
67
composer.lock
generated
Normal file
@ -0,0 +1,67 @@
|
||||
{
|
||||
"_readme": [
|
||||
"This file locks the dependencies of your project to a known state",
|
||||
"Read more about it at http://getcomposer.org/doc/01-basic-usage.md#composer-lock-the-lock-file"
|
||||
],
|
||||
"hash": "e4583dae732a6e5ebafff8cca46b1984",
|
||||
"packages": [
|
||||
{
|
||||
"name": "intarocrm/rest-api-client",
|
||||
"version": "v1.2.5",
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/intarocrm/rest-api-client",
|
||||
"reference": "b54350ff2f09d8202cf2931895bba8dced4dcf21"
|
||||
},
|
||||
"require": {
|
||||
"ext-curl": "*",
|
||||
"php": ">=5.2.0"
|
||||
},
|
||||
"type": "library",
|
||||
"extra": {
|
||||
"branch-alias": {
|
||||
"dev-master": "1.0.x-dev"
|
||||
}
|
||||
},
|
||||
"autoload": {
|
||||
"psr-0": {
|
||||
"IntaroCrm\\": "lib/"
|
||||
}
|
||||
},
|
||||
"authors": [
|
||||
{
|
||||
"name": "Kruglov Kirill",
|
||||
"email": "kruglov@intaro.ru",
|
||||
"role": "Developer"
|
||||
}
|
||||
],
|
||||
"description": "PHP Client for IntaroCRM REST API",
|
||||
"homepage": "http://www.intarocrm.ru/",
|
||||
"keywords": [
|
||||
"Intaro CRM",
|
||||
"api",
|
||||
"rest"
|
||||
],
|
||||
"support": {
|
||||
"email": "support@intarocrm.ru"
|
||||
},
|
||||
"time": "2014-04-13 09:58:37"
|
||||
}
|
||||
],
|
||||
"packages-dev": [
|
||||
|
||||
],
|
||||
"aliases": [
|
||||
|
||||
],
|
||||
"minimum-stability": "stable",
|
||||
"stability-flags": [
|
||||
|
||||
],
|
||||
"platform": {
|
||||
"php": ">=5.3"
|
||||
},
|
||||
"platform-dev": [
|
||||
|
||||
]
|
||||
}
|
13
intarocrm/config.xml
Normal file
13
intarocrm/config.xml
Normal file
@ -0,0 +1,13 @@
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<module>
|
||||
<name>intarocrm</name>
|
||||
<displayName><![CDATA[IntaroCRM]]></displayName>
|
||||
<version><![CDATA[0.1]]></version>
|
||||
<description><![CDATA[Модуль интеграции с IntaroCRM]]></description>
|
||||
<author><![CDATA[Intaro Ltd.]]></author>
|
||||
<tab><![CDATA[market_place]]></tab>
|
||||
<confirmUninstall>Вы уверены, что хотите удалить модуль?</confirmUninstall>
|
||||
<is_configurable>1</is_configurable>
|
||||
<need_instance>1</need_instance>
|
||||
<limited_countries></limited_countries>
|
||||
</module>
|
40
intarocrm/export.tpl
Normal file
40
intarocrm/export.tpl
Normal file
@ -0,0 +1,40 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<yml_catalog date="{$smarty.now|date_format:'%Y-%m-%d %H:%M'}">
|
||||
<shop>
|
||||
<name>{$shop_name}</name>
|
||||
<company>{$yamarket_company_name}</company>
|
||||
<url>{$shop_url}</url>
|
||||
<platform>PrestaShop</platform>
|
||||
<currencies>
|
||||
{foreach from=$currencies item=cur name=currencies}
|
||||
{if $cur.iso_code != 'GBP'}
|
||||
<currency id="{if $cur.iso_code == 'RUB'}RUR{else}{$cur.iso_code}{/if}" rate="{math equation="1/x" x=$cur.conversion_rate}"/>
|
||||
{/if}
|
||||
{/foreach}
|
||||
</currencies>
|
||||
<categories>
|
||||
{foreach from=$categories item=cat name=categories}
|
||||
{if $cat.id_category!=2}
|
||||
<category id="{$cat.id_category}"{if $cat.id_parent and $cat.id_parent!=2} parentId="{$cat.id_parent}"{/if}>{$cat.name}</category>
|
||||
{/if}
|
||||
{/foreach}
|
||||
</categories>
|
||||
{if $yamarket_delivery_price}<local_delivery_cost>{$yamarket_delivery_price}</local_delivery_cost>{/if}
|
||||
<offers>
|
||||
{foreach from=$products item=offer name=products}
|
||||
<offer available="{if $offer.available_for_order}true{else}false{/if}" id="{$offer.id_product}">
|
||||
<url>{$offer.url}</url>
|
||||
<price>{$offer.price}</price>
|
||||
<purchasePrice>{$offer.purchase_price}</purchasePrice>
|
||||
<currencyId>{$currency}</currencyId>
|
||||
<categoryId>{$offer.id_category_default}</categoryId>
|
||||
<picture>{$offer.picture}</picture>
|
||||
<name>{$offer.name}</name>
|
||||
{if $offer.article}
|
||||
<param name="article">{$offer.article}</param>
|
||||
{/if}
|
||||
</offer>
|
||||
{/foreach}
|
||||
</offers>
|
||||
</shop>
|
||||
</yml_catalog>
|
9
intarocrm/index.php
Normal file
9
intarocrm/index.php
Normal file
@ -0,0 +1,9 @@
|
||||
<?php
|
||||
include(dirname(__FILE__). '/../../config/config.inc.php');
|
||||
include(dirname(__FILE__). '/../../init.php');
|
||||
include(dirname(__FILE__). '/intarocrm.php');
|
||||
|
||||
header("Content-type: text/xml");
|
||||
|
||||
$export = new IntaroCRM();
|
||||
echo $export->exportCatalog();
|
1266
intarocrm/intarocrm.php
Normal file
1266
intarocrm/intarocrm.php
Normal file
File diff suppressed because it is too large
Load Diff
9
intarocrm/sync.php
Normal file
9
intarocrm/sync.php
Normal file
@ -0,0 +1,9 @@
|
||||
<?php
|
||||
include(dirname(__FILE__). '/../../config/config.inc.php');
|
||||
include(dirname(__FILE__). '/../../init.php');
|
||||
include(dirname(__FILE__). '/intarocrm.php');
|
||||
|
||||
header("Content-type: text/html");
|
||||
|
||||
$export = new IntaroCRM();
|
||||
echo $export->orderHistory();
|
36
intarocrm/translations/ru.php
Normal file
36
intarocrm/translations/ru.php
Normal file
@ -0,0 +1,36 @@
|
||||
<?php
|
||||
|
||||
global $_MODULE;
|
||||
$_MODULE = array();
|
||||
$_MODULE['<{intarocrm}prestashop>intarocrm_03c4d9465b9b3a7533d18cacc79c7fe4'] = 'IntaroCRM';
|
||||
$_MODULE['<{intarocrm}prestashop>intarocrm_5e695dc9fe273b7bc074e608113f4662'] = 'Модуль интеграции с IntaroCRM';
|
||||
$_MODULE['<{intarocrm}prestashop>intarocrm_876f23178c29dc2552c0b48bf23cd9bd'] = 'Вы уверены, что хотите удалить модуль?';
|
||||
$_MODULE['<{intarocrm}prestashop>intarocrm_5effd5157947e8ba4a08883f198b2e31'] = 'Неверный адрес CRM';
|
||||
$_MODULE['<{intarocrm}prestashop>intarocrm_576300f5b6faeb746bb6d034d98e7afd'] = 'Неверный API ключ';
|
||||
$_MODULE['<{intarocrm}prestashop>intarocrm_fba05687b61bc936d1a9a92371ba8bcf'] = 'Внимание! Часовой пояс в CRM должен совпадать с часовым поясом в магазине, настроки часового пояса CRM можно задать по адресу:';
|
||||
$_MODULE['<{intarocrm}prestashop>intarocrm_c888438d14855d7d96a2724ee9c306bd'] = 'Настройки обновлены';
|
||||
$_MODULE['<{intarocrm}prestashop>intarocrm_51af428aa0dcceb5230acb267ecb91c5'] = 'Настройка соединения';
|
||||
$_MODULE['<{intarocrm}prestashop>intarocrm_4cbd5dbeeef7392e50358b1bc00dd592'] = 'Адрес CRM';
|
||||
$_MODULE['<{intarocrm}prestashop>intarocrm_7f775042e08eddee6bbfd8fbe0add4a3'] = 'Ключ авторизации';
|
||||
$_MODULE['<{intarocrm}prestashop>intarocrm_c9cc8cce247e49bae79f15173ce97354'] = 'Сохранить';
|
||||
$_MODULE['<{intarocrm}prestashop>intarocrm_065ab3a28ca4f16f55f103adc7d0226f'] = 'Способы доставки';
|
||||
$_MODULE['<{intarocrm}prestashop>intarocrm_33af8066d3c83110d4bd897f687cedd2'] = 'Статусы заказов';
|
||||
$_MODULE['<{intarocrm}prestashop>intarocrm_bab959acc06bb03897b294fbb892be6b'] = 'Способы оплаты';
|
||||
$_MODULE['<{intarocrm}prestashop>intarocrm_dd7bf230fde8d4836917806aff6a6b27'] = 'Адрес';
|
||||
$_MODULE['<{intarocrm}prestashop>intarocrm_630f6dc397fe74e52d5189e2c80f282b'] = 'Вернуться к списку';
|
||||
$_MODULE['<{intarocrm}prestashop>intarocrm_5c1cf6cfec2dad86c8ca5286a0294516'] = 'Имя';
|
||||
$_MODULE['<{intarocrm}prestashop>intarocrm_c695cfe527a6fcd680114851b86b7555'] = 'Фамилия';
|
||||
$_MODULE['<{intarocrm}prestashop>intarocrm_f9dd946cc89c1f3b41a0edbe0f36931d'] = 'Телефон';
|
||||
$_MODULE['<{intarocrm}prestashop>intarocrm_61a649a33f2869e5e35fbb7aff3a80d9'] = 'Email';
|
||||
$_MODULE['<{intarocrm}prestashop>intarocrm_2664f03ac6b8bb9eee4287720e407db3'] = 'Адрес';
|
||||
$_MODULE['<{intarocrm}prestashop>intarocrm_6ddc09dc456001d9854e9fe670374eb2'] = 'Страна';
|
||||
$_MODULE['<{intarocrm}prestashop>intarocrm_69aede266809f89b89fe70681f6a129f'] = 'Область/Край/Республика';
|
||||
$_MODULE['<{intarocrm}prestashop>intarocrm_859214628431995197c0558f7b5f8ffc'] = 'Город';
|
||||
$_MODULE['<{intarocrm}prestashop>intarocrm_4348f938bbddd8475e967ccb47ecb234'] = 'Почтовый индекс';
|
||||
$_MODULE['<{intarocrm}prestashop>intarocrm_78fce82336bbbdca7f6da7564b8f9325'] = 'Улица';
|
||||
$_MODULE['<{intarocrm}prestashop>intarocrm_71a6834884666147c0334f0c40bc7295'] = 'Дом/Строение';
|
||||
$_MODULE['<{intarocrm}prestashop>intarocrm_f88a77e3d68d251c3dc4008c327b5a0c'] = 'Квартира';
|
||||
$_MODULE['<{intarocrm}prestashop>intarocrm_d977f846d110fcb7f71c6f97330c9d10'] = 'Код домофона';
|
||||
$_MODULE['<{intarocrm}prestashop>intarocrm_56c1e354d36beb85b0d881c5b2e24cbe'] = 'Этаж';
|
||||
$_MODULE['<{intarocrm}prestashop>intarocrm_4d34f53389ed7f28ca91fc31ea360a66'] = 'Корпус';
|
||||
$_MODULE['<{intarocrm}prestashop>intarocrm_49354b452ec305136a56fe7731834156'] = 'Дом/Строение';
|
Loading…
x
Reference in New Issue
Block a user