# ▶️ Use Liquid templates

Source: https://support.storeconnect.com/articles/how-to-use-liquid-templates · Last modified 21 August 2026

Video: https://vimeo.com/1213698877?share=copy&fl=sv&fe=ci

Liquid templates sit between your store's data and what a visitor sees. Each template holds the HTML for part of your storefront, plus the Liquid code that pulls in live data such as products, categories, and cart contents. Watch this video if you are customizing a theme for the first time and want to know which template to edit and how to get data into it.

For full theme template information, see [Liquid theme components](theme-components) and [Theme templates](theme-templates).

## Code snippets referred to in the video

### Low stock badge snippet

This is the body of the snippet template, saved as a **Theme Template** with the key `snippets/low_stock_badge`. It reads the product on the current page and shows a warning only when the product tracks inventory and has fewer than five units left to sell.


```liquid

{% if current_product.track_inventory? and current_product.total_available_to_sell < 5 and current_product.total_available_to_sell > 0 %}
<div>
<strong>⚠️ Only {{ current_product.total_available_to_sell }} left in stock!</strong>
</div>
{% endif %}
```


### Render the snippet

Add this line to the product page template wherever you want the badge to appear. The name in quotes is the snippet's key without the `snippets/` prefix.


```liquid

{% render "low_stock_badge" %}
```

---

## Follow StoreConnect

- [Email Newsletter](https://getstoreconnect.com/c/lp-newsletter)
- [LinkedIn Newsletter](https://www.linkedin.com/build-relation/newsletter-follow?entityUrn=7444956928444862464)
- [YouTube](https://www.youtube.com/channel/UCngKdP2x8l1wcbAKW3tvU8g)
- [LinkedIn](https://www.linkedin.com/company/storeconnect)
- [X / Twitter](https://x.com/storeconnecthq)

## Popular Links

- [Partners](https://getstoreconnect.com/partners)
- [News](https://getstoreconnect.com/articles/news)
- [Events](https://getstoreconnect.com/articles/events)
- [Feature Comparison](https://getstoreconnect.com/how-we-compare)
- [Download a free trial](https://appexchange.salesforce.com/appxListingDetail?listingId=a0N3A00000FMkeKUAT)
- [Book a Demo](https://getstoreconnect.com/contact)

## Documentation

- [Help documentation](https://support.storeconnect.com/help-documentation)
- [AI agents](https://support.storeconnect.com/ai)
- [Videos & tutorials](https://support.storeconnect.com/videos-tutorials)
- [Developer reference](https://support.storeconnect.com/developer-reference)
- [Release notes](https://support.storeconnect.com/release-notes)
- [Troubleshooting](https://support.storeconnect.com/troubleshooting)
- [Trust Center](https://trust.getstoreconnect.com/)
- [Status Page](https://status.storeconnect.com/)

## Contact

- info@getstoreconnect.com
- US +1 415 745 3230
- AUS +61 2 8365 2308

100 S Ashley Dr, Suite 600-2461
Tampa FL 33602-600 USA

Level 22, Sydney Place
180 George Street
Sydney, NSW, 2000, AUS

---

StoreConnect Support — https://support.storeconnect.com/articles/how-to-use-liquid-templates