Linking your online store to your stock: why the site sells what ran out, and what stops it
The store shows one number, the warehouse holds another, and between them somebody corrects by hand. So you sell what is not ther…
One stock balance for the shop and the warehouse: quantities and prices go out to the store, and every order comes back as an invoice with its journal entry and its stock movement. WooCommerce, Shopify, YouCan, Easy Orders, or your own store over an API.
The shop sells from one balance and the warehouse holds another, and between them sits a person who opens both and corrects them by hand. So the site sells something that ran out yesterday, or an item sits on the shelf for a week because the store does not know it arrived, and at month end the website’s orders are typed into the invoice book line by line. This service removes the middle: one balance, owned by the warehouse system, and a store that shows what is actually there.
Talk about an integration that works cannot be measured, so here is a real WooCommerce store we connected to a demo copy of the system, and both are open to you now:
Open the same item on both screens and compare the two numbers. Then run the whole cycle if you like: order from the store, open sales invoices in the panel, and find an invoice under the customer name you typed, with its quantity deducted from stock and its entry posted. Orders there are for trying and are not shipped, and the demo resets itself every night, so type what you like without worrying about breaking anything.
Most businesses selling online in Egypt sell from two places: a shop or warehouse that direct sales leave from, and an online store with its own dashboard and its own product list. The number the store displays did not come from the warehouse — somebody typed it once and then forgot it. That produces exactly two errors: selling what is not there, which is the expensive one because it costs you the customer rather than the goods, and hiding what is there, which is the silent one that nobody complains about and nobody can price.
The fix is not more attention or a more careful employee. The fix is that the balance has one source and everything else reads from it. That source is the warehouse system, because that is where receipts, issues, stocktakes and returns are recorded; the store is a shop window and a till. So the direction is one way: from the system to the store, never back.
The quantity pushed to the store is computed from one warehouse you nominate for that store, not from the sum of all your warehouses, because stock in another branch is not stock the site can ship. From it is subtracted a reserve you set yourself: hold back five of an item and the store shows the balance minus five and stops at zero before the warehouse is actually empty. That is precisely what prevents the double sale in the hour when one customer buys in the shop and another buys on the site.
Small details that matter in practice: the quantity goes out as a whole number rounded down, never a fraction, and an item deactivated in the system goes out as zero rather than disappearing — so the store reads “out of stock” instead of selling it. The system does not call the store unless the number has actually changed, so you do not spend your API allowance on meaningless updates; and if the store answers with a rate limit the batch stops quietly and resumes next cycle rather than getting the connection cut.
By code, not by name. The link reads your store’s products and matches them to items in the system on SKU or barcode, and it links each size and colour separately rather than the product as one unit, because the variant is what sells and what runs out. Anything it cannot match it lists for you by name and code, so you know exactly which of your store’s products have no item behind them.
This is the first real step of the project and no program does it for you: a product with no code in the store cannot be matched to anything, and an item written three ways in the system matches three times. So we start with the item list before any connection to the store, and it is the longest step and the most important one. We say it before the contract rather than after: if your catalogue has no codes, the first work is organisational rather than technical, and it belongs to whoever knows the items rather than whoever knows the software.
An order coming down from the store is not parked in a side table called “online orders”. It becomes a sales invoice in the same book and the same number sequence; the quantity leaves the nominated warehouse and its double entry is posted, and it carries a note saying it came from the store and the order number there. With it:
And a closed accounting period is not breached: if the month is locked the invoice is dated today rather than written behind the lock.
This is the part that separates a link that works from a link that corrupts your books, and it is where most of the questions come from if you have tried an integration before:
The practical difference between platforms is not the name but the route an order takes. WooCommerce and Easy Orders push a notification the moment it happens, so the invoice is created and the stock deducted seconds after the order. Shopify and YouCan are polled on a cycle, so an order arrives on the next sync rather than in its own second.
One difference is worth knowing before you choose a platform: WooCommerce has both routes, so a notification that fails is picked up by the next cycle. For Easy Orders the notification is the only route — there is no cycle that asks what was missed — so an order whose notification never arrived is imported with one click from the stores screen, which is also where you compare the day’s order count against what actually went in.
An invoice created from a store order is an ordinary sales invoice, so it goes to the Egyptian Tax Authority’s e-invoicing system from the same screen with no second entry. But an online order does not supply everything the authority asks for: it supplies a name, a phone number and a delivery address, and no tax registration number or national ID. So an invoice to a company customer, or to an individual above the threshold the authority sets, needs the customer’s details completed before submission — and the review screen names the missing field rather than returning an opaque error.
That is a fact about the authority rather than a flaw in the link, and it is written here because it is the first thing that surprises anyone who assumed an integration means automatic submission from day one. For the detail: what your system actually needs for e-invoicing.
The link is a module inside Zemavo ERP, written by us — not a third-party middleman you pay a separate subscription to and that stops the day it stops. So it sees stock, prices, customers and entries from the inside, and the invoice appears in the same reports you already read. The system itself runs on hosting in your company’s name or on a Windows machine inside the office, and the stock, orders and messages for every store sit on one screen that tells you whether the store is connected, when it last synced and what it said.
And for anyone with no store yet: we build the store too. E-commerce store development is a separate service that starts from cash on delivery and per-governorate shipping. Most likely you want both, because a store built knowing it will read stock from your system is a different store from one integrated a year later.
The link moves numbers; it does not correct a wrong one. If the warehouse balance in the system is wrong, the link carries the error to the store faster and more accurately. Anyone not recording warehouse movements first will not have their problem solved by an integration, and we say so before the contract rather than after the first month.
Specifically outside this service: we do not run your advertising or your store content, and we do not undertake that an outside platform will never change its API — and when one does, the change is maintenance work we do, not something that happens by itself. A return that starts in the store ends with your decision in the system: we flag the order and tell you, and we do not write a credit note into your accounts without you seeing it. And price sync is off by default rather than by oversight: plenty of businesses price online differently from the shop, and turning it on is your decision.
We start with a session on the item list and its codes, then link one store to one warehouse and run one real order end to end — order, invoice, stock deduction, entry, collection — before opening the rest. Then we set the held-back quantity, the tax rate and the collection account, and run the link alongside your manual tracking for a week until the numbers agree in front of you rather than on our word.
We are in New Maadi beside the Technology Village, and we work across Cairo, Giza and around them. The integration itself is work done on the hosting and needs no visit — but the item-list session and the training happen at your site.
The store shows one number, the warehouse holds another, and between them somebody corrects by hand. So you sell what is not ther…
Yes. WooCommerce is among the platforms we connect most. The link uses a read/write key you create in your WordPress dashboard, and needs no plugin and no change to your theme. It comes with an instant signed notification, so an order arrives the moment it happens rather than on the next cycle.
The one real condition is that your store’s products carry SKUs matching your item codes. If they do not, sorting the codes out is the first step — the longest one in the project, and we size it for you before we start.
It depends on the platform. WooCommerce and Easy Orders push a notification at the moment of the order, so the invoice is created and stock deducted seconds later. Shopify and YouCan are polled, so an order arrives on the next sync cycle.
On WooCommerce, Shopify and YouCan no order is lost: each cycle asks for whatever arrived since last time and retries anything that did not go in. For Easy Orders the notification is the only route, so an order whose notification never arrived is imported with one click from the stores screen — which is where you reconcile the day’s order count against what went in. All of this matters if you ship same-day, and matters much less if you batch the day’s orders for the next morning.
The order is flagged plainly on the stores screen as “cancelled after invoicing — review” with its invoice number, and a warning carrying the order number is written to that store’s log. Nothing is written on the invoice itself, and the system does not touch the entry or void it by itself.
That is deliberate: voiding a posted invoice or raising a credit note is an accounting decision affecting stock, entries and possibly your e-invoicing record, and no program should take it because a customer clicked a button in a shop. We surface it and you decide, in a minute.
It reduces it a great deal and does not stop it entirely, and anyone claiming otherwise has not understood the problem. The link pushes the real balance every cycle, so the store stops selling at zero instead of selling from a stale number. Between cycles there is a window of minutes in which a customer can order the last piece after it was sold in the shop.
What closes that window is not more speed but a quantity held back from online selling: hold two or five depending on your turnover, and the store stops before the warehouse is actually empty. That is a setting we tune with you against your real turnover in the first week, not a number typed once.
Yes, because it is an ordinary sales invoice in the same book, and it goes to the authority from the same screen with no second entry. But the authority asks for details an online order does not supply: the order gives a name, a phone number and an address, and no tax registration number or national ID.
So in practice: a small invoice to an individual goes through, while an invoice to a company customer or to an individual above the threshold needs the customer’s details completed first — and the system names the missing field. Items likewise need their authority codes registered once, not per invoice.
It can. The system exposes an API for your store: it reads items, codes, prices and balances page by page, and accepts an order, which becomes an invoice under the same rules — customer matching, tax and shipping in their own fields, and duplicate prevention keyed on the order number.
The only difference is that matching is on the item code directly, since there is no external catalogue to read. The work here is on your store’s side: whoever wrote it calls the API, and we supply the documentation and review the first order with them. If we built your store, this is part of the job already.
Get in touch with our team for a free consultation and a detailed quotation within one working day.