> ## Knowledge Base Index
> Fetch the complete knowledge base index at: https://help.hoppyapps.com/sitemap.xml
> Use this file to discover available pages before exploring further.
> Pure-Markdown content can be obtained by appending a '.md' suffix to the content URLs listed in the sitemap (without the trailing slash).

# 🔗 How to Link Directly to a Booking Calendar from Any Button

Want a button in an email, a social bio, a banner or a page builder to take people straight to your booking calendar? 🔗

Hoppy Appointments gives every service two ready-made options: a **direct link** and a **button attribute**.

---

# **⚠️ Before You Begin**

Make sure you have:

* The **Hoppy Appointments** app installed  
* An active, saved service connected to a Shopify product  
* The app embed enabled in your theme (the booking calendar must already work on your store, see **How to Embed the Appointment Booking Calendar on Your Store**)

---

# **🛠️ Step 1 — Open the Integration Window**

1. Open the **Hoppy Appointments** app  
2. You land on the **My services** page  
3. Next to the service, click **More**  
4. Click **Integration**

A window opens with the options below. If your product has several variants, a **Variant** dropdown appears at the top. Pick the variant the link should open.

---

# **🔗 Option A — Direct Link**

The **Direct link** field contains a link you can share anywhere, such as an email button, a social profile or a QR code.

1. Click **Copy** next to **Direct link**  
2. Paste it into your button, email or message

When someone opens it, they land on your store's product page for that service and the booking calendar opens automatically. The link is cleaned from the address bar afterward, so a refresh does not reopen it.

---

# **🔘 Option B — Element Attribute**

Use this when you have a button or link inside a page builder or a custom theme section.

1. In the **Element attribute** field, click **Copy**  
2. Paste the snippet into your page builder's custom HTML, or copy the two attributes onto an existing button or link

The snippet looks like this:

`<button data-hoppy-book="SERVICE-ID" data-hoppy-variant="VARIANT-ID">Book now</button>`

Your real service ID and variant ID are already filled in when you copy it. Clicking any element with the `data-hoppy-book` attribute opens the booking calendar in a popup on that page. The `data-hoppy-variant` attribute is optional. If you leave it out, the first variant is used.

---

# **🧩 Option C — Inline Widget**

The window also reminds you that you can embed the calendar directly on a page. Add the **Appointment Calendar** block in the theme editor (**Online Store → Customize → Add block → Apps**) and paste your service ID. See **How to Find Service ID** and **How to Embed the Appointment Booking Calendar on Your Store**.

---

# **✅ Expected Result**

* The direct link opens your store with the booking calendar already open  
* Buttons with the attribute open the calendar popup when clicked

---

# **⚠️ Important Notes**

* **The app embed must be on.** The calendar opens through your theme's app embed. If it is off, the link only opens the product page.  
* **The service must be active.** If the service is turned off or archived, the direct link shows an "Invalid booking link" message that says the link is no longer available.  
* **Each variant has its own link.** Pick the variant first, then copy.  
* **Attribute buttons work on the same store only.** The element must sit on a page of the store where the app embed is active.  
* **Do not rebuild the link by hand.** Always copy it from the **Integration** window.

---

# **🐞 Troubleshooting**

## **The link shows "Invalid booking link"**

Turn the service on (**More → Turn on**), make sure it is not archived, and that it still has a connected product.

## **The link opens the product page but the calendar does not open**

Check that the **app embed** is enabled for your published theme. See **Appointment Booking Calendar is Not Showing on My Store [Fixed]**.

## **My button does nothing**

Make sure the attribute is on the clickable element itself, that the service ID is correct, and the page has the app embed enabled.

---

# **🎉 Final Result**

✅ You can send customers straight into your booking calendar from emails, bios and ads  
✅ Any button in a page builder can open the booking popup  
✅ Each service and variant gets its own link