# Shopify (/developers/platforms/shopify)



You can take bookings on a Shopify store without sending customers away from it. This guide covers Book Now buttons that open booking on top of your page, and booking placed directly on a page. It is written for Online Store 2.0 themes such as Dawn and Horizon.

<IntegrateNow host="shopify" />

The wizard writes the code below with your own Location ID and booking page address already in it. If you would rather do it by hand, read on.

Before you start [#before-you-start]

* **A plan that lets you edit your theme.** The Starter plan does not.
* **A copy of your theme.** Duplicate it before you edit its code, so you have something to go back to: **Online Store**, **Themes*&#x2A;, the &#x2A;*...** menu next to the theme, **Duplicate**.
* **Your Location ID.** In the Resytech dashboard, click your name in the top right and choose **Location Settings**. The ID is at the top of the page with a copy button.
* **Your booking page address.** In the dashboard, click your name in the top right, choose **Location Settings**, then open **Booking Domain**. The address has to show **Verified**. See [Booking Page Address](/docs/getting-started/booking-page-address).

<Callout type="warn" title="Test outside the theme editor">
  The theme editor reloads sections without running page scripts again, so booking can look broken there. Open your store in a new tab, or use **Preview*&#x2A; from the theme's &#x2A;*...** menu if you edited a copy.
</Callout>

Book Now buttons [#book-now-buttons]

<Steps>
  <Step>
    Add the booking script to your theme [#add-the-booking-script-to-your-theme]

    In Shopify admin, open **Online Store**, then **Themes*&#x2A;. Click the &#x2A;*...** menu next to your theme and choose **Edit code**. Under **Layout**, open **theme.liquid**.

    Find `</head>` and paste this on a new line just above it, replacing `YOUR_LOCATION_ID` and the booking page address with your own. Then click **Save**.

    ```html
    <script
      src="https://js.resytech.com/1/resytech.js"
      data-resytech-location-id="YOUR_LOCATION_ID"
      data-resytech-base-url="https://yourbusiness.bookingui.com"
      data-resytech-links="true"></script>
    ```

    This loads Resytech booking. The last line lets ordinary theme buttons and menu links open it.
  </Step>

  <Step>
    Point a button at a booking link [#point-a-button-at-a-booking-link]

    Open **Online Store**, **Themes** and click **Edit theme**. Select the section that holds your button and find its **Link** field. Paste one of these exactly as shown, starting with the slash, then pick it from the list that appears underneath. Do not press Enter.

    | Link                      | What it opens                                                                                    |
    | ------------------------- | ------------------------------------------------------------------------------------------------ |
    | `/#book`                  | The full booking flow, where customers choose an activity first                                  |
    | `/#book-YOUR_ACTIVITY_ID` | One activity. The ID is the last part of the address when you open the activity in the dashboard |
    | `/#gift-card`             | Gift card purchase                                                                               |

    Click **Save**. You can use a different link on each button.

    For a menu item, open **Content**, **Menus**, open the menu and click **Add menu item**. Paste the link, pick it from the list, then click **Save menu**.
  </Step>

  <Step>
    Test it [#test-it]

    Open your store in a new tab and click the button. The booking window should open on top of the page.
  </Step>
</Steps>

Without editing theme code [#without-editing-theme-code]

If you would rather not open theme.liquid, put the same script tag in a section instead. Open **Online Store**, **Themes** and click **Edit theme**. In the **Footer** group, click **Add section** and choose **Custom Liquid**. Paste the script tag into **Liquid code** and click **Save**.

Slide-in panel instead of a pop-up [#slide-in-panel-instead-of-a-pop-up]

To have booking slide in from the side of the page, add one line to the script tag:

```html
<script
  src="https://js.resytech.com/1/resytech.js"
  data-resytech-location-id="YOUR_LOCATION_ID"
  data-resytech-base-url="https://yourbusiness.bookingui.com"
  data-resytech-presentation="drawer"
  data-resytech-links="true"></script>
```

Booking on a page [#booking-on-a-page]

This places the booking calendar inside one of your pages, with no button to click.

<Steps>
  <Step>
    Add the booking script to your theme [#add-the-booking-script-to-your-theme-1]

    Open **theme.liquid** as described above and paste this just above `</head>`. If you already added the script tag for Book Now buttons, keep it and add only the last line underneath. Click **Save**.

    ```html
    <script
      src="https://js.resytech.com/1/resytech.js"
      data-resytech-location-id="YOUR_LOCATION_ID"
      data-resytech-base-url="https://yourbusiness.bookingui.com"
      data-resytech-links="true"></script>
    <script>new ResytechApi().registerComponents();</script>
    ```
  </Step>

  <Step>
    Place the booking on a page [#place-the-booking-on-a-page]

    The page editor removes scripts and unknown tags, so the booking goes into a page template instead.

    1. Open **Online Store**, **Themes** and click **Edit theme**. In the page drop-down at the top, choose **Pages**, then **Create template**, and give it a name such as `booking`.
    2. In the new template, click **Add section** and choose **Custom Liquid**.
    3. Paste the code below into **Liquid code** and click **Save**.
    4. Open **Online Store**, **Pages** and open the page that should show booking. Set **Theme template** to the template you made and click **Save**.

    ```html
    <resytech-booking-embed
      base-url="https://yourbusiness.bookingui.com"
      location-id="YOUR_LOCATION_ID">
    </resytech-booking-embed>
    ```

    To show one activity, add `activity-id="YOUR_ACTIVITY_ID"` to the tag. The booking area is 700 pixels tall unless you say otherwise. Add `height="900"` to change it.
  </Step>

  <Step>
    Test it [#test-it-1]

    Open the page in a new tab. The booking calendar should appear where you placed the section.
  </Step>
</Steps>

A link to your booking page [#a-link-to-your-booking-page]

If you would rather not add any code, point a button or menu item at your booking page address, for example `https://yourbusiness.bookingui.com`. Add `/YOUR_ACTIVITY_ID` to go straight to one activity, or `/gift-cards` for gift cards. Customers book on your booking page instead of on your store. This works on every Shopify plan.

Troubleshooting [#troubleshooting]

<Accordions type="single">
  <Accordion title="Nothing happens when I click the button">
    Check the code is saved in **theme.liquid** of the theme that is published right now. Code belongs to one theme only. Then check the button link is exactly as shown.
  </Accordion>

  <Accordion title="It stopped working after I changed or updated my theme">
    The code lives in one theme. After you switch themes, or after an update that replaces theme.liquid, add the script again.
  </Accordion>

  <Accordion title="The code shows as text or disappears when I paste it into a page">
    The page editor removes scripts. Use a **Custom Liquid** section in the theme editor instead, as the steps describe.
  </Accordion>

  <Accordion title="Shopify says the link is not valid">
    After pasting the link, pick it from the list that appears under the field instead of pressing Enter.
  </Accordion>

  <Accordion title="It does not work on the password page or at checkout">
    Theme code does not load on the store password page or in Shopify checkout. Test on an ordinary page of your store.
  </Accordion>

  <Accordion title="The booking window opens but stays blank or shows an error">
    The booking page address in the code has to match your address in the dashboard exactly, including `https://`. In the dashboard, click your name in the top right, choose **Location Settings**, open **Booking Domain** and check the address shows **Verified**.
  </Accordion>

  <Accordion title="I need to see what the script is doing">
    Add `data-resytech-debug="true"` to the script tag, reload the page and open the browser console. Remove it again once things work.
  </Accordion>
</Accordions>

How this guide was checked [#how-this-guide-was-checked]

The menu names were checked against Shopify's help pages on 9 November 2026. We have not yet run these steps on a live Shopify store. Two things are still to be confirmed there: that button and menu link fields keep `/#book` exactly as typed, and how the links behave on stores that add a language or country to the address, such as `/en-ca`. If either gives you trouble, use a link to your booking page and tell Resytech support what you saw.

Related [#related]

* [Add Booking to Your Website](/developers/integrate): the wizard that writes this code for you
* [Installation](/developers/installation): everything the script tag can do
* [Embed Booking UI](/developers/embed-booking-ui): more options for booking on a page
