I want to restrict the visitors for a single store in multistore website.
If they are not logged in, redirect them to login page.
They can also create account and login after they visit the website. If anyone have idea please let me know.
Magento – Redirect to login page if not login magento
controllerscustomerloginmagento-1.9
Best Answer
You can create a module for that.
First you need to declare an observer on the
controller_action_predispatch
event:app/code/local/Vendor/Module/etc/config.xml
Then in
app/code/local/Vendor/Module/Model/Observer.php
please note that you need to replaceSTORE_ID
with the id of the store you want to implement that feature :And
app/etc/modules/Vendor_Module.xml