All articles

AccountCraft Journal

Conditional Content in Shopify New Customer Accounts

Show or hide blocks in Shopify New Customer Accounts by tag, metafield, market, B2B status or account age. Setup steps, examples and testing, no code.

12 min read

Conditional content in a Shopify customer account means a block appears only for the customers it is meant for: a VIP perk for tagged customers, a wholesale notice for B2B buyers, a welcome offer for accounts created recently. In New Customer Accounts you can do this without Liquid or theme edits. AccountCraft’s Block Builder lets you set visibility rules on each block, based on customer tag, metafield, market, B2B status or account age. Free plan available.

AccountCraft
Show the Right Content to Each Customer
AccountCraft lets you add visibility rules to account blocks, using customer data already in Shopify to tailor each account experience.
Install free

TL;DR

  • New Customer Accounts are built from app extensions, not theme files, so the theme-based Liquid if customer approach does not carry over to account pages.
  • In AccountCraft you attach a visibility rule to a block. Supported conditions are customer tag, metafield, market, B2B and account age.
  • Customer data stays in Shopify. Rules read the data already on the customer record, and there is no separate customer database.
  • Test with a customer that matches the rule and one that does not, and check that the app block is placed in the editor and the latest version is live.
  • There is a free plan. Paid plans (Pro, Plus) are billed through Shopify, and current pricing is on the Shopify App Store listing.

Table of Contents

What conditional content means in a customer account

A customer account page is the area where a signed-in shopper sees orders, profile details and addresses. Conditional content is anything on that page that depends on who is looking.

On a classic theme, merchants did this in Liquid, Shopify’s template language. Shopify’s own partner guidance explains that the customer object is available across theme pages but only holds data when someone is logged in, which is what makes a check such as “does this customer have the VIP tag” possible. That pattern belongs to theme pages, and merchants moving off legacy customer accounts find it no longer applies to their account area.

New Customer Accounts work differently. Shopify’s documentation describes customer account UI extensions as the way apps add content to these pages. Extensions use three kinds of placement:

  • Block targets appear in locations the merchant chooses in the checkout and accounts editor.
  • Full page targets create their own page with a dedicated route, such as a wishlist or rewards page.
  • Static targets attach to a fixed spot tied to a feature, such as an order action button.

The same documentation says merchants can add up to three extensions to the same block target location. So conditional content in New Customer Accounts is really a question of which block, in which place, shows to whom. That is exactly what a visibility rule on a block answers.

What you can base a condition on

Shopify’s Authenticated Account API gives extensions read-only access to the signed-in customer’s ID and B2B company details. Its documented uses include tailored content for the signed-in customer and company-specific interface for B2B buyers. Beyond that, extensions can read profile information, order history and saved addresses through the Customer Account API, and metafields that have been declared.

In AccountCraft, the conditions you can set on a block are:

Condition What it checks Example use
Customer tag Whether the customer carries a tag Show a VIP benefits card to customers tagged “VIP”
Metafield The value of a customer metafield Show a pet care banner only when a “pet type” field is filled in
Market The market the customer belongs to Show a localized returns notice to one market
B2B Whether the customer is a business buyer Show reorder instructions to wholesale accounts
Account age How long the account has existed Show a getting-started card to new accounts

That covers most segmentation merchants ask for, and every condition reads from data already stored in Shopify.

Five conditional blocks worth building first

Start with the segments you already have. If you have tags, you already have the raw material.

A VIP or loyalty card by customer tag

Tag your best customers through a manual edit or an automation, then add a card block that only shows for that tag. Use the card for early access, a support contact or a perk reminder. Shopify’s UX guidance for customer accounts suggests personalizing with authenticated customer data while respecting privacy, and a tagged perk card is a plain example of that.

A wholesale notice for B2B buyers

B2B customers have different questions: minimums, net terms, reorder routes. A text or banner block visible only to B2B customers answers them where they already look. Retail customers never see it, so their page stays clean.

A profile prompt driven by a metafield

A block can ask for information only when it is missing. Bind a field to a customer metafield, for example a preferred size or a birthday, and show the update form only to customers whose value is empty. Once they fill it in, the prompt can be hidden by a second block that shows the saved value instead. AccountCraft’s customer metafields guide covers how editable fields tied to metafields work.

A market-specific message

Shipping times, return windows and legal wording often differ by region. Build one banner per market and set each to its market, instead of one long paragraph with caveats. Translations are supported, so each message can also appear in the customer’s language.

A welcome block for new accounts

Use account age to greet accounts in their first weeks with a wishlist introduction, a profile completion form or a first-order tip. After that window the block disappears without anyone editing the page.

How to set up a conditional block in AccountCraft

The steps below use the structure of the Shopify admin and the Block Builder. Exact labels can shift as Shopify updates its interface, so follow what you see on screen.

  1. Confirm New Customer Accounts are on. In your Shopify admin, open Settings and then Customer accounts, and check that New Customer Accounts is the selected experience. If you are still on legacy customer accounts, this is the migration to make first. Our guide on customizing Shopify accounts with New Customer Accounts walks through it.
  2. Install the app. Install AccountCraft free from the Shopify App Store. The free plan lets you start building.
  3. Prepare your segment data. Decide what separates your groups. For a tag condition, make sure the tag exists on the right customers. For a metafield condition, make sure the customer metafield is defined in Settings and then Custom data, so it can be read.
  4. Add a block in the Block Builder. Choose from the 14 block types: text, banner, button, card, update form, single field, record list, SMS consent, privacy consent, wishlist, image, video, spacer and divider. Write the content for the audience this block is for.
  5. Set the visibility rule. Choose the condition (tag, metafield, market, B2B or account age) and its value. Keep one rule per block at first, so you can tell which rule is doing what.
  6. Place the block in the editor. Block targets only render where the merchant has placed them in the checkout and accounts editor. Make sure the AccountCraft block sits on the page you want.
  7. Test as two customers. Sign in as one who matches the rule and one who does not. Both views should be what you intended.

If you build a banner for one segment, mind the image dimensions. This guide to Shopify image sizes helps you prepare artwork that stays sharp without slowing the page.

Why doing this without an app costs more

Placing conditional content in New Customer Accounts yourself means building a customer account UI extension: writing the code, declaring metafields in a configuration file, deploying and releasing a version, and requesting access to protected customer data. Shopify’s Metafields API documentation states that only metafields declared in the extension’s configuration are available, and that customer, company and company location metafields require level 1 protected customer data access. Each of those is a task that must be done correctly before a single rule works. With AccountCraft, you work through the Block Builder and use official Shopify extensions and APIs, so none of that setup lands on you.

Combining rules without confusing yourself

The trouble with conditional content is rarely a single rule. It is five rules written at different times that overlap.

  • Name blocks by audience. “VIP card, tag VIP” tells you more than “Card 3”.
  • Make segments exclusive where you can. If a customer can be both VIP and B2B, decide which message wins, then make the other block’s rule match only the remaining customers.
  • Give every block a clear purpose. One block, one message, one audience.
  • Keep a fallback. Customers who match no rule should still see a useful account page. Shopify’s Settings API guidance for extension developers recommends sensible default values in case the merchant has not configured anything, and the same thinking applies to your page layout: build the default view first, then add segment blocks on top.
  • Limit the number of conditional blocks per page. A page where every customer sees something different is hard to support. Two or three well-chosen segments beat ten.

Shopify’s UX guidance also advises writing content that represents your store rather than the app, so keep the voice of your blocks consistent with the rest of your brand.

Segmenting by tag, metafield or market means you are working with customer data, so treat each rule as a decision about what you collect and show. Shopify requires apps that access protected customer data to apply for access and pass review, and extensions run in a sandbox with no access to payment information or page HTML. AccountCraft keeps customer data in Shopify; there is no separate customer database.

Consent is a natural fit for conditional blocks. A privacy consent block or an SMS consent block can show to customers who have not yet made a choice, and a market rule lets you tailor the wording to the region. AccountCraft’s consent blocks are built to help you collect, record and honor customer consent through Shopify’s customer privacy APIs. Compliance remains your responsibility as the merchant, and questions about what your obligations are belong with a qualified lawyer. For the design side, see our guides on designing consent UX in New Customer Accounts and adding account consent without code. For the wider habits of protecting customer privacy, keep the data you segment on to what you actually use.

Testing and troubleshooting

A rule that looks right in the builder can still show nothing on the storefront. Work through these checks in order.

  1. Test both sides of the rule. Use a customer who should see the block and one who should not. A test customer with the tag, and one without, takes minutes to set up.
  2. Confirm the block is placed. Shopify’s developer community notes that block targets only render once the merchant has placed the block in the checkout and accounts editor.
  3. Check the data itself. Most failed conditions come from a tag with a different spelling, a metafield left empty, or a customer sitting in a different market than you assumed. Open the customer record in Shopify admin and read the actual values.
  4. Test across order states if your page shows order content. Shopify’s UX guidance recommends testing across fulfillment states, such as confirmed, on its way, delivered, partial, local pickup, gift cards and digital products, since order data differs between them.
  5. Re-check after any change to tags or metafields. If an automation changes tags, a customer’s view changes with it.

For measuring what your blocks do after launch, see our guide to adding, testing and measuring account widgets.

Where AccountCraft fits

Where AccountCraft fits

If your account page needs to say different things to different customers, you do not need to commission an extension. AccountCraft is a Shopify app with a visual Block Builder for New Customer Accounts. You add blocks, bind fields to customer metafields, and set conditional rendering by customer tag, metafield, market, B2B and account age. It uses official Shopify Customer Account UI Extensions, so there are no theme changes and no code.

There is a free plan. Paid plans (Pro, Plus) are billed through Shopify, and the Shopify App Store listing shows current pricing. You can also see the plans on the AccountCraft site.

AccountCraft

Install AccountCraft free from the Shopify App Store, build one block for your largest segment, and check it with two test customers. If it does what you wanted, add the next segment.

Our perspective

Most merchants we talk about accounts with start from the same point: every customer sees the same page, so the page says nothing in particular to anyone. The fix is not more content. It is the right content for the right person.

We think conditional content should be a merchant decision, not a development project. The data that decides who sees what, tags, metafields, market, B2B status, already lives in Shopify. A rule should read it where it is, rather than copy it into another system, which is why AccountCraft keeps customer data in Shopify and builds on the official extensions.

The same applies to consent. When a customer manages their own details and choices on their account page, you get information that is current because they keep it current. Start small: one segment, one block, one clear message. Then let the results tell you where to go next.

Ivan Signorile

FAQ

Can I use Liquid to show conditional content in New Customer Accounts?

Liquid conditions such as checking a customer tag work on theme pages. New Customer Accounts are extended through customer account UI extensions instead, as Shopify’s documentation describes. With AccountCraft you set the condition on the block in the builder and skip the code.

Which conditions does AccountCraft support?

You can show or hide a block by customer tag, customer metafield, market, B2B status and account age. Customer fields can be bound to customer metafields, so the data stays in Shopify.

Will a conditional block make my store GDPR compliant?

No app can do that for you. AccountCraft’s consent blocks help you collect, record and honor customer consent through Shopify’s customer privacy APIs, and compliance stays your responsibility. For specific obligations, speak to a qualified lawyer.

Why is my conditional block not showing?

First check that the block is placed in the checkout and accounts editor, then check the customer’s actual tag, metafield value or market in the Shopify admin. Test with a customer who matches the rule and one who does not.

Does it cost anything to try?

There is a free plan, so you can install and start building. Paid plans (Pro, Plus) are billed through Shopify, and the App Store listing has current pricing.

Sources