Qrable · Your price list on your own website

Show your price list on your own website

Already have a website, a site builder or a headless shop front? Your Qrable price list can show there too, and it stays up to date: change a price in Qrable and every page that shows it changes with it.

Paste one snippet

For any website where you can paste HTML. Two lines, no coding.

<script src="…/app/plugins/satori-manifest/build/js/price-list-element.js" defer></script>
<manifest-price-list slug="harbour-kitchen"></manifest-price-list>

Replace harbour-kitchen with the end of your own Qrable page address.

Use the data

For developers and headless sites: read the price list as JSON, with or without the look you set up in Qrable, and build it your way.

GET …/wp-json/satori-manifest/v1/manifests/harbour-kitchen

Five ways to show it

Show everything, or only the part that belongs on that page of your site: the drinks on the bar page, the desserts on the dessert page.

What you wantSnippetGuideExample
The whole menuslug="harbour-kitchen"HowSee it
One or more headings (e.g. Main Menu)heading="Main Menu"HowSee it
Every section, without headingsData onlyHowSee it
Chosen sections (e.g. Starters, Mains)section="Starters, Mains"HowSee it
A single section (e.g. Desserts)section="Desserts"HowSee it

The snippet's settings

SettingWhat it does
slugRequired. The end of your Qrable page address, e.g. harbour-kitchen.
headingOnly these headings, separated by commas.
sectionOnly these sections, separated by commas.
levelTitle tag level, 1–5 (default 2), to fit your page's own headings.
formatstyled (default): looks as it does on your Qrable page, with your colours, fonts, design, menu layout and allergen icons. json: plain data with a neutral look, for websites that style it themselves.
unstyledWith format="json": leave out the neutral look too.
siteOnly needed if the script is loaded from somewhere other than Qrable.

Anything you put between the tags shows while the list loads, and stays if it can't load, so a link to your Qrable page is a good fallback:

<manifest-price-list slug="harbour-kitchen">
	<a href="…/harbour-kitchen/">See our menu</a>
</manifest-price-list>

The look

By default the list looks as it does on your Qrable page: your brand colours and fonts, your design, each menu's layout (such as dotted leaders) and its switches (prices, descriptions, badges). Change them in Qrable and the list on your website follows. Everything also carries plain class names, so your website's CSS can adjust it.

ClassPart
.mpl-heading, .mpl-heading__titleA heading (e.g. Main Menu) and its title
.mpl-section, .mpl-section__titleA section (e.g. Starters) and its title
.mpl-item, .mpl-item__label, .mpl-item__priceA dish or product, its name and price
.mpl-description, .mpl-badgeDescriptions and badges such as "Gluten free"
.mpl-allergens, .mpl-allergenAllergen icons

For developers

Options on every request

OptionValuesWhat it does
formatjson (default), styledjson gives the data only. styled gives the same data plus the look the client set up in Qrable: style (colours, fonts and CSS for every part), each heading's and section's own css, allergen icons and the allergen key. Always JSON.

Errors

StatusCodeWhen
404rest_manifest_not_foundNo published price list page with that slug.
404rest_section_not_foundA single section was asked for and none matches.
400rest_invalid_paramA bad option, e.g. format=xml.

A filter that matches nothing (e.g. ?name=Nope) returns 200 with an empty list.

The styled response

With ?format=styled the same data comes with:

An item

{
  "type": "item",
  "label": "Harbour Cheesecake",
  "description": "With ice-cream",
  "price": "6.50",
  "price_display": "6,50 €",
  "price_prefix": "",
  "badge": "",
  "allergens": [ { "key": "milk", "label": "Milk", "colour": "#…" } ],
  "image": null
}

An item with no price is a sub-heading inside its section. A photo row has "type": "image".