Add SKU metafield to Product Title

Topic summary

A merchant requests that Shopify make product SKUs available as a dynamic source in the theme editor, similar to existing options like Title, Vendor, and Description. Currently, SKUs cannot be selected from the dynamic sources panel when customizing product templates.

Current Workaround Issues:

  • Merchants must create duplicate SKU metafields and manually input SKU data twice
  • This creates potential for employee errors when adding new products
  • Code-based solutions require re-implementation after theme updates

Proposed Solutions:

  • Community members suggest adding liquid code ({{ product.selected_or_first_available_variant.sku }}) to product templates
  • For products with multiple variants, JavaScript modifications are needed to dynamically update SKU display
  • Automation apps like Shopify Flow could sync SKUs to metafields automatically

Status: The discussion remains open with no official Shopify response. The merchant prefers to wait for native dynamic source support rather than implement code-based workarounds, particularly since Shopify’s free themes receive frequent updates. Multiple participants agree this would be a valuable feature to reduce redundant data entry.

Summarized with AI on October 23. AI used: claude-sonnet-4-5-20250929.

Shopify,

Can you please allow for the SKU to be selected as a metafield so that it can be added to the theme customization without having to create a SKU product metafield to incorporate the same thing.

It’s double work.

1 Like

@HappyMerchant Good point, SKUs aren’t yet selectable as dynamic sources in the editor. As a workaround, you can add this in your product template:

<p>SKU: {{ product.selected_or_first_available_variant.sku }}</p>

This pulls the SKU directly without needing a metafield. Hopefully, Shopify allows direct access in future updates.

1 Like

@HappyMerchant if you want to dynamically change the SKU base on selected variant if it have different SKU information it needs to be change and update in the js file, otherwise if it’s only one SKU you can use what @pere01 solution gave, mostly theme nowadays have already block built in the product page for SKU or options in product title block to turn on sku, vendor, breadcrumbs

1 Like

As @devengr pointed out, it sounds like a theme/code issue rather than a Shopify issue.

@HappyMerchant Keep in mind others can’t read minds, be as clear as possible in the problem or you create a lot of guess work for yourself and others. And that will always save you a lot of money in the long term.

Do you mean for use in the collection filters such as in the shopify search and discovery app?

Don’t manually copy skus to metafields, use an automation app like shopify-flow(it’s free made by shopify), or the mechanic app, to automatically put the sku into a metafield.

Or use the CSV import, or even the bulk editor to rapidly work with multiple variants.

Keep in mind for filtering if there’s a lot of skus that can create a very bad experience for customers having to scroll a long list versus building a proper sku lookup.

Agreed. Making SKU a selectable metafield would streamline the workflow and eliminate the redundancies. Lots of merchants also use SKUs dynamically in themes, so native metafield access would mean you wouldn’t have to create identical custom fields. Native support would bring parity and consistency for customization of store and product templates.

1 Like

Thank you! This response was helpful but not what I am looking for. I do not want to edit any of my theme’s code because when it is updated, I would have to go back and edit the code again with all the same code. That becomes redundant. I will wait for Shopify to make SKU’s selectable as a dynamic source instead.

However, there may be some store owners willing to use your solution. Can you explain where they would place the code within their theme please?

Thanks for your input.

It’s not quite a theme issue. SKU’s are not available as a dynamic source within Shopify, like how the Title, Description, Content, dynamic sources are for any template within the theme editor.

Your theme provides the option but I am using Shopify’s free theme and want to make the best use of it. This issue of the SKU dynamic resource is so basic and should have been considered an automatic feature for all shopify themes, free and paid.

Nonetheless, thanks for your input!

I’m not understanding your problem I guess. My assumption based on the wording was: You want the option to show the sku next to or under the product title or something.. That is code. It’s just simple code that theme creators use in their theme. Just like title and description. The metafield data is already there in Shopify. If it wasn’t you wouldn’t have the option to add the sku when editing the product. But, Shopify itself does not inherently put these assets in themes. That’s up to the theme creators (or you). Just like breadcrumbs. They’re not mandated to include that in their theme. So, if I was correct in your ultimate goal in placing the sku in the product form near the title, it’s just a theme feature. Some themes are very basic and don’t have all the stuff we want. Others are much better.

If I am incorrect in what you want to do, please explain.

1 Like

I am requesting that Shopify make the SKU on the product listing to be selectable as a dynamic source like Title, Vendor, and Description. Since it is currently not available, I had to create a product metafield labeled SKU to input the SKU for a second time.

This can become an issue when employees add a new listing and don’t remember which product type needs the SKU to be written in the description, as well as inputted in the metafield. It’s double and sometimes triple work.

But when you edit the Product template, you can make global changes for that specific theme without having to input or change anything. That is what I want for the SKU without having to edit the code; especially since the new free themes are getting updated frequently.

The only dynamic sources available for products are what is within the red square. See attached image.

1 Like

The SKU within the red square is the category metafield I created.

1 Like