# Shopify

URL: /docs/collect/website/shopify

Shopify's theme editor has a section called **Custom Liquid** that accepts HTML. You'll add one to the page where you want the form and paste your block into it. This works with Shopify's free themes and most paid ones.

**Before you start:** have your Project ID ready and choose *feedback button* or *form on the page*. [How to get these](/docs/collect/website#before-you-paste-three-things-to-check)

## 1. Copy your block [#1-copy-your-block]

Replace `PASTE-YOUR-PROJECT-ID-HERE` with your Project ID.

**Feedback button**

```html
<button id="orvelt-feedback-button" type="button">Give feedback</button>
<script src="https://unpkg.com/@orvelt/business/dist/opinion-embed.js"></script>
<script>
  (function () {
    var form = OrveltEmbed.configure({
      projectId: 'PASTE-YOUR-PROJECT-ID-HERE',
      visibility: 'public',
    });
    document.getElementById('orvelt-feedback-button').addEventListener('click', function () {
      form.open();
    });
  })();
</script>
```

**Form on the page**

```html
<div id="orvelt-opinion-form"></div>
<script src="https://unpkg.com/@orvelt/business/dist/opinion-embed.js"></script>
<script>
  OrveltEmbed.configure({
    projectId: 'PASTE-YOUR-PROJECT-ID-HERE',
    visibility: 'public',
  }).mount('#orvelt-opinion-form');
</script>
```

## 2. Paste it into your theme [#2-paste-it-into-your-theme]

In your Shopify admin, go to **Online Store → Themes**.

Next to your current theme, select **Customize**. The theme editor opens.

Use the page selector at the top of the editor to open the page where the form should appear, for example **Pages → Contact** or your **Home page**.

In the left sidebar, select **Add section**, then choose **Custom Liquid**.

Select the new **Custom Liquid** section. Paste your block into the **Liquid code** box.

Drag the section to where you want it on the page, then select **Save**.

> **The form doesn't show in the editor preview**
>
>
> Some themes don't run scripts inside the theme editor. Open your live store in a new tab to check it.

## 3. Test it [#3-test-it]

Open the page on your live store and submit a test opinion. [Test the form](/docs/collect/website/test-the-form)

## If you set allowed origins [#if-you-set-allowed-origins]

Add your store's addresses under **Allowed origins**, such as `https://www.your-store.com` and, if customers can also reach it there, `https://your-store.myshopify.com`. [Allowed origins](/docs/collect/website/allowed-origins)

## What about the order status page? [#what-about-the-order-status-page]

Shopify's checkout and order status pages are managed separately from your theme and don't accept Custom Liquid sections. To ask for feedback after a purchase, send a [personal link](/docs/collect/links), or ask your developer to automate it with the [Business API](/docs/developers/collect/delivery-links).