Project portfolio Browse selected work

Shopify Plus Upgrade Monthly Fee Reduction + Up to $4800 Development Fee Credit - Exclusive WesWoo Offer

Developer modules / Data and implementation foundations

Data and implementation foundations

Define ownership and inputs before choosing a Liquid or Headless implementation.

Moving the same module to Headless

Keep the field and purchase-state contract while replacing Liquid reads with server-side Storefront queries. The chosen framework owns routes, rendering and builds; connect commerce primitives for the installed Hydrogen version.

Data and dependencies

  • Take handle from the current route and country/language from market context.
  • Query only the facts needed by this module.

Interaction logic

  • Return a real 404 for an absent product.
  • Follow pagination instead of treating the first ten variants as complete.
Example code · queries/product.graphql
GraphQL · WESWOO
query ProductFacts($handle: String!, $country: CountryCode!, $language: LanguageCode!)
@inContext(country: $country, language: $language) {
  product(handle: $handle) {
    id
    title
    description
    variants(first: 10) {
      nodes {
        id
        title
        availableForSale
        price { amount currencyCode }
      }
      pageInfo { hasNextPage endCursor }
    }
  }
}

Acceptance checks

  • Compare initial HTML, market changes and cart for one model.
  • Check framework versions, lockfiles and cache isolation.

This is a query document, not an authentication or request adapter. Keep private credentials on the server and follow the correct legacy or 2026-10 documentation.

Read it, integrate it, verify it

  1. Choose a module and confirm the data contract.
  2. Connect the fragment to the current theme or framework.
  3. Check real variants, markets and recovery states.

Examples target Shopify Online Store 2.0 themes. Headless has separate data and version boundaries. Integrate fragments with actual fields, theme components and locale files.

Architecture references

Original educational examples with Shopify documentation and pinned upstream references. Follow the applicable license when adopting repository code.

Shopify/dawn · Licensecommit 3e9ee2281dc4 · Shopify-integration theme license; architecture reference without copying the implementation.
Shopify/hydrogen · Licensecommit 9e358a2462ba · MIT; retain copyright and license when using substantial code.

References checked 2026-11-12