Keeping WooCommerce and Sage 50 in sync

Web orders typed into Sage by hand, 6,000 product codes and one discount that broke the VAT. The story behind my Sage 50 connector.

I don’t know whether Sage 50 is the best, biggest or most popular accounting software in Britain, but it turns up in a lot of my clients’ offices.

A few years ago, a new website for one of them came with an interesting problem. Orders from their old site arrived by email and were typed into Sage by hand. With over 6,000 product codes, that was slow, laborious and easy to get wrong.

Middleware for the middleware

I found Adept, whose software rather brilliantly talks to Sage. Adept can’t write code for every website out there, so it uses a simple, well-tested format for swapping data. All I had to do was write the website end: middleware to talk to the middleware.

Sage → Adept → my code → website, and the same in reverse.

New orders and customers go from the website into Sage. Stock levels, prices and products come back the other way. Nobody types anything twice.

The discount that broke the VAT

It ran happily for years. Then the client started offering a new kind of discount, and a problem appeared that nobody had seen before.

The discount was applied correctly on the website, but it never made it into Sage. Sage worked out the invoice on the full price, so the VAT on the invoice no longer matched what the customer had actually paid. The order looked fine everywhere except in the accounts, which is exactly where you don’t want surprises.

Fixing it properly meant looking at the whole thing again, so I rewrote it. While I was there, I added things I’d wanted for a while:

  • An Issues tab. If Sage rejects an order, it’s held back and listed with the reason, instead of being sent again and again.
  • A safe test mode. Add &dry=1 to the address and nothing changes on the website; every change it would have made is logged instead.
  • A statistics tab. A simple panel to show how data is flowing today, and a bit of history.
  • A better alert. The previous alert was ungainly, now I get to know quickly if orders aren’t flowing.

Now available as a plugin

I’ve turned it into a plugin so the next shop doesn’t have to start from scratch. Once Adept’s software is running alongside Sage, the website side can be connected in minutes.

The free plugin, on WordPress.org, keeps your website’s stock levels in step with Sage. Pro adds orders, customers and Sage prices, and comes with a 14-day money-back guarantee.

I’m an independent developer, not part of Sage or Adept. You buy Adept’s software from Adept; this is the website end of it.

Download the free plugin or find out more about Pro

Leave a Reply

Your email address will not be published. Required fields are marked *