# Update order note with customer total orders

Looks up a customer’s total Shopify order count and writes it into the paid order note.

Canonical URL: https://templates.jsworkflows.com/templates/update-order-note-customer-total-orders/

## When to use this template

This template is built for Shopify stores using the JsWorkflows app.

Use this template when you want a ready-made workflow for this use case: Looks up a customer’s total Shopify order count and writes it into the paid order note.

It is designed for Shopify order operations and gives you a production-ready starting point instead of building the automation from scratch.

This workflow uses the Shopify webhook trigger model and starts from the "Order paid" trigger. It includes setup fields for merchant-facing values, so you can configure the workflow before installing it.

## Metadata

- Category: Orders
- Trigger: Order paid
- Workflow type: Shopify webhook
- Complexity: easy
- Usage class: starter-friendly

## Connected services

- None

## Additional Shopify scopes

- read_orders
- write_orders

## Setup fields

- Note prefix (`NOTE_PREFIX`)
  - Type: text
  - Storage: config
  - Required: yes
  - Description: Prefix written ahead of the customer order count in the order note.

## Setup guide

## Before you start

This template updates the paid order note with the customer’s current total Shopify order count.

## Configure in setup

- `Note prefix`: text prefix that appears before the numeric order count

## Notes

- Guest checkouts are skipped because there is no customer to count
- The workflow overwrites the order note with the generated note line

