> For the complete documentation index, see [llms.txt](https://doc.duaer.com/zh/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://doc.duaer.com/zh/recipes/shopify-orders-to-google-sheets.md).

# 在 Duaer 里把 Shopify 新订单自动写进 Google Sheets

在 Duaer 里，Shopify 每来一个新订单，就把订单号、邮箱、金额和商品写进 Google Sheets 的一行。
## 在 Duaer 里搭订单同步

1. 在 Google Sheets 新建一张表，第一行写表头：order、email、total、currency、created、items。
2. 在 Duaer 加 [Shopify Trigger](/zh/integrations/builtin/trigger-nodes/duaer-nodes-base.shopifytrigger.md)，连接 [Shopify 凭证](/zh/integrations/builtin/credentials/shopify.md)，Trigger On 选 Order Created。
3. 接 [Edit Fields](/zh/build/edit-fields.md)，加六个字段：order = {{ $json.name }}，email = {{ $json.email }}，total = {{ $json.total_price }}，currency = {{ $json.currency }}，created = {{ $json.created_at }}，items = {{ $json.line_items.map(i => i.title + ' x' + i.quantity).join('; ') }}。
4. 接 [Google Sheets](/zh/build/google-sheets.md)，Operation 选 Append Row，选这张表，Mapping Column Mode 选 Map Automatically。字段名和表头一致就会自动对上。
5. 发布数字组织。Shopify Trigger 发布后才会在店铺里注册 Webhook。

## 测试和常见问题

- 在 Shopify 后台下一个测试订单，回到 Duaer 执行记录里看这一行。
- 同一个订单想更新而不是重复写：Operation 改成 Append or Update Row，按 order 列匹配。
- 下单高峰撞到 Google 限额时，见 [Google Sheets 429 排查](/zh/troubleshooting/google-sheets-429-quota-exceeded.md)。
## Questions

### Duaer 能把以前的 Shopify 订单也导进表格吗？

Shopify Trigger 只收新事件。历史订单在 Duaer 里用 Shopify 节点的 Order 获取全部操作读一次，再写进同一张表。

### Duaer 同步 Shopify 订单要扣 AI 积分吗？

不扣。这条 Duaer 流程不调用模型，只按普通执行计算。

## 相关

- [在 Duaer 里用 Google Sheets 读行](https://doc.duaer.com/zh/build/google-sheets.md)
- [在 Duaer 里配置 Shopify 凭证](https://doc.duaer.com/zh/integrations/builtin/credentials/shopify.md)
- [在 Duaer 里解决 Google Sheets 429 配额超限](https://doc.duaer.com/zh/troubleshooting/google-sheets-429-quota-exceeded.md)

