Customizing New Customer Accounts Login Page: Redirect link using UI Extensions

Hi, I’m working on a setup for a client who operates two separate stores within the same organization: one for standard B2C customers and one dedicated to B2B/Pro clients.

Problem:
Pro customers frequently land on the standard B2C login page. Login action = creating an account on the B2C instead of B2B.

Goal:
I want to add a simple UI element (a banner or a text link) on the native login page that says: “Are you a B2B/Pro customer? Click here to log in to the Pro Store”, which would redirect them to the login page of the second store (same organization).

Questions:

  1. Are there any Customer Account UI Extension points currently available for the sign-in/auth screen itself?

  2. If the login page is still restricted for security reasons, is there a recommended way to intercept the “unauthorized” or “wrong store” experience?

  3. Has anyone successfully implemented a “Store Switcher” or “Segment Identifier” directly on the hosted authentication flow using the latest Extension API?

Any advice or documentation links would be greatly appreciated!

@lynthius As far as I know it’s still not possible to implement any custom UI elements or changes on this page, but you can update the text which does include HTML support for something like a link.

I would specifically recommend checking out tip #2 in this blog post from our team:

Another possibility which would be a lot more custom work but I think is theoretically possible: Use a customer account extension inside the account portal (i.e. after the user has already signed in), to check against the separate B2B shop and see if the user email exists there and then display some sort of prompt or maybe even automatically redirect.

1 Like

Thanks @Brett, it looks easy but hacky :smiley: I was hoping that we could use some legit ways to implement it, but I searched and found nothing, as you said.

Yes this system is definitely still very limited!

Hopefully with the (rumored) deprecation of legacy customer accounts upcoming, Shopify will continue to release new options and improvements around customization of Customer accounts.

1 Like

We’ll see, I hope so! Thanks again. I know the default theme content is editable, but I wasn’t sure I could add an anchor link there.

Hey folks, just wanted to jump in and confirm what’s been shared here is correct, there aren’t any Customer Account UI Extension targets available for the pre-auth sign-in screen right now. The HTML anchor tag approach in the theme content strings is probably the best option available today.

That said, I’m happy to put together a feature request on our end for pre-auth customization on the login page if that’d be helpful. If you want to share any specific use cases or details, that’d be super valuable. Let me know!

Thanks @Alan_G! That would be incredibly helpful.

We have separate storefronts for B2C and B2B. I need to explicitly inform B2B clients on this screen that they should log in on a different URL/storefront. Currently, I cannot guide them effectively, and they get stuck.

Other Feature Request:

  • Navigation: A target to add a “Back to Store” link/button or custom redirect links.
  • Content Blocks: Targets above or below the main form to inject custom banners, text, or links.
  • Footer Area: A slot to pin utility links like FAQ, Support, or Terms, or possibility to edit items at the bottom of the page.
  • Branding: More visual control beyond just the logo.

I understand the security implications of an auth page, but currently, the page is basically uneditable.

No worries @lynthius - sorry for my late reply here (was out of the office for a bit)! I’ll set up that feature request on my end for you here as well as the other one. Let me know if I can help out further, appreciate you sending that feedback our way!

1 Like