Problem:
Standard Shopify account pages are built for retail. Wholesale partners needed a dedicated hub for bulk reordering, exclusive assets, and specialized support, not a generic storefront experience.
Solution:
A two-tiered portal: native UI extensions that inject B2B-specific UI into the account page for verified partners, plus a fully custom dashboard with header intercept logic that routes wholesalers away from the generic Shopify flow.
How it works:
Shopify CLI extensions render only for customers associated with a Shopify Company (B2B). They inject a dynamic status badge fed by customer metafields and a product recommendation grid powered by Metaobjects. A separate Liquid template acts as the custom dashboard: a header intercept script detects the B2B tag and redirects partners there automatically, while a Liquid security check sends unauthorized retail visitors back to the homepage.
Tools: