The moment it happens
Keep WooCommerce products in sync with a supplier feed
Products sent to your link are created when the SKU is new, otherwise their price and stock are updated.
- Runs
- The moment it happens
- Apps
- WooCommerce
- AI
- Not needed
- Access
- read+write
Send this to your assistant
Create a ClickRuntime automation: give me a link my supplier's feed can send products to. Match on SKU: create the WooCommerce product if it's new, otherwise update its regular price and stock quantity.
First time? Adding ClickRuntime to your assistant takes about two minutes.
Why use it
Why teams use this automation
A WooCommerce shop that sells supplier stock needs its catalog kept in step with a spreadsheet, an ERP or a supplier feed. Someone copies new products in by hand, updates prices one row at a time and corrects stock figures every morning. Mistakes creep in: a price left unchanged after a supplier increase, a duplicate listing of the same item, and the shop sells things it cannot supply.
The automation gives you a link that other systems can send product data to. When data arrives, it looks up the product by SKU. If the SKU already exists, it updates that product's price, stock and details. If not, it creates a new product, so repeated sends never create duplicates.
It is useful for shops with a supplier feed, a warehouse system or a regular spreadsheet update. Because updates are keyed on SKU, a feed can be resent after an error without any harm.
What you get out of it
No more manual re-keying
Product data flows from where it is kept into the store, so nobody retypes names, prices and stock, which removes a regular source of typos. Those typos, such as a missing digit in a price, usually cost more than the time spent avoiding them.
Prices stay current
When a supplier raises a price, one update changes the product in the shop, so you are not selling below cost for the days it takes someone to notice. A quick price edit upstream reaches the store without anyone logging into WooCommerce.
SKU matching avoids duplicates
Looking up by SKU means the same item sent twice updates the existing product instead of creating a second listing that confuses customers and search. Duplicate listings split reviews and sales between two pages, and are painful to merge afterward.
Stock figures reflect the warehouse
Updating stock on arrival reduces overselling, which causes cancelled orders and unhappy customers. Overselling is more expensive than it looks, since each cancelled order costs time, trust and sometimes a refund fee.
Scales with the catalog
A hundred products update as easily as one, so the work does not grow as the shop does. That makes it a sound base for growing the range without hiring someone just to maintain listings.
How it works
What happens, step by step
When your supplier feed or another tool sends product data to ClickRuntime, the automation starts.
For each product it looks up the SKU in your WooCommerce store.
If the product exists, its price and stock are updated. If not, a new product is created.
The run result lists which SKUs were updated and which were created.
Before it runs live
- Connect WooCommerce
- Paste your automation's link into the other app's webhook settings
What you get
Build your own
Need it to work differently?
Your own rules
Conditions, thresholds, filters and exceptions, written the way you'd explain them to a colleague.
Any number of apps
One automation can read from one app and update several others. Over 248 apps are ready, and anything with an API works too.
AI where it helps
Summaries, classification, extraction and drafts use ClickRuntime's built-in AI, with no extra key.
On a schedule or on each event
Runs as often as every 5 minutes, or the moment an app sends an event, and keeps track of what it already handled.
Changes you can ask for
- Act only on the items that match your own rules, and skip the rest
- Add an AI step, for example to summarize, sort or draft a reply
- Add another app, for example also send it to Slack
- Combine it with other WooCommerce steps into one automation
Under the hood
The code that runs this automation
from clickruntime import on_event, credentials, http
STORE = "https://yourstore.com/wp-json/wc/v3"
@on_event
def handle(event):
item = event.json
auth = (credentials.secret("WC_CONSUMER_KEY"), credentials.secret("WC_CONSUMER_SECRET"))
fields = {"regular_price": str(item["price"]), "manage_stock": True,
"stock_quantity": int(item["stock"])}
found = http.get(f"{STORE}/products", params={"sku": item["sku"]}, auth=auth).json()
if found:
resp = http.put(f"{STORE}/products/{found[0]['id']}", json=fields, auth=auth)
action = "updated"
else:
resp = http.post(f"{STORE}/products", json={"name": item["name"], "sku": item["sku"], **fields}, auth=auth)
action = "created"
resp.raise_for_status()
return {"sku": item["sku"], "action": action, "id": resp.json()["id"]}FAQ
Common questions
What fields can be created or updated?
What if the SKU is missing from the incoming data?
Is the link secure?
What permissions does it need?
Does it need AI?
How many runs does it use?
Can I change how it works?
Related
You might also like
Post big WooCommerce orders to Slack
Orders above your threshold show up in Slack with the number, total and a link as they come in.
See how it worksGet refund details in Slack
Every refund, partial ones included, is posted with the order number, amount and reason.
See how it worksFlag risky WooCommerce orders before you ship
Orders that match your warning signs are posted to Slack and noted on the order itself.
See how it worksKeep exploring
Set up “Keep WooCommerce products in sync with a supplier feed” from your assistant
Copy the prompt above, or connect your assistant first. Free plan, no credit card.