As a B2B Shopify store, customers need to be vetted by us prior to having an account therefore the Create Account on login page needs to be disabled. We don’t want them creating an account on their own.
Is there a simple piece of code (or code change) which can achieve this? I’m using the Yuva theme.
Thank you,
David
2 Likes
Hi, @leblancweb
If you want to hide the “Create Account” option on the login page of your Shopify store, you’ll typically need to make some adjustments to your store’s theme. Here’s a general guide on how to achieve this:
Note: Making changes to your theme files may impact your store’s functionality. It’s advisable to make a backup before making any modifications.
1. Remove the registration page
- Access Theme Code:
- From your Shopify admin, go to “Online Store” and then click on “Themes.”
- Find the theme you’re using and click on “Actions” > “Edit code.”
- Locate the “customers/register.json” File In the “Templates” directory. https://prnt.sc/aoaF5Tkygs_z
- Then find the section named “main-register” or similar.
- Edit the “main-register” File:
- Open the “main-register” file in the code editor.
- Comment on the full section or delete all code.
- Now registration form is removed.
2. Redirect the registration page to the login page
- Locate the theme.liquid in the layout folder:
- Find the and add this JavaScript Code before the tag. https://prnt.sc/mH0-2sXj2WlX
3. Update the login page design
- Locate the “customers/login.json” File In the “Templates” directory. https://prnt.sc/uEkjfT-WQ42_
- Then find the section named “main-login” or similar.
- Edit the “main-login” File:
- Find this class “login-container”.
- Change class name like this https://prnt.sc/8Olc_V7MB7QG
- Now complete the all changes.
1 Like
@Prashant-Patel that only applies to old customer account template pages for the online sales channel and consumer accounts. It doesn’t apply to the new enforced **NON-**customizable account screens for new customer accounts.
@PaulNewton Sir,
@leblancweb Need to change in Yuva theme with some simple piece of code. So I think don’t need to change on online sales channel.
OK, thanks. Would you have the code or should I contact the Yuva theme developers?
Thanks,
David (@leblancweb)
Hey @leblancweb
I already shared all the steps please follow and apply it. If you’re not able to do that mail me the store login details my email address is aradeshanaprashant12@gmail.com
1 Like
Thank you so very much. I applied these code changes and it worked beautifully for me. I greatly appreciate your quick and expert advice. 
David (@leblancweb)
1 Like
Hey @leblancweb ,
It sounds like you already found a solution for this but I wanted to present a potential alternative to removing your create account form entirely, in case you or someone else in a similar situation wants to try this.
With the Helium Customer Fields app, we offer the ability to create a custom registration form for your site with an option to require account approval. Using this type of form, users will still be able to submit a registration application for your site, but you will be able to verify and approve/deny them before their account is actually created.
You can check out our documentation here for more about how this works: https://help.heliumdev.com/en/articles/6311748-how-does-account-approval-work