<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: CloverWoo</title>
    <description>The latest articles on DEV Community by CloverWoo (@cloverwoo-pos).</description>
    <link>https://dev.to/cloverwoo-pos</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4268425%2F2ac1f48c-ddc4-473e-ac58-cd2b4621d0e6.png</url>
      <title>DEV Community: CloverWoo</title>
      <link>https://dev.to/cloverwoo-pos</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/cloverwoo-pos"/>
    <language>en</language>
    <item>
      <title>Keeping a Clover POS and a WooCommerce store in sync: what we learned</title>
      <dc:creator>CloverWoo</dc:creator>
      <pubDate>Fri, 27 Nov 2026 08:11:51 +0000</pubDate>
      <link>https://dev.to/cloverwoo-pos/keeping-a-clover-pos-and-a-woocommerce-store-in-sync-what-we-learned-4a6k</link>
      <guid>https://dev.to/cloverwoo-pos/keeping-a-clover-pos-and-a-woocommerce-store-in-sync-what-we-learned-4a6k</guid>
      <description>&lt;p&gt;A lot of small restaurants and shops run two systems at once. The register at the counter is a Clover POS. The website is WordPress with WooCommerce. Each one has its own list of products, its own prices and its own stock count. When they drift apart, the shop sells something online that ran out an hour ago at the counter.&lt;/p&gt;

&lt;p&gt;We build a plugin that keeps the two in step. Here are the design choices that mattered most, in case you are building something similar for any POS.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Decide who owns each field&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;"Two-way sync" sounds simple until both sides change the same product. The first question is not how to sync but who wins.&lt;/p&gt;

&lt;p&gt;We split it per field type:&lt;/p&gt;

&lt;p&gt;Stock is shared. A sale on either side lowers the count, and both sides must end up with the same number.&lt;br&gt;
Catalogue data (name, price, category, modifiers) has one owner. Most restaurants treat the register as the master, because that is where staff edit the menu. Some shops build products on the website first, with photos and long &lt;a href="https://dev.to/"&gt;descriptions&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;So we made it a setting: "Clover wins" or "WooCommerce wins". With WooCommerce in charge, the register only updates stock, and catalogue edits flow from the website to Clover. Making this an explicit choice removed a whole class of "why did my price change back?" support tickets.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Link records by ID, not by name&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Matching products by name breaks the first time someone writes "Latte (Large)" on one side and "Large Latte" on the other. We store the Clover item ID on the WooCommerce product once they are linked, and use the SKU only as a fallback when linking for the first time.&lt;/p&gt;

&lt;p&gt;Once linked, every later sync is a lookup, not a guess. Re-running an import never creates duplicates, which is the thing merchants fear most.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Polling first, webhooks later&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Webhooks are the obvious way to hear about changes. In practice, a POS app usually needs marketplace approval before it can receive them, and a webhook can be missed.&lt;/p&gt;

&lt;p&gt;So the base layer is scheduled polling with sensible intervals: stock every few minutes (it changes most and matters most), products and customers less often. Webhooks, when available, become a fast path on top. Polling then acts as the safety net that catches anything a webhook missed.&lt;/p&gt;

&lt;p&gt;If you build this on WordPress, remember WP-Cron only runs when the site gets traffic. For a quiet shop, a real server cron hitting wp-cron.php makes the timing reliable.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Orders must be idempotent&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;A website order goes into the POS so the kitchen sees it and the printer prints it. If that request times out, you will retry it. If the first attempt actually worked, you now have two orders and two tickets in the kitchen.&lt;/p&gt;

&lt;p&gt;So once a WooCommerce order has a Clover order, we store the Clover order ID on it, and we check for that ID before sending anything. A retry finds the link and stops. &lt;a href="https://plumpos.com/glossary/kitchen-printer.html" rel="noopener noreferrer"&gt;Kitchen printing gets&lt;/a&gt; its own "already printed" flag, so a second run never prints a second ticket. The same idea applies to payments: never let a retry charge a card twice.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Ship new behaviour switched off&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Merchants run their real business on these sites. An update that quietly changes how stock or orders flow is a support emergency at dinner rush.&lt;/p&gt;

&lt;p&gt;Our rule: every new feature ships behind a setting that is off by default. A store that updates sees no change until the owner turns the feature on. It slows down adoption of new features a little, and it is completely worth it.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Be careful with "hide" and "draft"&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;This one taught us a lesson. In a two-way setup, changing a product's visibility on the website can be sent back to the POS. Setting products to Draft on the website, while product sync to the register was on, hid those items on the register too. The shop opened with an empty menu screen.&lt;/p&gt;

&lt;p&gt;The fix was simple (turn the items back on, lock the product sync direction), but the lesson stuck: any action on one side must be checked for what it does on the other side before it runs on a live store.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Give people a way to try it without risk&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;A sandbox account on the POS side and a demo store on the website side let merchants and agencies click around before they connect anything real. It also gave us a safe place to test every release before it reaches customers.&lt;/p&gt;

&lt;p&gt;Wrapping up&lt;/p&gt;

&lt;p&gt;The hard parts of POS sync are not the API calls. They are ownership rules, stable IDs, safe retries, and never surprising a live store.&lt;/p&gt;

&lt;p&gt;If you want to see how these choices look in a finished product, we wrote a longer &lt;a href="https://cloverwoo.com/guides/clover-woocommerce-integration" rel="noopener noreferrer"&gt;guide to Clover and WooCommerce integration&lt;/a&gt; that walks through the options merchants have today.&lt;/p&gt;

</description>
      <category>ai</category>
      <category>webdev</category>
      <category>wordpress</category>
      <category>php</category>
    </item>
  </channel>
</rss>
