Growing on Shopify

Apps vs theme code: what to build in

Build it into your theme when the job is about how something looks or what message shows, and it doesn't need to store data or connect to another service. Use an app when the job needs its own data, a backend or a connection to another system, or when your team needs to change it every week without a developer. Before either, check whether Shopify already does it.

Most growing stores end up with the balance wrong. Apps get installed for small display jobs because it's quicker on the day, and a year later the store is paying monthly fees for labels and banners while every page loads extra scripts.

How do you decide between an app and theme code?

For each feature, ask four questions in order.

  1. Does Shopify already do it? Metafields, metaobjects, theme blocks, Shopify Flow and the Search & Discovery app cover more than most people expect. Native features cost nothing extra and don't add third-party scripts.
  2. Does it need to store data or talk to another service? Reviews, subscriptions, loyalty points, returns, warehouse and stock integrations all need somewhere to keep data and logic that runs outside your theme. That's app territory.
  3. Is it about display or messaging? Labels, badges, banners, notes on certain products, swatches and size guides are presentation. They belong in the theme.
  4. Who changes it, and how often? If your team updates it weekly, it needs an admin screen. That can be an app, but often it's theme code reading from metafields or theme settings, so the team edits content and the code stays the same.

Examples from real stores

These are all jobs I've built into theme code for retail clients instead of adding another app.

  • Final sale labels. A fashion retailer tags products as final sale. The theme reads that tag and shows a label on the product page, in the cart drawer and in the order confirmation email, along with a returns policy note for those items. One tag drives all of it, and there's no app to pay for.
  • Colour swatches. The same store had more colours than the theme would display, and some patterned colours showed as plain grey. Both were theme fixes: a higher swatch limit and correct colour mapping.
  • Free gift and bundle messaging. A baby and kids brand runs regular promotions. A free gift banner and bundle messaging are driven by product tags in the theme, so switching a promotion on or off is a tag change, not an app setting.
  • Conditional order confirmation content. The same brand's order emails show different notes depending on what was ordered. Shopify's notification templates use the same Liquid language as themes, so this is a template change rather than an email app.
  • Email fonts. Custom web fonts often don't display in email apps. Setting a web-safe fallback in the notification templates fixed how order emails looked across devices.

Each of these was a small, contained job. None needed a database or an outside service, which is why none needed an app.

When is an app the right call?

Apps earn their place when they do something your theme can't. Common examples:

  • Product reviews: collecting, moderating and displaying reviews, plus review request emails.
  • Subscriptions and loyalty: recurring billing and points balances need a backend.
  • Returns and exchanges: a returns portal handles labels, refunds and store credit. One of my clients uses a returns app for exactly this, and I wouldn't replace it with theme code.
  • Search and merchandising: once you outgrow Shopify's own search and filters.
  • Integrations: a 3PL, ERP, POS or wholesale platform.

The test isn't "apps bad, code good". It's matching the tool to the job.

What are the trade-offs?

App Theme code
Cost Monthly fee, usually for as long as you use it One-off build
Speed Often loads scripts on every page Loads only what the feature needs
Design Styled by the app, sometimes hard to match your brand Matches your theme
Changes Your team can usually edit in the app's settings Content can be edited via metafields or settings; logic changes need a developer
Theme updates Usually survives a theme update Custom code must be carried over when you update or replace the theme
Removal Uninstalling doesn't always remove the code it added Fully under your control

Two points from that table catch people out.

Uninstalled apps can leave code behind. Snippets and scripts added to the theme don't always disappear when the app does. If your store has had a lot of apps come and go, it's worth checking for leftovers.

Custom theme code needs to be kept track of. When you update your theme to a new version or move to a new theme, customisations don't come across automatically. Keep a record of what was changed and where, ideally in version control, so it can be carried over.

Is theme code cheaper than an app?

As an illustration only: an app at $20 a month costs $480 over two years, and keeps costing after that. If the same job is a small theme change, the one-off build often costs less over the life of the store, without the extra script. The numbers change for every feature, but it's worth doing the sum for each display-only app you pay for.

What to do next

  1. List every installed app with what it does and what it costs each month. My guide to auditing your own Shopify store covers this step.
  2. Mark each one as data and backend (keep), display only (candidate to move into the theme) or duplicate (another app or a native feature already does it).
  3. Move display-only jobs into the theme one at a time, and test speed before and after each change.
  4. Remove any leftover code once an app is gone.

If you'd rather have this done for you, it's the kind of work covered by Shopify design and development and an ongoing support retainer.

Not sure which of your apps could go? Book a Growth Audit →

Want this handled on your store?

A monthly retainer covers fixes like this, month after month.

Start a retainer

More in this cluster