website logo
Navigate through spaces
Chord Commerce
⌘K
Getting Started
CMS
Data
OMS
Integrations
👩‍💻Developer Tools
Shopify
Docs powered by archbee 

SDK Reference

The Next.js starter kit includes a set of React hooks that offer an easy way to interact with Shopify's order management system, for common operations like adding items to a cart. These hooks provide access to SDK methods that handle communication with Shopify's order management system and keep the site's Redux state up to date. They also automatically send tracking events to Segment.

Hook

Description

useAnalytics

Provides support for sending UI-related tracking events to Segment.

useAuth

Provides support for user authentication with a Shopify customer account.

useCart

Returns the current shopping cart, and functions for creating and interacting with the shopping cart.

useTranslate

Provides support for internationalization

useUser 

Returns the current user, and functions for loading data about the user.

Updated 28 Nov 2022
Did this page help you?
Yes
No
UP NEXT
useAnalytics
Docs powered by archbee