5 Shopify App Features You Can Build Natively with Liquid and Online Store 2.0

In this article (11)
A Shopify store can accumulate apps surprisingly quickly: one for product information tabs, one for color swatches, another for FAQs, a cart drawer, and an announcement banner. Each app might solve a real problem, but every additional dependency deserves a closer look.
The question isn’t “How do I remove every app?” It’s “Does this particular feature actually need an app?”
For many presentation-focused storefront features, the answer is no. A well-built Online Store 2.0 theme already offers sections, blocks, dynamic sources, and Shopify data objects. When the theme falls short, a small Liquid customization may be enough. More interactive features, such as a cart drawer, typically need JavaScript and Shopify’s Ajax APIs too.
In this guide, we’ll evaluate five common app use cases, build a reusable FAQ section, examine practical Liquid snippets for product content and swatches, and look at how cart-section updates work. We’ll also cover when keeping the app is the better engineering decision.
Scope: This is an educational implementation guide, not a client case study. The examples are intended for Shopify Online Store themes. Theme structure and JavaScript conventions differ, so test changes on a duplicate theme before publishing.
First, audit the theme—not the App Store
Before writing code, open Online Store → Themes → Customize and check the relevant template or header group. Depending on your theme, you may already have collapsible rows, swatches, an Ajax cart drawer, FAQ-like blocks, and an announcement bar.
A quick decision framework:
| Storefront requirement | Start here | Custom-code threshold |
|---|---|---|
| Product tabs or collapsible details | Product information blocks and dynamic sources | The theme can’t display the required per-product content or layout |
| Variant color swatches | Product option/category metafield swatches and theme settings | The theme doesn’t render the available swatch data appropriately |
| Slide-out cart | Existing theme cart drawer | You need behavior or design the theme doesn’t provide |
| FAQ accordion | Existing collapsible section | You want a reusable section with merchant-editable questions |
| Announcement bar | Header/announcement bar settings | You need a layout or conditional behavior beyond the theme’s options |
Why this matters: replacing an app with 300 lines of custom code isn’t automatically an improvement over enabling a checkbox already present in the theme editor.
1. Product tabs and collapsible content with metafields
Product-detail apps are often used for information that varies by product: materials, ingredients, size information, shipping notes, or care instructions.
Option A: Use the theme editor (recommended)
- In Shopify admin, create a product metafield definition such as
custom.care_instructions, using a rich text type. - Add the appropriate content to individual products.
- In your product template, find a Collapsible row or equivalent product-information block, if your theme provides one.
- Connect that block’s content setting to the metafield using the dynamic source control.
- Preview two products with different values—and one without a value—to confirm the behavior.
This keeps content editable in Shopify admin without hardcoding product-specific text in the theme.
Option B: Render a metafield with Liquid
If the theme lacks a suitable block, this small pattern renders an accessible native disclosure element. Add it in an appropriate product-section or snippet context where product is available:
{% assign care = product.metafields.custom.care_instructions %}
{% if care != blank %}
<details class="product-care">
<summary>Care instructions</summary>
<div class="product-care__content">
{{ care | metafield_tag }}
</div>
</details>
{% endif %}
The metafield_tag filter is appropriate for formatted rich-text metafields. The native <details> element provides keyboard-operable expand/collapse behavior without requiring an accordion library.
Important: this example creates a collapsible panel, not a tab interface. If you specifically need horizontal tabs, implement their keyboard interactions and semantics correctly rather than merely hiding content with CSS.
Best fit: product information, delivery notes, care guides, specifications, and other content that changes per product.
2. Native variant swatches using Shopify option-value data
A common older approach was to look up a product variant by option1 and read a custom hexadecimal color metafield. That breaks when Color is the second or third option, and it ignores newer Shopify swatch data.
Shopify’s Liquid product_option_value object exposes a swatch object when swatch information is configured. It can include a color or an image. The first step is to populate the relevant color option data in Shopify and confirm that the current theme supports it.
A small rendering snippet
Create snippets/option-value-swatch.liquid:
{% comment %}
Visual swatch only. Render this inside the label or control
provided by your theme's existing product variant picker.
Usage: {% render 'option-value-swatch', option_value: option_value %}
{% endcomment %}
{% if option_value.swatch.image != blank %}
<img
src="{{ option_value.swatch.image | image_url: width: 64 }}"
alt=""
width="24"
height="24"
loading="lazy"
class="option-swatch__image"
>
{% elsif option_value.swatch.color != blank %}
<span
class="option-swatch__color"
style="background-color: {{ option_value.swatch.color }};"
aria-hidden="true"
></span>
{% endif %}
Style the visual indicator in your theme stylesheet:
.option-swatch__image,
.option-swatch__color {
display: inline-block;
width: 1.5rem;
height: 1.5rem;
border: 1px solid #777;
border-radius: 50%;
vertical-align: middle;
}
.option-swatch__image { object-fit: cover; }
In the existing product-option loop, pass each option_value to this snippet, inside the theme’s established selection label or button. Keep the visible option name or an accessible text label alongside the visual indicator.
Why not replace the entire variant picker in a blog snippet? Selecting a swatch must coordinate with availability, product images, price changes, the variant ID submitted to the cart, and sometimes linked product options. Those behaviors depend on the theme. The code above deliberately handles presentation only; it is not a complete variant-selection system.
Also note that option_value.swatch can be empty. You need a text-only fallback and must test unavailable variants and products with multiple options.
Best fit: straightforward color/texture swatches when the theme supports Shopify’s option data but needs visual customization.
3. A reusable FAQ accordion section (complete example)
For general FAQs, you can often use existing collapsible blocks. If the theme doesn’t offer a convenient merchant-editable FAQ section, this is an example you can implement without an app or custom JavaScript.
Create sections/simple-faq.liquid and paste the following code:
<section
class="simple-faq"
{% if section.settings.heading != blank %}
aria-labelledby="faq-heading-{{ section.id }}"
{% endif %}
>
{% if section.settings.heading != blank %}
<h2 id="faq-heading-{{ section.id }}">
{{ section.settings.heading | escape }}
</h2>
{% endif %}
{% for block in section.blocks %}
{% if block.settings.question != blank %}
<details class="simple-faq__item" {{ block.shopify_attributes }}>
<summary>{{ block.settings.question | escape }}</summary>
<div class="simple-faq__answer">
{{ block.settings.answer }}
</div>
</details>
{% endif %}
{% endfor %}
</section>
<style>
#shopify-section-{{ section.id }} .simple-faq {
max-width: 760px;
margin: 0 auto;
padding: 2rem 1rem;
}
#shopify-section-{{ section.id }} .simple-faq__item {
border-bottom: 1px solid #d8d8d8;
padding: 1rem 0;
}
#shopify-section-{{ section.id }} summary {
cursor: pointer;
font-weight: 600;
}
#shopify-section-{{ section.id }} .simple-faq__answer {
padding-top: .75rem;
}
</style>
{% schema %}
{
"name": "Simple FAQ",
"settings": [
{
"type": "text",
"id": "heading",
"label": "Heading",
"default": "Frequently asked questions"
}
],
"blocks": [
{
"type": "question",
"name": "Question",
"settings": [
{
"type": "text",
"id": "question",
"label": "Question"
},
{
"type": "richtext",
"id": "answer",
"label": "Answer"
}
]
}
],
"presets": [
{ "name": "Simple FAQ" }
]
}
{% endschema %}
Now return to the theme editor, add the Simple FAQ section to a JSON-template page, and add question blocks. Store staff can reorder or edit those blocks without touching code.
This approach uses native HTML <details> and <summary> elements, so opening and closing answers works without a JavaScript bundle. You can adapt the styles to your design system. For production use, consider moving the CSS to a theme asset and testing how your theme styles disclosures.
Best fit: shipping, returns, sizing, and general-information FAQs. If you need advanced search, analytics, rules, multilingual content workflows, or support integrations, an app may still offer value.
4. Cart drawers: use Ajax APIs, not Liquid alone
A cart drawer is different from an FAQ. Liquid generates HTML on the server, but adding items, changing quantities, updating totals, and opening the drawer involve client-side behavior.
Start by checking whether the installed theme already has a cart drawer. Reusing that functionality is usually safer than building a second cart implementation.
If you’re customizing a theme’s existing drawer, Shopify provides two useful tools:
- Cart Ajax API for adding products or changing cart contents without navigating away.
- Section Rendering API for requesting fresh HTML for theme sections. Cart API requests can also return updated sections through bundled section rendering, avoiding an extra request.
For example, when the correct cart section ID is known, this helper requests updated HTML and replaces that section after a cart change:
async function refreshCartSection(sectionId) {
const url = new URL(window.location.href);
url.searchParams.set('sections', sectionId);
const response = await fetch(url.toString(), {
credentials: 'same-origin'
});
if (!response.ok) {
throw new Error('Could not refresh cart section');
}
const data = await response.json();
const html = data[sectionId];
const current = document.getElementById(
`shopify-section-${sectionId}`
);
if (!html || !current) {
throw new Error('Cart section not available on this page');
}
current.outerHTML = html;
}
This is a section-refresh helper, not a full drawer implementation. Call it after a successful cart operation only when the requested section exists in the current page’s rendering context. Dynamic section IDs differ between themes and templates; don’t assume a section is always named cart-drawer.
For a production drawer, you must also handle:
- Add-to-cart failures, inventory limits, and loading states.
- Quantity updates, removal, cart discounts, and displayed totals.
- Rebinding or delegating events after replacing section HTML.
- Opening/closing behavior, keyboard focus, escape-to-close, and screen-reader announcements.
- Cart icon/bubble updates and locale-aware URLs (for Ajax cart operations, Shopify provides
window.Shopify.routes.root).
Where possible, prefer bundled section rendering with the Cart Ajax API so the changed cart and its updated sections are returned together. Don’t add a second Ajax update system if the theme already manages these interactions.
Best fit: customized drawer layouts built on an existing, working theme cart. A sophisticated upsell, subscription, or promotion engine may still justify an app.
5. Announcement bars: start with the header settings
This might be the easiest app to avoid. Many Shopify themes already include an announcement bar that merchants can configure for text, links, colors, and sometimes multiple rotating messages.
Before making a new section:
- Open the theme editor.
- Check the Header or Announcement bar area.
- Add a message and optional link.
- Preview desktop and mobile, including long text and translations.
If your requirements are limited to messages like “Free shipping over $50” or a temporary campaign link, a built-in theme setting is often enough.
Write a custom section only when the theme lacks the feature or you need specific behavior the merchant can maintain through section settings. Reserve apps for capabilities such as scheduling across many campaigns, sophisticated audience targeting, or coordinated marketing automation.
Does removing an app always improve performance?
No. Some apps add storefront JavaScript, CSS, network calls, or third-party dependencies; others don’t affect the storefront in the same way. Likewise, poorly written custom code can be slower than a well-optimized app.
Measure rather than assume:
- Record a baseline: test representative product, collection, and cart pages before making changes.
- Inspect actual requests: use Chrome DevTools Network and Coverage to identify scripts and styles associated with the feature you’re replacing.
- Test comparable conditions: use similar devices, networks, pages, and test settings before and after.
- Check user experience: review Core Web Vitals, interaction behavior, and console errors—not only a single Lighthouse score.
- Validate the purchase journey: confirm variants, cart updates, discount behavior, and checkout navigation still work.
- Remove obsolete app code carefully: uninstalling an app doesn’t always mean every manually inserted theme customization has vanished. Inspect the duplicate theme before deleting anything.
You can run shopify theme check with Shopify CLI to identify common Liquid and JSON problems. It doesn’t replace manual browser testing.
A positive performance result is possible, but there is no credible universal claim such as “removing five apps always saves 1.4 seconds.” Results depend on the original apps, theme, configuration, and device.
What about cost savings?
Suppose a store pays $15 per month for each of five optional apps. That is a hypothetical $75 per month, or $900 per year, in subscriptions. Replacing suitable features natively might reduce those subscription charges.
But consider the total cost:
- Initial implementation and QA.
- Merchant training and ongoing content management.
- Maintenance during theme updates and redesigns.
- Opportunity cost if a paid app already handles complex business logic reliably.
For simple display features, native theme functionality often has a compelling cost/maintenance advantage. For complex systems, the app subscription may be cheaper than building and supporting your own alternative.
A safe app-replacement workflow
Use this checklist whenever you’re evaluating a feature:
- Identify what the app does and what merchants actually use.
- Check the theme editor and Shopify’s native features first.
- Duplicate the live theme before editing code.
- Map any data the app stores so it won’t be lost during migration.
- Implement the replacement on the duplicate theme.
- Test desktop, mobile, keyboard navigation, and relevant product configurations.
- Compare performance and functionality with the original setup.
- Confirm the replacement meets business requirements before cancelling the app.
- Document customizations for future theme updates.
When you should keep the app
Keep or replace an app with another specialized solution if it provides meaningful services beyond a storefront widget: subscription billing, sophisticated product personalization, external integrations, reviews with moderation workflows, loyalty systems, advanced analytics, or complex promotional rules.
A useful distinction is display logic versus business logic. Liquid sections are excellent for rendering merchant-managed storefront content. They are not a substitute for every backend workflow, external service, or checkout capability.
Final takeaway
Shopify Online Store 2.0 gives developers a strong set of native building blocks. For FAQs, product information, announcements, and many swatch presentations, the fastest and most maintainable solution may already be in the theme editor. When custom work is necessary, use Liquid, metafields, and sections for the markup—and Shopify’s Ajax APIs for the interactions that require them.
The goal isn’t to eliminate apps at all costs. It’s to choose the simplest solution that meets the store’s requirements, then test it properly.
Official documentation and further reading
- Shopify: Theme sections and section schema
- Shopify:
product_option_valueLiquid object - Shopify: Swatch Liquid object
- Shopify:
metafield_tagfilter - Shopify: Section Rendering API
- Shopify: Cart Ajax API and bundled section rendering
- Shopify: Remove or optimize render-blocking apps
- Shopify: Theme Check


