Template editor is saying I have 0 products and my template is assigned to 0 products

Topic summary

A user is experiencing an issue where the theme editor shows their product template as grayed out, displaying “0 products” and “assigned to 0 products,” despite having products that use the template.

Diagnosis:
The problem stems from product visibility settings. The products are likely set to “Draft” status rather than “Active.”

Solution provided:

  • Products must be set to “Active” status in the Online Store settings for them to appear in the template editor
  • Templates themselves are already published by default
  • The template cannot be properly previewed or edited without activating at least some products first

Status: The issue appears resolved with the explanation that product activation is required for template editing functionality.

Summarized with AI on November 9. AI used: claude-sonnet-4-5-20250929.

Obviously I have products and they all use my one template. But when I edit the theme and look at the product template, it is grayed out. See screenshots-

Hello @Platypyrus

Welcome to Shopify Community.

First please check that the products are active and set to Online store:

Thanks

1 Like

Can’t I work on the template without publishing it?

Templates are already published. You only have to activate the products to
the online store.

No, without activating the products you want be able to see.