Skip to content

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.

Paste it into your assistant. It tells you what it will send or change before it runs live.

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

  1. Every 6 hours, ClickRuntime reads product prices from your Shopify store.

  2. It reads your WooCommerce products and matches them by SKU.

  3. Where a price differs, it updates the WooCommerce price to match.

  4. 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

RunsOn a schedule
Keep WooCommerce prices in line with your main storetoday, 9:00Succeeded
Email · Price sync3 WooCommerce prices updated: NW-MUG-BLU Northwind Mug: 14.00 -> 16.00 …

Build your own

Need it to work differently?

This template is a starting point. Copy the prompt and change it, or describe a different automation from scratch, with your own conditions, more apps or an AI step. Your assistant writes it, tests it and runs it on ClickRuntime.
  • 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

This is the Python script that runs each time the automation starts. Your AI assistant writes it for you when you send the prompt, and you allow each step in your assistant. To change how the automation works, describe the change to your assistant and it updates the script for you. For every function it can use, see the script reference.
sync_prices_from_another_store_into_woocommerce.pyexample
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?
By SKU. Products without a SKU, or with a SKU that only exists in one store, are left alone.
Does it change sale prices too?
By default it updates the regular price. Ask for sale prices to be copied as well if you run promotions in both stores.
What if I don't want a product synced?
Give it a different SKU, or keep a list of SKUs to skip in the script.
What permissions does it need?
Woo read/write; gmail.send. Nothing else in your accounts is used.
Does it need AI?
No. It runs without AI, so it doesn't use your plan's AI allowance.
How many runs does it use?
One run each time it runs (on a schedule). Checks that find nothing to do and stop right away aren't counted.
Can I change how it works?
Yes. Describe the change to your AI assistant, for example a different schedule, channel or filter. It updates the automation, tests it and tells you what changed.

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.