Prices and stock from your ERP in Magento 2, without losing manual corrections

Prices and stock from your ERP system in Magento 2

Your ERP system sends a new stock level for one product. Meanwhile a colleague has corrected its title in Magento. After the next sync the stock should change, the title should stay, and the other products should not be touched. This is how all our integrations with ERP systems and suppliers work, because they are built on one shared foundation: Webcode Sync.

In short

  • Only the products that really changed are written to the store, not the whole catalog.
  • Fields your team edited by hand are kept.
  • If the ERP system stops halfway, the store keeps the last data instead of showing zero stock.

Who decides the price, the stock and the text

Before the setup we agree where each value comes from. Stock may come from the warehouse, the price from the ERP system, and the title may be written by your team in Magento. With Microinvest, for example, the stock can be the sum of several selected warehouses. If the wrong warehouses are in the sum, the sync will run successfully, but the stock in the store will still be wrong. So we check specific products with you and record which field comes from where as part of the setup.

Only the changes are written

Data from the external system is first collected separately, without touching the store. Then it is compared with the last data received, and only what has changed is written to Magento. If the source sends the same data again, nothing is written. If the stock of one product changes, only that product is updated, not the whole catalog. Values marked as manually edited in the product stay.

Data from the ERP or supplier is collected separately, compared with the last data received, and only the changed products are updated in the store

What happens if the source stops halfway

A broken connection is not the same as zero stock. That is why receiving the data and writing it to the store are separate steps. If Microinvest does not respond, the store keeps the last data instead of showing zero. When we sign off an integration, we test both cases: a product for which the warehouse really sent zero, and a broken connection, where the last stock level must stay.

Four cases in a sync: the same data is skipped, new stock updates only its own product, a manual edit is kept, and on an interrupted read the last data stays

Orders to the ERP system

A synced catalog does not necessarily mean orders go back to the ERP: that depends on the integration. With Dreem the order is sent with the prices after discounts, and the payment and shipping methods are mapped to those in the ERP. With Microinvest, if writing an order stops halfway, the order is flagged for manual review. That way lines that were already entered are not duplicated.

How we sign off a sync

We pick test products:

  • with unchanged data;
  • with a new price;
  • with zero stock;
  • with a manually edited field.

We check the result in Magento and run the same sync a second time. If orders also go back to the ERP, we place a test order with a discount and check the total and the lines in the ERP. We can repeat the same checks when you change the system or when we update the module.

Examples and next step

The Microinvest integration takes the products from the warehouse system and sends the orders back there. The Dreem integration updates the changed products several times a day and runs a full check at night. If you want us to connect your store, send us the name of the system and which data needs to flow in each direction.

Want the prices and stock in Magento to come from your ERP system or supplier? Tell us which system it is and which data needs to move.