How can I effectively turn off or fix a non-redirecting registration form?

Hi there,
We’ve paused our online store as we no longer sell online anymore. In the meantime, we’ve removed any access to the accounts / register form from the website until we sort out a non-eCommerce site. The URLs are still live so I’ve tried to redirect them to the home page.

However, the registration form is still clickable if you have the URL and doesn’t redirect; we’ve had one User access it and fill it out.

Is there a way of actually turning it off or fixing the redirect?

Only modify code files if you’re comfortable with it. Make changes at your risk.

You can comment out the registration code in the liquid file. To do this, navigate to Themes → Edit code → Templates → customers/register.liquid. Now add this code at the start of the file and end of the file:

{% comment %}
.. code for registration
..
..
..
{% endcomment %}

I have attached screenshots to make it easier for you:

1 Like