It directs to login page when searching and clicking a single product

Hi! When customers search a product and click single products (not bundles), it directs people to login page instead of product page. How can we fix it? It’s kind of emergency for us because of Q4. We’d appreciate if you could help, thanks!

Check that the product template isn’t forcing customer accounts (Settings → Customer accounts) and disable any app/theme snippet redirecting to /account/login, had this pop up in a client build.

Hi @bestekoltuk

This is a critical issue, but it is almost always caused by a “Lock” or “Wholesale” app restricting access to specific items.

First, check the tags on the affected product in your admin. Look for and remove any tags like “wholesale,” “lock,” or “b2b,” as many apps use these to force a login redirect.

Next, check the settings of any access control apps you have installed. If you recently uninstalled one, check your “product.liquid” theme file for leftover code that might be forcing a redirect. If you cannot find the cause, please share your store URL so we can investigate further.

Hope this helps!

WHY this happens

If single products open the login page instead of the product page, it means something is forcing customers to log in.
This is usually caused by:

  1. A wrong product template

  2. A theme code redirect

  3. An app that requires login

How to fix it fast

1. Check the product template

  • Go to Products → open a product

  • On the right, find Theme Template

  • Make sure it is set to product

  • NOT “members only” or “login required”

2. Check theme code

Go to Online Store → Edit Code
Search for:

customer == null
redirect
login

If you see anything that sends people to /account/login, remove it.

3. Check apps

Disable or pause apps that might block products:

  • Wholesale apps

  • Members-only apps

  • Login-to-view apps

If search works after disabling → that app caused the problem.

I hope it helps—let me know if you need anything else!