diff --git a/README.md b/README.md index 5bf93df..7e59627 100644 --- a/README.md +++ b/README.md @@ -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. diff --git a/composer.lock b/composer.lock new file mode 100644 index 0000000..239a739 --- /dev/null +++ b/composer.lock @@ -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": [ + + ] +} diff --git a/intarocrm/export.tpl b/intarocrm/export.tpl new file mode 100644 index 0000000..ed065b6 --- /dev/null +++ b/intarocrm/export.tpl @@ -0,0 +1,40 @@ + + + + {$shop_name} + {$yamarket_company_name} + {$shop_url} + PrestaShop + + {foreach from=$currencies item=cur name=currencies} + {if $cur.iso_code != 'GBP'} + + {/if} + {/foreach} + + + {foreach from=$categories item=cat name=categories} + {if $cat.id_category!=2} + {$cat.name} + {/if} + {/foreach} + + {if $yamarket_delivery_price}{$yamarket_delivery_price}{/if} + + {foreach from=$products item=offer name=products} + + {$offer.url} + {$offer.price} + {$offer.purchase_price} + {$currency} + {$offer.id_category_default} + {$offer.picture} + {$offer.name} + {if $offer.article} + {$offer.article} + {/if} + + {/foreach} + + + \ No newline at end of file diff --git a/intarocrm/index.php b/intarocrm/index.php new file mode 100644 index 0000000..5f95ef6 --- /dev/null +++ b/intarocrm/index.php @@ -0,0 +1,9 @@ +exportCatalog(); \ No newline at end of file