# Add PiGi booking to your Shopify store

The PiGi Booking app for Shopify puts the PiGi booking wizard, gift vouchers, courses, course dates, activities and your team on your Shopify store as theme blocks, plus a floating Book now button and the chatbot. You install the app in Shopify, click "Link in PiGi", confirm in PiGi's Integrations screen, then add blocks in the theme editor. There is no key or password to paste.

Source: https://help.pigi.io/guides/integrations/website/shopify

## Quick answers

**Can I see my PiGi bookings and takings in Shopify?**
Yes. Open **PiGi Booking › Stats** in your Shopify admin. The same four panels as the
WordPress plugin, each with its own date range compared with the span before it: **Money &
bookings**, **Flights flown**, **Gift vouchers** and **Upcoming bookings**. Totals only, no
customer names. Shopify decides which of your staff can open the app; PiGi shows the
figures only while the PiGi account that linked the store is an admin of your school.

**Is there a PiGi app for Shopify?**
Yes — **PiGi Booking**. Install it in your Shopify admin, open it and click **Link in
PiGi**. PiGi opens the **Shopify** integration and asks you to confirm with **Link
store**. You do not paste a key or password.

**Where is the Shopify integration in PiGi?**
**Settings → Communication → Integrations → Shopify**. The tile shows how many stores
are linked, when each last synced, and has **Sync now** and **Unlink**.

**What's in the PiGi Booking app in Shopify?**
Four pages in the left menu under **PiGi Booking**: **Overview** (a setup guide that
ticks itself off, what PiGi has copied into the store, **Sync now**), **Add to your
store** (the app embed and every block, and where each can go), **Gift vouchers** (whether
vouchers are ready to sell, and where to put the voucher shop) and **Settings** (the link
to your school, sync, brand colours, and the Liquid for developers).

**How do I put the booking wizard on its own page in Shopify?**
In the app, open **Add to your store**, pick **Booking wizard**, choose **Its own page**,
name the page (for example "Book") and click **Create page**. The app makes the page with
its own template, then **Add block in theme editor** opens that template with the block
added: click **Save**. Then add the page to your main menu. If the theme editor opens a
different template, choose **page.pigi-booking** from the template menu at the top.

**What colour do the PiGi blocks use in Shopify?**
Your store's brand colour (**Settings → Brand** in Shopify), unless a block sets its own
colour in the theme editor. With no brand colour set, PiGi orange. Clear a block's colour
to make it follow the brand again.

**Which PiGi blocks can I add to my Shopify theme?**
**Booking wizard**, **Book now button**, **Gift vouchers**, **Course**, **Courses**,
**Book a course**, **Upcoming course dates**, **Activities section**, **Team** and
**PiGi data (JSON)**. Find them in the theme editor under **Add section** or **Add block**
→ **Apps**.

**How do I show a floating Book now button and the chatbot on every page?**
Switch on the **PiGi Booking** app embed in the theme editor under **Theme settings** (the
gear icon) → **App embeds**, then **Save**. The chatbot only appears when the chatbot is
switched on in PiGi.

**How often does PiGi update my Shopify store?**
PiGi copies your courses, activities, course dates, team and gift voucher options into
the store every 30 minutes. Click **Sync now** in the app or on PiGi's Shopify tile to
copy straight away.

**The Link in PiGi page says "This link can't be used".**
The link is valid for 30 minutes and works once. Open **PiGi Booking** in your Shopify
admin again and click **Link in PiGi** for a new one.

**Can I use one PiGi school on more than one Shopify store?**
Yes. Each store links separately, and PiGi's Shopify tile lists every linked store.
A store can only be linked to one school; linking it to another school moves it.

## What this is

The PiGi Booking app lets a school sell bookings on its existing Shopify store. The
booking wizard, gift voucher wizard, course pages, activity grid and team grid come from
PiGi, so prices, dates and staff only need updating in PiGi. Bookings made on the store
arrive in PiGi like any other online booking. Payment for bookings goes through your PiGi
payment gateway, not Shopify checkout.

## Before you start

- The **admin** role in PiGi.
- Staff access to the Shopify admin with permission to install apps and edit the theme.
- At least one activity or course set up and bookable online in PiGi.
- An Online Store 2.0 theme (for example Dawn or Horizon) — app blocks need one.

## Install the app and link it to PiGi

1. In your Shopify admin, install **PiGi Booking** from the install link PiGi gave you.
   Approve the permissions Shopify shows.
2. Open **Apps → PiGi Booking**. Under **Link this store to your PiGi school**, click
   **Link in PiGi**. A new tab opens.
3. Sign in to PiGi if asked. If you belong to more than one school, choose the school.
4. PiGi opens **Settings → Communication → Integrations** with the **Shopify** drawer and
   asks **Link <your store> to <your school>?** Click **Link store**.
5. PiGi shows "<your store> is linked to <your school>". Click **Done**.
6. Go back to the Shopify tab and click **I've linked it: refresh**. The app now shows
   **Linked to <your school>** with a **Last copied** time.

## Create a Book page with the booking wizard

1. In Shopify, open **Online Store → Pages** and click **Add page**.
2. Enter the title `Book`, leave the content empty, set **Visibility** to **Visible**, and
   click **Save**.
3. Open **Online Store → Themes** and click **Customize** on your live theme.
4. In the page picker at the top of the editor, choose **Pages**, then **Create template**.
   Name it `booking`, base it on **Default page**, and click **Create template**.
5. In the left-hand panel, click **Add section** → **Apps** → **Booking wizard**.
   Remove the theme's own page content section if you want only the wizard.
6. Click **Save**.
7. Back in **Online Store → Pages**, open **Book**, set **Theme template** to
   **booking**, and click **Save**.

## Add the Book page to your menu

1. In Shopify, open **Content → Menus** and click **Main menu**.
2. Click **Add menu item**. Enter the label `Book`, pick **Pages → Book** as the link,
   and click **Add**.
3. Drag the item where you want it and click **Save menu**.

## Add other PiGi blocks

1. In the theme editor, open the page or template where the block should go.
2. Click **Add section** (or **Add block** inside a section) → **Apps**, and pick a block.
3. Fill in the block's settings in the right-hand panel and click **Save**.

| Block | What it shows | Main settings |
|---|---|---|
| Booking wizard | The booking wizard in the page | Preselect an activity or course, Colour scheme, Accent colour, Starting height, Widest, Space above and below |
| Book now button | A button that opens the wizard in a pop-up | Label, Preselect an activity or course, Alignment, Button colour, Corner radius, Width |
| Gift vouchers | The gift voucher wizard | Only these vouchers, Colour scheme, Accent colour, Starting height |
| Course | One course's page content | Course, Price prefix, what to show |
| Courses | A grid of your courses | Columns, Price prefix |
| Book a course | A Book now button for one course | Course, Label, Alignment, Button colour |
| Upcoming course dates | Course dates grouped by month | Only these courses, Months ahead, Book buttons |
| Activities section | A grid of everything bookable | Only these kinds, Columns, Book buttons |
| Team | Your team, by section | Only these sections, Columns, Show roles |
| PiGi data (JSON) | Your PiGi data for theme developers | Data, Course reference, Element id |

## Turn on the floating button and chatbot

1. In the theme editor, click **Theme settings** (the gear icon) → **App embeds**.
2. Switch on **PiGi Booking**.
3. Under **Floating Book now button**, leave **Show on every page** on, or list pages in
   **Except on**. Set **Label**, **Button colour**, **Corner radius** and **Text size**.
4. Under **Booking wizard**, set the **Accent colour** and **Colour scheme** used by every
   Book now button.
5. Under **Chatbot**, leave **Show the chatbot** on to show PiGi's chatbot.
6. Click **Save**.

## Test it

1. Open your store in a private window, click **Book** in the menu and choose an
   activity. The PiGi booking wizard should list your activities and dates.
2. In PiGi, open **Settings → Communication → Integrations → Shopify** and check your
   store shows **Linked** with a recent **Last synced** time.

## Troubleshooting

- **"Your PiGi booking page is in test mode"** in the app. Click **Open PiGi settings**
  and switch your booking page live in PiGi.
- **The blocks are empty.** The store is not linked, or the first copy has not finished.
  Click **Sync now** in the app.
- **"Part of the last sync didn't go through"**. Click **Sync now**. If it repeats,
  contact PiGi support.
- **"The Shopify app isn't set up on this server yet, so stores can't connect."** Contact
  PiGi support.
- **The wizard is narrower than the page.** Raise the block's **Widest** setting.

## Known limitations

- Unlinking from PiGi (**Unlink**) or the app (**Settings → Unlink → Unlink and remove data**) blanks the
  PiGi blocks and removes PiGi's data from the store. The app stays installed.
- Uninstalling the app marks the store **Uninstalled** in PiGi.
- Bookings are paid through your PiGi payment gateway, not Shopify checkout, so they do
  not appear as Shopify orders.
- In the theme editor preview, the wizard and gift voucher blocks may show a placeholder;
  check them on the live store.

## Related

- [Redeem Shopify gift cards in PiGi](shopify-gift-cards.md)
- [Add PiGi booking to your WordPress site](wordpress-plugin.md)
