SuperAPI AI 工具集

shopify

编程与开发

查看项目

更新于 10-15 20:06

技能介绍

用途:指导在 Shopify 平台上构建应用、扩展与主题,并完成 API 集成。

主要能力:涵盖 Shopify CLI 工作流、GraphQL Admin API(推荐)与 REST Admin API(维护模式)、Polaris UI 设计系统、Liquid 模板语言;扩展点包括 Checkout UI、Admin UI、POS UI、Customer Account 与 Theme App Extensions。

使用方式:安装 CLI 用 npm install -g @shopify/cli@latest,验证用 shopify version。应用开发:shopify app init、shopify app dev、shopify app generate extension --type checkout_ui_extension、shopify app deploy;访问范围在 shopify.app.toml 的 [access_scopes] 中配置。主题开发:shopify theme init、shopify theme dev、shopify theme pull --live、shopify theme push --development、shopify theme publish --theme=123。另提供脚本 python scripts/shopify_init.py 交互式初始化项目。

适用场景:需要集成外部服务、跨店铺功能、商家后台工具、程序化数据管理或复杂业务逻辑时构建应用;需要定制结账流程、后台字段、POS 操作、折扣/支付/配送规则或客户账户页时构建扩展;需要自定义店面设计、商品与集合页、品牌化布局时构建主题。应用与主题扩展可组合使用。

限制与注意:新开发优先 GraphQL,仅请求必要字段并分页,批量用 bulk operations,遵守基于成本的速率限制;凭证存环境变量,校验 webhook 签名,公共应用用 OAuth,最小化访问范围;API 按季度版本发布(资料称当前 2025-01),每版本支持 12 个月。资料未提供具体收费、价格与效果数据。