How to force user login/signup before adding a product to cart on my store?

How to force user login/signup before adding a product to cart on my store? When they press the “add to cart” button, they are required to login/signup before adding any item to the cart. Thank you.

Hi @HTY1999

End customer can add the product into cart without login.
But you can set settings without login user can’t checkout.

go to settings > checkout select accounts are required.

Hello @HTY1999 ,

I have one extension for your query. The extension is Force Login. That perfectly fits your store.

The Features of this app are as below:

  • Restrain customers to access the website without a login
  • Make login mandatory to access some categories
  • Force users to log in for accessing specific product
  • Redirect customers to the login page

For More Information Visit Shopify App Force Login

Hope this helps you.

Thank you.