bnix / pimcore-prestashop-bundle
Pimcore 11 to Prestashop 8.x integration bundle
Package info
github.com/bambooooooo/pimcore-prestashop-bundle
Type:symfony-bundle
pkg:composer/bnix/pimcore-prestashop-bundle
Requires
- php: ^8.2
- pimcore/pimcore: ^11.0
- symfony/framework-bundle: ^6.4
Requires (Dev)
None
Suggests
None
Provides
None
Conflicts
None
Replaces
None
README
Customizable pimcore to prestashop product integration
Installation
composer require bnix/pimcore-prestashop-bundle
Usage
Define configuration in config/packages/pimcore_prestashop.yaml for every prestashop shop to integrate
Example usage
- Put this minimal config into
config/packages/pimcore_prestashop.yaml
# config/packages/pimcore_prestashop.yaml
bnix_pimcore_prestashop:
stores:
dev:
url: 'http://prestashop'
host: 'prestashop.local:7777'
api_key: 'AWVDMSUHIPXEQD7EA9A1GIKDSSLE9D4H'
languages:
en: 1
currencies:
- EUR
mappings:
Product:
reference: Id
name: Name
price: Price
- Run
bin/console prestashop:sync dev - Done!
Mapping resolvering
Integrations support 3 kinds of mapping:
- User defined (highest prioryty) - mappers defined by user that extends
AbstractMapper - Class field - acessible by standard getter
- Fixed value - constant value
Localized fields are fully supported
Extended Prestahop API support
You can define your custom listener that will be executed before http api reqeust. To do so, please define Listener in
src/EventListener and configure it to listen bnix.prestashop.preSend event.