prestashop-module/README.md
max-baranikov 114ae5efd1
Added custom classes loading in bootstrap.php, fixed discount upload
* Added custom classes loading in bootstrap.php. Fixed discount uploading  in case when payment type not configured
* Add customization info to README
2020-11-17 11:56:34 +03:00

37 lines
1.9 KiB
Markdown

[![Build Status](https://img.shields.io/travis/retailcrm/prestashop-module/master.svg?style=flat-square)](https://travis-ci.org/retailcrm/prestashop-module)
[![Coverage](https://img.shields.io/codecov/c/gh/retailcrm/prestashop-module/master.svg?style=flat-square)](https://codecov.io/gh/retailcrm/prestashop-module)
[![GitHub release](https://img.shields.io/github/release/retailcrm/prestashop-module.svg?style=flat-square)](https://github.com/retailcrm/prestashop-module/releases)
[![PHP version](https://img.shields.io/badge/PHP->=5.3-blue.svg?style=flat-square)](https://php.net/)
Prestashop module
=================
Module allows integrate CMS Prestashop with [retailCRM](https://www.retailcrm.pro)
#### Features:
* Export orders to retailCRM & fetch changes back
* Export product catalog into [ICML](https://help.retailcrm.pro/Developers/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
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.