Shopify checkout ui

From OrcaQubits/agentic-commerce-skills-plugins · View interactive version

Shopify checkout ui is an AI agent skill from the GitHub repository OrcaQubits/agentic-commerce-skills-plugins. Build Shopify checkout UI extensions — extension targets, UI primitives, Preact/Remote DOM rendering, checkout APIs, metafield access, post-purchase extensions, and thank-you page customization. Use when customizing Shopify checkout.

How to use this skill

Skill file

Shopify Checkout UI Extensions

Before writing code

Fetch live docs:

  1. Fetch https://shopify.dev/docs/apps/build/checkout for checkout extensions
  2. Web-search site:shopify.dev checkout ui extension targets for available targets
  3. Web-search site:shopify.dev checkout ui components for UI primitives

What Are Checkout UI Extensions

Client-side extensions that add UI to Shopify's checkout:

Important: You cannot replace Shopify's checkout — only extend it at designated points.

Extension Targets

Locations where extensions can render:

Checkout Page

Thank You Page

Order Status Page

Post-Purchase

UI Primitives

Checkout extensions use Shopify's UI components (NOT Polaris, NOT HTML):

| Component | Purpose |

|-----------|---------|

| Banner | Information/warning/error messages |

| BlockStack | Vertical layout |

| Button | Action buttons |

| Checkbox | Boolean input |

| ChoiceList | Radio/checkbox groups |

| Divider | Visual separator |

| Form | Form container |

| Heading | Section headings |

| Icon | Icons |

| Image | Images |

| InlineStack | Horizontal layout |

| Link | Navigation links |

| Select | Dropdown selection |

| Text | Text content |

| TextBlock | Block of text |

| TextField | Text input |

Extension Structure

extensions/checkout-ui/
├── src/
│   └── Checkout.tsx           # Extension component
├── shopify.extension.toml     # Configuration
├── locales/
│   └── en.default.json        # Translations
└── package.json

Configuration

api_version = "<latest-stable>"  # e.g. 2026-07 — Shopify ships a new stable version quarterly
#                                (2026-01 / 2026-04 / 2026-07 / 2026-10) and supports each for ~12 months.
#                                Resolve the current one from https://shopify.dev/docs/api/usage/versioning
#                                before writing this file. Never copy a version literal from an example.

[[extensions]]
name = "Custom Checkout Banner"
handle = "custom-checkout-banner"
type = "ui_extension"

  [[extensions.targeting]]
  module = "./src/Checkout.tsx"
  target = "purchase.checkout.block.render"

Extension Component

import {
  Banner,
  useExtensionApi,
  useCartLines,
  useApplyCartLinesChange,
  reactExtension,
} from '@shopify/ui-extensions-react/checkout';

export default reactExtension(
  'purchase.checkout.block.render',
  () => <CheckoutBanner />,
);

function CheckoutBanner() {
  const { extension } = useExtensionApi();
  const cartLines = useCartLines();
  const applyCartLinesChange = useApplyCartLinesChange();

  const itemCount = cartLines.reduce((sum, line) => sum + line.quantity, 0);

  if (itemCount < 3) {
    return (
      <Banner status="info">
        Add {3 - itemCount} more item(s) for free shipping!
      </Banner>
    );
  }

  return null;
}

Checkout APIs (Hooks)

| Hook | Purpose |

|------|---------|

| useCartLines() | Current cart line items |

| useApplyCartLinesChange() | Modify cart lines |

| useShippingAddress() | Shipping address |

| useBuyerJourney() | Intercept checkout progression |

| useAppMetafields() | Read app metafields |

| useCheckoutToken() | Checkout session token |

| useCurrency() | Current currency |

| useLocalizationCountry() | Customer country |

| useExtensionApi() | Full extension API |

Best Practices

Fetch the Shopify checkout UI extensions docs for exact component APIs, available hooks, and extension target names before implementing.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.