Why are company metafields not displaying in Liquid?

Topic summary

Problem: Company metafields were not rendering in Liquid when referenced broadly (e.g., {{ customer.current_company.metafields }} or company.metafields), while other company properties (e.g., name) worked.

Context: B2B development store; multiple users reported the same behavior and suspected a Shopify issue. Screenshots showed a Company metafield (e.g., “currency”) and its definition.

Key detail: Metafields must be accessed with their namespace and key, and many need the .value accessor to output the stored data.

Working solution: Use the fully qualified path, for example:

  • {{ customer.current_company.metafields.custom.credit_limit.value }}
    Replace “custom” with your metafield’s namespace and “credit_limit” with its key. Apply the same pattern for other company metafields (e.g., currency).

Outcome: Using namespace.key.value resolves the display issue; no platform fix required.

Status: Resolved with correct Liquid syntax. Unanswered only if the metafield namespace/key differ from what’s used in code or if the metafield type requires specific formatting.

Summarized with AI on December 26. AI used: gpt-5.

https://dev-powerslide-b2b.myshopify.com/password

password: bothul