Horizon theme: Collection pages fail (generic Shopify error) when products have very high variant counts (≈1,200 variants each)

Topic summary

Issue: Collection pages crash with Shopify’s generic error when displaying ~6 or more products that each contain approximately 1,200 variants. This occurs even on a fresh, unmodified Horizon theme.

Key Details:

  • Individual product detail pages (PDPs) load correctly
  • Products render fine in collections when alone
  • Problem isolated to collection pages with multiple high-variant products
  • Likely caused by Horizon’s collection rendering looping through variants (for swatches, inventory badges, or quick-add), triggering timeouts or Liquid limits

Troubleshooting Completed:

  • Fresh Horizon install with no customizations → still fails
  • Disabled quick-add, app blocks, custom snippets → still fails
  • Removed variant loops from product-card.liquid and main-collection.liquid → still fails
  • Suggests hidden variant iteration elsewhere (JS prefetch or included snippet)

Seeking Help With:

  • Identifying specific Horizon snippets/includes that commonly trigger variant enumeration
  • Best-practice pattern for making product cards fully “variant-agnostic” on collection pages
  • Whether Horizon has known behavior that accesses variants per card during collection rendering

Urgency: Multiple core collections are currently non-functional. User can provide theme files, request IDs, and minimal reproduction collection.

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

Hi all — looking for help (or a Partner who can jump in) on a breaking issue affecting our collection pages.

Context

We recently consolidated several products using Shopify’s new combined product/variant model so customers see fewer listings. Some products now have ~1,200 variants. Product detail pages load fast and behave correctly. The problem appears only on collection pages containing multiple of these high-variant products.

Symptoms

  • If a collection contains ~6 or more high-variant products, the collection page fails with Shopify’s generic error page and will not load.

  • Each product renders fine on its own PDP, and each renders fine as a collection of one.

  • This occurs even on a fresh, unmodified Horizon theme.

Environment

  • Theme: Horizon (fresh/vanilla test + our customized store)

  • OS 2.0; no custom app blocks on the test theme

  • Issue reproduced across multiple browsers, devices, and networks

Working hypothesis

Something in Horizon’s collection/product-card stack is looping through variants in the collection context (e.g., for swatches, inventory badges, or quick-add behavior), causing the collection render to time out or exceed Liquid limits when several high-variant products appear together. I attempted to strip those loops, but it seems there’s an additional call/loop occurring elsewhere (possibly an include/snippet or JS that fetches all variants).

What I’ve tried / ruled out

  1. Theme/App conflicts

    • Spun up a brand-new Horizon theme with no custom code → still fails.

    • Disabled quick-add and any blocks likely to prefetch variant JSON → still fails.

    • Removed/disabled custom snippets and app blocks → still fails.

  2. Template & snippet hardening

    • Edited product-card.liquid and main-collection.liquid to avoid iterating over product.variants (e.g., use product.price_min/display only base info).

    • Ensured no variant-level loops in the tested card markup (swatches/options removed or replaced with static placeholders).

    • Despite this, the error persists, suggesting variant touching elsewhere (another snippet/section or JS prefetch).

  3. Data integrity

    • Each product renders cleanly on its PDP.

    • Each product renders in a collection by itself.

    • Created smaller test collections with mixed items to isolate thresholds (appears to break around 5–6 high-variant products).

  4. Caching / browser

    • Cleared caches, used incognito, tried multiple devices/locations → no change.

Temporary mitigations tested

  • Lowering products per page helps but isn’t a real fix.

  • Hiding swatches/option counts on cards reduces page weight but does not eliminate the failure.

  • Disabling quick-add drawers and inventory badges did not stop the error.

Ask

  • Horizon theme team / Shopify staff: Is there a known behavior in Horizon’s collection rendering (or associated JS) that accesses variants per product card, even when card markup appears simplified?

  • Partners/experts: What’s the best-practice pattern to make product cards fully “variant-agnostic” on collection pages (i.e., guarantee no variant loops/prefetch), while keeping quick-add disabled?

  • Any guidance on specific includes/snippets within Horizon that commonly trigger variant enumeration would be very helpful (names/paths welcome).

I can provide:

  • Request IDs from the error page

  • Theme file snippets (product-card.liquid, main-collection.liquid, any includes) in sanitized form

  • A minimal reproduction collection

This is urgent for us because several core collections are currently non-functional. Thanks in advance for any direction or for a Partner willing to implement a robust fix.

Contact shopify support DIRECTLY for actual support issues, these are peer-to-peer forums.

Hi @MarkednMade i’m @PaulNewton and I do theme customizations and fixes.
For services click my profile pic on forums for options to connect :speaking_head: :postbox:
If your not looking for services this should be posted in Technical Q&A

But not EVERY product right, so you’ve avoided full tilt buy-in which is good.

Gut everything variant related from those pages.
Don’t render that many products, fetch the rest on the frontend.

And rule out if it’s theme specific or you specific(e.g. no apps , ab-test s, etc etc ad-nauseum are in play).
Try another theme, and-or in a clean dev store with copy of products ; :technologist: afaik dev-dashboard stores are NOT currently region specific a type of latency can be expected.

If it’s fully agnostic it’s the type of bug to report to the actual developer forums , as support pretty much doesn’t exist on the peer-to-peer merchant forums. https://community.shopify.dev

It would be good to see the error screen snapshot.

Your site loads a bunch of apps which may also add to your problem.
Ideally, I’d try to export your “offending” products and import in a clean dev store to see if some apps may be the culprit.

I believe Shopify tested their >100 variants products with Horizon in the first place, so it may be specific to your setup.

Have you tried Shopify Theme Inspector for Chrome to pinpoint which part of the theme adds most load? I’d certainly reach out for this tool.

Anyway – contact Shopify support; If confirmed not an app problem, tag Shopify staff in dev forum.

1 Like

Thank you for the tips - Ill definitely check out the dev forum. I did confirm that it is not any apps or the theme - it happens in a clean horizon theme as well.

Thank you for this! I am going to check this out ASAP. I do not have that snippet in my theme (product-card-grid-item) - I do have product-card-grid but that line isnt present. But at least I can poke around.

This is absolutely maddening - I do have a ticket escalated with support - but we’re launching a fundraiser for my daughter’s school tomorrow and im currently having to basically put products on pages to get around this as its also breaking my search - and who knows how long suppoort will take to get back.