Eugene Polozov 9b6d5a5700 Bump version
2021-06-16 11:35:51 +03:00
2020-03-04 23:37:17 +03:00
2021-06-16 11:35:51 +03:00
2021-05-28 15:51:15 +03:00
2021-06-16 11:35:51 +03:00
2020-03-04 23:37:17 +03:00
2015-02-02 16:21:23 +03:00
2021-04-05 13:40:43 +03:00
2020-12-15 17:19:21 +03:00
2021-05-28 15:51:15 +03:00
2021-06-16 11:35:51 +03:00

Build Status Coverage GitHub release PHP version

Prestashop module.

Module allows integrate CMS Prestashop with RetailCRM (Documentation page)

Features:

  • Export orders to RetailCRM & fetch changes back
  • Export product catalog into ICML format

Setup

  • Go to module setup page
  • Fill you api url & api key
  • Specify directories matching

Notice

  • This release contains an experimental feature "corporate customers". Use at your own risk.
  • This release only supports RetailCRM API v5.

Customization

Filters

If you want to modify data, sent between CRM and CMS you can use custom filters. There are list of available filters:

  • RetailcrmFilterProcessOrder - order array, which will be sent to CRM

  • RetailcrmFilterProcessCustomer - customer array, which will be sent to CRM

  • RetailcrmFilterProcessCustomerCorporate - corporate customer array, which will be sent to CRM

  • RetailcrmFilterProcessAddress - address array, which will be sent to CRM

  • RetailcrmFilterProcessOffer - offer array, which will be sent to CRM (saved into Icml file)

  • RetailcrmFilterCustomersHistory - array with assembled history for customer, loaded from CRM

  • RetailcrmFilterOrdersHistory - array with assembled history for order, loaded from CRM

  • RetailcrmFilterSaveCustomer - built customer object, which will be saved to CMS

  • RetailcrmFilterSaveCustomerAddress - built customer address object, which will be saved to CMS

  • RetailcrmFilterSaveCorporateCustomer - built corporate customer object, which will be saved to CMS

  • RetailcrmFilterSaveCorporateCustomerAddress - built corporate customer address object, which will be saved to CMS

To use filters you should define a new class in <prestashop-root>/modules/retailcrm/custom/hooks. Filename and classname must match the filter name. Filter class should implement interface RetailcrmFilterInterface. In filter class you must define filter() function, which will take initial $object and return customized $object.

Classes

If you want to change the default behavior of a module classes and be sure that these changes won't be overwritten during the module upgrade process, you should copy the original classes that you are going to customize to the <prestashop-root>/modules/retailcrm/custom/classes directory.

From here you can modify the methods of the classes for your own purposes, and they will not be affected during the module upgrade process.

Keep in mind that:

  • If the logic and classes of the module have changed a lot after an upgrade, your customized logic may cause the module to malfunction. You should always check for changes after an upgrade and update your customized classes if needed.
  • This feature does not allow to customize the base class (file retailcrm.php). For this you can use the standard Prestashop override feature.
Description
PrestaShop integration plugin
Readme MIT 7 MiB
Languages
JavaScript 52.3%
PHP 47.2%
Shell 0.2%
Smarty 0.1%
Makefile 0.1%