---
title: Shopify V2
description: The Shopify V2 app adds a field type for referencing products and collections from a connected Shopify store.
url: https://www.storyblok.com/docs/apps/shopify-v2
---

# Shopify V2

The Shopify V2 app adds a field type for selecting products and collections from a connected [Shopify](https://www.shopify.com/) store and referencing them in Storyblok content. The selection is part of the Content Delivery API response.

Read more about connecting a store in the [e-commerce concept](/docs/concepts/e-commerce).

## Features

-   Select Shopify products and collections in the Visual Editor.
-   Limit how many items an editor can select.
-   Restrict the field to products only or collections only.

## Setup

1.  Install the [Storyblok Connect app](https://apps.shopify.com/storyblok-connect) in your Shopify store.
2.  Grant the space access through the link in the Storyblok Connect app.
3.  In the **Block Library**, add a field to a block, set its field type to **Plugin**, and set the custom type to `sb-shopify-v2`.

> [!NOTE]
> Set `storeDomain` to the technical permanent domain of the store where you installed Storyblok Connect. The linking page of the Storyblok Connect app shows this domain. A store can have more than one `myshopify.com` domain, such as the handle in the Shopify admin URL. Any domain other than the technical permanent domain fails with a `401 Unauthorized` error.

The field takes the following options:

| Option | Required | Description |
| --- | --- | --- |
| `storeDomain` | Yes | Technical permanent domain of the Shopify store where you installed Storyblok Connect, for example `<store-id>.myshopify.com`. |
| `limit` | No  | Maximum number of items an editor can select. |
| `selectOnly` | No  | Restricts the field to `product` or `collection`. |

## Further resources

[Storyblok Connect on the Shopify app store](https://apps.shopify.com/storyblok-connect)

[Shopify V2 in the app directory](https://www.storyblok.com/apps/storyblok-gmbh@shopify-v2)

## Pagination

-   [Previous: Shared Components](/docs/apps/shared-components)
-   [Next: Shopware](/docs/apps/shopware)
