To add a SKU to your Shopify product page, first give every variant a SKU in the admin, then show it on the page with your theme's SKU block or a Custom Liquid block that prints the selected variant's SKU. Shopify themes hide the SKU by default. On most current themes this takes about ten minutes and no code files. On old "vintage" themes you either edit theme code or ask Shopify Theme Support to do it for free.

A SKU is a short code you give each version of a product. Shopify says SKUs are codes you use "internally to track your inventory and report on your sales," according to its SKU help page. This guide covers both jobs: adding the SKU, then showing it to shoppers.

It is part of our guide to products, variants, bulk edits and store copy.

What is a SKU, and how is it different from a barcode?

A SKU is a code you make up, while a barcode is a standard code that scanners read. SKU stands for "stock keeping unit." You can use both on the same product, because Shopify gives each one its own field (Shopify Help Center).

A variant is one buyable version of a product, like a Black tee in size Medium. The SKU lives on the variant, not on the product. So a tee with three sizes and four colors needs twelve SKUs, one per variant, as Shopify's own example shows.

Why should a print-on-demand store use SKUs at all?

SKUs make it easy to match an order to the exact item your supplier must print. Your supplier is the company that prints and ships for you, like Printify, Printful or Gelato. Shopify lists four reasons to use SKUs (source):

  • Better inventory tracking.
  • More accurate sales reports.
  • Faster picking and packing.
  • Apps that sync inventory often need them.

For a print-on-demand store, the big win is clean matching. When a customer emails "my hoodie came in the wrong color," the SKU tells you in one glance which design, blank and size they bought.

What SKU format should you use?

Use a short, consistent code where every part means one thing. Shopify's SKU guidelines say:

  • Keep SKUs short, such as no more than 16 characters.
  • Skip spaces, symbols and special characters, since they break search.
  • Use dashes or underscores to split the parts.
  • Avoid formats where 0 and 1 look like the letters O and I.
  • Make every SKU unique across the store.

Here is a simple format for a print-on-demand shop: product type, design number, color, size. Say you sell a hiking design as a tee. The SKU for a black medium is TEE-HK01-BLK-M. That is 14 characters, so it fits the limit.

Now plan for growth. Say you have 40 designs, each on a tee with 5 sizes and 4 colors. That is 40 × 5 × 4 = 800 SKUs. A two-letter, two-digit design code like HK01 gives you 100 numbers per niche (00 to 99), so you will not run out soon.

How do you add or edit a SKU in the Shopify admin?

You add it on each variant, in the Inventory part of the variant page. Shopify's steps are:

  1. In your Shopify admin, go to Products.
  2. Click the product.
  3. In the Variants section, click the variant.
  4. In the Inventory section, click SKU and type the code.
  5. Click Save.

How do you add SKUs in bulk?

Use the bulk editor for a few dozen variants, and a CSV file for more. In the bulk editor, select products, click Bulk edit, then add the SKU column with Columns (Shopify bulk editing).

Be careful with CSV imports. With "overwrite" on, a column that is present but blank wipes the old value, according to Shopify's CSV guide. Delete columns you are not changing instead of leaving them empty, and keep your export file as a backup.

What about SKUs your supplier already set?

Check before you rename them. Printify, Printful and Gelato usually fill in SKUs when they push a product to Shopify, and their apps may use those codes to match orders. If you rename a SKU, read your supplier's help page first so your orders still route to the right printer.

How do you show the SKU on the product page in a current theme?

On modern themes, you add it in the theme editor with no code files. Most themes in the Theme Store today are "Online Store 2.0" themes. They build pages from sections and blocks you can drag around.

Option 1: Use the built-in SKU block

Many current themes, including Shopify's free Dawn theme, ship a SKU block. Try this first:

  1. Go to Online Store > Themes and click Customize.
  2. At the top, switch the page picker to Products > Default product.
  3. In the product information section, click Add block.
  4. Pick SKU if it is in the list.
  5. Drag it under the title or price, then click Save.

This block updates when the shopper picks a new size or color.

Option 2: Use a Custom Liquid block

If there is no SKU block, add a Custom Liquid block in the same spot. Liquid is Shopify's theme language. Paste this one line:

SKU: {{ product.selected_or_first_available_variant.sku }}

This prints the SKU of the chosen variant, using the variant.sku property from Shopify's Liquid docs. On some themes the text only changes after the page reloads. Pick a different size and watch the SKU. If it stays the same, use Option 3 or 4.

If some variants have no SKU, the line shows "SKU:" with nothing after it. To hide it in that case, wrap it in a check: {% if product.selected_or_first_available_variant.sku != blank %}SKU: {{ product.selected_or_first_available_variant.sku }}{% endif %}.

For more on placing blocks, see how to add a section to a Shopify product page and how to add text to a product page.

How do you show the SKU on a vintage theme?

On older themes like Debut, Brooklyn, Minimal or Venture, you edit code in two places. Shopify's archived SKU tutorial walks through it:

  1. Go to Online Store > Themes, then Actions > Edit code.
  2. Open product-template.liquid (or product.liquid) in the Sections folder.
  3. Find {{ product.title }} and paste the SKU line below it.
  4. Add the theme's JavaScript so the SKU changes when the variant changes.

That tutorial dates from 2021 and lists different JavaScript for each old theme. Duplicate your theme before you edit, so you can switch back if something breaks.

Can Shopify Theme Support add it for free?

Yes, if your theme is compatible. Each paid Shopify account gets 60 minutes of free design time from Theme Support, and "Display variant SKU on product page" uses 15 of them, according to Shopify's Theme Support list. Your theme must have sections on every page to qualify.

Which way should you pick? A time comparison

Pick by your theme, not by your skill. Here is a rough guide for one store owner:

Method Your time Code? Updates on variant change?
Built-in SKU block About 5 minutes No Yes
Custom Liquid block About 10 minutes One line Depends on the theme
Edit vintage theme code 30-60 minutes Yes Yes, with the JavaScript
Theme Support A support chat No Yes

These times are our estimates for a first try, not Shopify figures. The 15 minutes of Theme Support time comes from Shopify's list. A paid app or a hired Shopify Expert also works, but costs money each month or per job.

Should you show SKUs to shoppers at all?

Show them if shoppers reorder or ask about exact items. Shopify says the SKU display "works well for stores with many repeat customers, or stores that sell products made by a manufacturer" (source).

Here is the tradeoff for a print-on-demand store:

  • Pro: support gets faster. A shopper can quote TEE-HK01-BLK-M instead of "the green-ish one with mountains."
  • Pro: wholesale and team buyers can reorder the same item.
  • Con: if your SKU includes the supplier's own code, a sharp shopper can look up the blank and compare prices.
  • Con: it adds one more line to a busy page.

So use your own SKU format, not the supplier's, if you plan to show it. If your page already feels crowded, put the SKU in a details tab instead. Here is how to add tabs to a Shopify product page.

How can shoppers and staff search by SKU?

Staff can search by SKU in the admin search bar and in Shopify POS. Shoppers can only search by SKU if you add the Search & Discovery app or edit theme code, according to Shopify.

Searches must match case and spacing exactly. Shopify notes that "ABC123" and "abc123" count as different SKUs (source).

Why won't SKUs sync with your apps?

Most sync problems come from missing or mismatched SKUs. Shopify's troubleshooting list says to check:

  • Every variant has a SKU, not just the main product.
  • The app has permission to read product data.
  • No spaces, symbols or mixed case sneaked in.
  • The app reads Shopify's SKU field, not a different ID.

If you sell from more than one location, use the same SKU for a variant at every location. Then track stock per location. Our guide to Shopify inventory available vs on hand explains what those stock numbers mean.

Let Victor build listings with clean variants

Victor is the AI employee at PodVector AI. He turns a design into a product at Printify, Printful or Gelato and builds the Shopify listing end to end: variants, supplier cost, mockups, title, description and tags. When you drop a new collection, he builds every listing the same way, so the catalog stays tidy as it grows.

He also handles the orders those SKUs point to. He finds stuck supplier orders, asks for reprints on items that arrived wrong, and answers "where is my order" emails. Try Victor free.

FAQs

Does Shopify show the SKU on the product page by default?

No. Shopify says "the variant SKU isn't visible on product pages" until you add it (source). You add it with a theme block, a Liquid line or a code edit.

Can I show the SKU on collection pages too?

Yes, but it takes a code edit. Collection grids show product cards, and most themes have no SKU block for them. You would add the Liquid line to the product card file, and it would show the first variant's SKU only.

Why does my SKU show blank on the page?

The selected variant has no SKU. Add one in Products > variant > Inventory, or use the if ... != blank check above so the label hides when it is empty.

Will showing SKUs help my SEO?

Not in any direct way. The SKU is a short code, not a phrase people search for. Its value is support and reorders, not rankings.

Do I need a SKU on every variant?

Shopify does not require SKUs, but they work best when every variant has a unique one (source). A tee in 3 sizes and 4 colors needs 3 × 4 = 12 SKUs.