EMDI can download orders, customers and products and update stock on multiple e-shops at once through one shared multishop bridge. EMDI talks to a single bridge URL; that script fans out each request to every shop bridge.

Open-source script: emdi_multishop_bridge.php.

Steps

  1. Install and test the normal shop bridge on each e-shop alone (WooCommerce, OpenCart, etc.) until it works with EMDI by itself.
  2. Upload emdi_multishop_bridge.php to a reachable folder (often on the main shop or shared hosting) and set inside it:
    • $passkey — same key you will enter in EMDI
    • each shop bridge URL (including its own key=)
    • a unique order_prefix for every extra shop (e.g. EM)
  3. In EMDI Settings → Internet / bridge, set the domain to the multishop script URL and the key to $passkey — same as a normal bridge. Apply the links so bridge.ini gets action=orders, order, customers, products, updatestock, etc.

Important

  • Use a different customer code prefix per e-shop.
  • If products are shared, keep the same product codes across shops.
  • Each e-shop must use a different order number prefix so the multishop bridge can route order / confirmorder / cancelorder to the right shop.

On the second (and every extra) shop bridge, define the order prefix, e.g.:

Just before if ($action == 'deletetmp'), strip the prefix from the incoming $orderid:

In action=orders, when you echo the order line, prepend the prefix to the id:

The multishop bridge merges lists (orders / customers / products), drops the duplicate header row from the 2nd shop, then when EMDI opens or confirms an order it picks the shop from the prefix and forwards orderid without that prefix.

Full sample (edit URLs, keys and prefixes):

Source: https://github.com/sbzsystems/emdi-eshop-bridges-connectors/blob/gh-pages/emdi_multishop_bridge.php