A B2B store owner is attempting to display a custom company metafield (custom.commercial_b2b) containing contact person names to logged-in customers on their homepage using Liquid code. Despite using what appears to be correct syntax for accessing a single-line text metafield with one value, nothing displays on the frontend.
Metafield type: Single line text, one value (not list)
Target location: Homepage
The same code works correctly in a test environment
Current status: The issue remains unresolved. The helper confirmed the code structure is correct and successfully tested it elsewhere, suggesting the problem may lie in the metafield definition or store-specific configuration. Without collaborator access to inspect the actual store setup, remote troubleshooting has reached its limits. A direct call was proposed for further investigation.
Summarized with AI on November 1.
AI used: claude-sonnet-4-5-20250929.
Hi !
I have a B2B website and I try, with custom Liquid, to show to loggued in customers the name of their contact in my company.
I have created a custom company text metafield (custom.commercial_b2b) in which i can, for each company, enter the name of the person they need to contact.
There is the code I tried to show this custom metafield content on the front of my store :