Magento Tips: How To Create A Limited Access Wholesale Directory

February 21, 2013 Aleksander Tretjak Tips&Tricks
Magento Tips: How To Create A Limited Access Wholesale Directory

In some cases it is necessary to create a wholesale directory on a website, which can be accessed by wholesale customers only, while all other users should not be able to access the directory. You can achieve this by using the observer controller_action_predispatch.

i.e. checking if the customer has logged in, and if not, he is redirected to the login page.

In the method we ignore the paths which do not need this functionality.

Private Site

Download Private Site from GitHub



Post a new comment

top
BelVG Newsletter
Subscribe to our mailing list and get interesting stuff and updates to your email inbox.
Email *