Published

How this site knows what is in stock

Where the in stock and out of stock labels on this site come from: the till in our shop, an update once a day, and why the site can be a step behind the shelf.

When you open a product on this site, a badge tells you whether it is in stock or out of stock. Nobody types that into the website. It follows the till in our shop, once a day, so it can be a step behind the shelf.

From the till to this page

In the shop, what we sell is rung up at the till, and what arrives on the shelves is entered into the same system. That system is Sandooq (more on it below), and it keeps a stock record for every item. Once a day, early in the morning, this website asks Sandooq for the shop's product list and for whether each item is in stock, then updates its pages from that answer. While you browse, the site does not look at the till: it shows what it was told at the last update.

What you will see

  • A badge on each product. "In stock" or "Out of stock", with the name of the shop it refers to. An item counts as in stock when the record shows more than none left there. The site is only told yes or no, never how many.
  • Sold-out items stay. An item that sells out is not hidden. It stays on its page, marked out of stock, so you can still find it. The shop page has an "In stock only" filter, and the strip called "On the shelf now" on the home page shows only items that are in stock.
  • Items we stop selling go. When an item is taken off the product list, its page is removed from this site at the next update.

Why the site can be behind the shelf

Because the update runs once a day, what you see is the shelf as it was at that update. An item that sold out in the afternoon can still say in stock until the next morning, and an item that arrived today can still say out of stock. "In stock" is also what the till's record says, not someone looking at the shelf.

The bottom of every page says when the stock was last updated. If an update ever fails, or the list that comes back looks broken or empty, the site keeps showing the previous list instead of an empty shop, and that date stays at the last good one.

This website does not take orders, so for something you need today, visit us or call before you come.

What is Sandooq?

Sandooq is a retail point-of-sale (POS) system for independent shops, in Arabic or English. It connects the till with stock and cash reporting. Our shop's sales and stock are kept in it, and this website reads them from there; the line "Made with Sandooq" at the bottom of every page says so. You can read more at sandooq.app.

All posts