Skip to main content
This quickstart is for a storefront you host yourself. If you are editing the Shoppex-hosted storefront theme, use Theme Development.
1

Set Up Your HTML

Create a basic HTML page with the SDK and a container for products:
2

Initialize and Fetch Products

Create app.js with the following code:
3

Add Cart Functionality

Add these functions to handle cart operations:
4

Add Checkout Button

Add a checkout button to your HTML:
And the checkout function:

Complete Example

Here’s the full app.js:
For a simple product grid, prefer product.cdn_image_url. Save product.detail_image_url for product detail pages and galleries.

Next Steps

Store API

Fetch store metadata and branding.

Products API

Advanced product queries and filtering.

Cart API

Complete cart management reference.

Checkout API

Checkout options and coupon handling.