On a schedule
Keep WooCommerce prices in line with your main store
Prices in your WooCommerce store follow your main Shopify store by SKU, and you get an email listing every price that changed.
- Runs
- On a schedule
- Apps
- Gmail, WooCommerce
- AI
- Not needed
- Access
- Woo read/write; gmail.send
Send this to your assistant
Create a ClickRuntime automation: every 6 hours, compare prices for matching SKUs in my Shopify store, update WooCommerce where they differ, and email me what changed.
First time? Adding ClickRuntime to your assistant takes about two minutes.
Why use it
Why teams use this automation
A brand that sells on its main Shopify store and a second WooCommerce site changes prices in one place and forgets the other. Customers spot the difference, ask for the lower price, or buy from the cheaper site at a lower margin.
Matching prices by SKU on a schedule keeps both stores consistent without anyone copying prices by hand, and an email of changes keeps a record of what moved.
What you get out of it
One price everywhere
Customers see the same price on both sites, which avoids awkward support emails and price-matching requests.
Sales and price rises follow automatically
Change a price once in your main store and the second store catches up within hours.
A record of every change
The summary email lists old and new prices, useful when someone asks when a price changed.
Less admin
No spreadsheet exports or hand edits across hundreds of products.
How it works
What happens, step by step
Every 6 hours, ClickRuntime reads product prices from your Shopify store.
It reads your WooCommerce products and matches them by SKU.
Where a price differs, it updates the WooCommerce price to match.
If anything changed, you get an email listing each product with its old and new price.
Before it runs live
- Connect Google through your own Google app (a one-time, 10-minute setup), so it works with your own Gmail
- Connect WooCommerce
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
- Run it at a different time, more or less often, or only on weekdays
- 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 Gmail and WooCommerce steps into one automation
Under the hood
The code that runs this automation
import base64
from email.message import EmailMessage
from google.oauth2.credentials import Credentials
from googleapiclient.discovery import build
from clickruntime import on_trigger, credentials, http
WOO = "https://shop.example.com/wp-json/wc/v3"
SHOPIFY = "https://northwind.myshopify.com/admin/api/2024-07/products.json"
ME = "me@northwind.com"
@on_trigger
def run(event):
shop = http.get(SHOPIFY, headers={"X-Shopify-Access-Token": credentials.secret("SHOPIFY_TOKEN")}, params={"limit": 250}).json()
source = {v["sku"]: v["price"] for p in shop["products"] for v in p["variants"] if v.get("sku")}
auth = (credentials.secret("WOO_KEY"), credentials.secret("WOO_SECRET"))
changes = []
for p in http.get(f"{WOO}/products", auth=auth, params={"per_page": 100}).json():
new = source.get(p.get("sku"))
if new and float(new) != float(p["regular_price"] or 0):
http.put(f"{WOO}/products/{p['id']}", auth=auth, json={"regular_price": new}).raise_for_status()
changes.append(f"{p['sku']} {p['name']}: {p['regular_price']} -> {new}")
if changes:
msg = EmailMessage()
msg["To"], msg["Subject"] = ME, f"{len(changes)} WooCommerce prices updated"
msg.set_content("\n".join(changes))
gmail = build("gmail", "v1", credentials=Credentials(credentials.connection("google", "work")), cache_discovery=False)
gmail.users().messages().send(userId="me", body={"raw": base64.urlsafe_b64encode(msg.as_bytes()).decode()}).execute()
return {"changed": len(changes)}FAQ
Common questions
How are products matched?
Does it change sale prices too?
What if I don't want a product synced?
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
Email suppliers a reorder when stock runs low
When a product drops below 10 units, its supplier gets a reorder email from your Gmail and your team hears about it in Slack.
See how it worksGet a weekly email on what reviews say about each product
Every Monday you get an email summarising last week's product reviews: the mood for each product, recurring complaints and suggestions to act on.
See how it worksMatch refund requests to orders and confirm by email
Each refund request is matched to its WooCommerce order, a note is added to the order, and the customer gets a confirmation email with the order details.
See how it worksKeep exploring
Set up “Keep WooCommerce prices in line with your main store” from your assistant
Copy the prompt above, or connect your assistant first. Free plan, no credit card.