3
votes

I have a Magento Website with different Storeviews. One of theese Storeviews is wholesale.

I don't want to let regular people visit this storeview. So I want a general password protection (htaccess like) with just one user password.

htaccess dosen't work in this case because the storeview is no real directory.

I tried a session based login with redirect like this: http://aktuell.de.selfhtml.org/artikel/php/loginsystem/ In this example I log in and if I use the right usr & pw I get redirected to the normal magento login. But it seems that this dosen't work with magento, because some how my session gets destroyed or reset.

Does anybody know how to do that?

2

2 Answers

3
votes

https://github.com/jreinke/magento-require-login

This should do the trick. Its maybe easier to just install this 3rd party extension.

2
votes

http://www.magentocommerce.com/magento-connect/customer-groups-catalog2-4585.html

is another choice. It's also hide category in frontend.

Updated You change settings of Groups Catalog 2 like this:

  1. In Default Scope: Disable Module

  2. Choose scope of store you want to hide unauthorized users, change settings like attached image. enter image description here

Hope this helps.