ERP communication¶
eZ Commerce uses the logic of an ERP system in different situations:
- During login process, to get customer data
- In product detail page (configurable), to get prices and stock infos
- In basket
- In checkout
- During registration, to create contacts or customers
- In order history, to get documents from the ERP
- When importing products
The shop comes with a predefined set of messages:
Message | Description |
---|---|
calculate_sales_price |
Calculates prices using the business logic of the ERP |
createsalesorder |
Creates an order |
select_customer |
Gets customer data from the ERP |
select_contact |
Gets contact data for a person from the ERP |
create_contact |
Creates a contact in the ERP |
updatecustomer |
Updates a customer in the ERP |
orderdetail |
Gets details about an order |
invoice_detail |
Gets details about an invoice |
delivery_note_detail |
Gets details about a delivery note |
orderlist |
Gets a list of orders |
invoice_list |
Gets a list of invoice |
delivery_note_list |
Gets a list of delivery notes |
creditmemolist |
Gets a list of credit memos |
creditmemodetail |
Gets details about a credit memo |
readdeliveryaddress |
Gets data of a delivery address for specified party ID |
updatedeliveryaddress |
Updates the ERP data of an existing delivery address |
createdeliveryaddress |
Creates a new delivery address for a specified party ID |
deletedeliveryaddress |
Deletes a specific delivery address |
You can find the standard messages in EshopBundle/Resources/config/messages.yml
.
Each bundle can extend these messages or define its own messages if required.
Configuration¶
Make sure you have symlinks in the app/Resources
folder:
1 2 3 4 5 6 7 8 |
|
For more information about the ERP message mapping, see ERP Component: Mapping.
Debugging¶
Log messages are logged to the database. A command-line tool offers a feature to check which messages were exchanged with the ERP system.
This command waits for the next message and displays the request and result as XML:
Example message log
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 |
|
You can search for a specific message using the --search-text
option:
1 |
|
To dump 100 last messages, use the --dump-last-messages
option:
1 |
|
You can remove messages from the database with the --delete-messages
option.
The following example removes messages older than three days:
1 |
|