Skip to navigation

Shopify code snippets: headless and booking-app sites

Shopify code snippets: headless and booking-app sites

Use this guide if you have a headless Shopify storefront with your own frontend, or an in-person business with a Shopify website where customers buy or book through another app. Copy code from Burst on my website in your self-serve dashboard. You don’t need to install the Shopify app for this setup.

Sell and check out on a normal Shopify theme? The Burst Shopify app is the default. Use its app blocks instead of these snippets.

Headless storefront

Copy the placement code you want from Burst on my website and give it to the person who builds your storefront. Paste it into your own frontend code where the badge or banner should appear, then publish and test it on your live site. Shopify theme steps such as theme.liquid and Custom Liquid don’t apply to a headless frontend.

Shopify website with another booking app

Add the badge to the page where customers decide to buy or book, near your price or booking button. These steps are for your Shopify website, not for installing Burst inside your booking app.

1

Copy your button code

In your dashboard, open Burst on my website and copy the Product page badge code.

2

Open the theme editor

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

3

Add a Custom Liquid section

Open the page or product template where customers decide to book or buy and add a Custom Liquid section (or block) next to the price or booking button. Paste the button code.

4

Save and test

Save, open the page on your live site, and click the badge.

Adding the code to the product template puts the badge on every product page at once.

For a banner, copy the Landing-page banner code from Burst on my website and add it to a Custom Liquid section on the page you choose.

The dashboard also has Thank-you page and Order status page code. Use these only on confirmation or status pages you control that accept custom HTML. They aren’t Shopify checkout app blocks, and you can’t paste them into Shopify’s checkout editor. If your booking app owns those pages, check what custom code it allows. See Adding Burst to your website for what each placement does.