How Liquid Themes Work on LetBuyy

Build powerful, merchant-customizable storefronts with the Liquid template engine.

A template editor and a merchant-customizable storefront.
From Liquid templates to a merchant-customizable storefront. Concept illustration.
The developer’s field guide

Liquid is LetBuyy's template language for storefronts. It's a Ruby-inspired syntax that lets you render dynamic store data in HTML templates. Every LetBuyy theme is a Liquid theme — or a React theme with Liquid fallback.

01Write the template

Liquid Syntax Basics

Read store data{{ product.title }}
Illustrative storefront outputCeramic Vase
A template expression becomes storefront content. Example data.
{# Output — double curly braces #}
{{ product.title }}
{{ product.price | money }}

{# Tags — logic and flow control #}
{% if product.available %}
  <button>Add to Cart</button>
{% else %}
  <p>Out of Stock</p>
{% endif %}

{# Loops #}
{% for variant in product.variants %}
  <option value="{{ variant.id }}">{{ variant.title }}</option>
{% endfor %}

02Work with store data

Core Liquid Objects

  • product — current product with title, handle, price, variants, images, metafields

  • collection — current collection with products and metadata

  • cart — current cart state with items, total, item count

  • customer — authenticated customer with order history

  • shop — store settings, currency, timezone

  • request — URL, path, host information

03Shape the output

Useful Filters

Apply a filter{{ product.title | upcase }}
Illustrative storefront outputCERAMIC VASE
The filter transforms the display value. Example data.
{{ product.price | money }}              {# ₹1,499 #}
{{ product.description | truncate: 150 }}
{{ product.title | upcase }}
{{ image | image_url: width: 800 }}
{{ product.created_at | date: "%d %B %Y" }}

04Organise the theme

Theme Architecture

One theme. Reusable layers.
  1. 01layout/The page shell
  2. 02templates/The page type
  3. 03sections/The configurable blocks
  4. 04snippets/The reusable details
An illustrated map of the theme files described below.
  • layout/theme.liquid: Root HTML wrapper, includes <head> and <body>
  • templates/*.liquid: Page-specific templates (product, collection, index, cart)
  • sections/*.liquid: Reusable, merchant-configurable page sections
  • snippets/*.liquid: Small reusable partials (product card, price display)
  • assets/: CSS, JS, and image files
  • config/settings_schema.json: Defines merchant-editable theme settings

05Hand control to the merchant

Sections: The Merchant Customization Layer

Hero imageConfigurable section illustration
Image with textConfigurable section illustration

Sections make themes merchant-customizable without code. Define settings in the section's schema — text, colors, images, booleans — and merchants can edit them in the visual theme editor without touching Liquid.

React Hybrid Themes

LetBuyy supports hybrid themes where product listing and checkout use React for interactive performance, while editorial pages (homepage, about, blog) use Liquid for fast static rendering.

Arjun Mehta

Developer Relations

Builds developer tools and writes about APIs, webhooks, and extending the LetBuyy platform.

5 articles1 topics

Developers
All articles by Arjun
Weekly Newsletter

Commerce guides and platform updates

Commerce Insights Weekly

AI Commerce insights
India growth playbooks
Platform feature updates
Conversion rate tactics

Email subscriptions are not available yet. Follow new guides with your RSS reader.

Follow via RSS

Keep reading

Recommended for you

Email subscriptions are not available yet. Follow new guides with your RSS reader.

Follow via RSS