Magento as private sale site / catalog – login required to view store

  • magento private store
  • magento private sales
  • magento login catalog
  • magento private sales module

We are offering an Extension with full online prescription viagra without features of Flash Sale system at very reasonable budget.  Some major features Sale Event,  Flash Category Sale,  Flash Event Sale, Catalog Permission. Please email us at support at onlinebizsoft.com for any questions or visit and purchase the Magento Private System extension here

You are working on a private sale system or a whole sale, you will need to redirect customer to login if not logged in order to view and access catalog or either give access to its content only to logged in user. The preDispatch function will be very useful. This dispatches event before action.

Just write the following function in your module’s controller and customer log in is checked before each of your controller action.

 

/**
 * Checking if user is logged in or not
 * If not logged in then redirect to customer login
 */
public function preDispatch()
{
	parent::preDispatch();

	if (!Mage::getSingleton('customer/session')->authenticate($this)) {
		$this->setFlag('', 'no-dispatch', true);
	}
}

Hope this helps. Thanks.
Looking for improvement for your Magento Store?
Facebook Connector Extension
Product related article extension
Magento Offer popup on exit extension
Unlimited Slideshow Magento Extension
Light Checkout in One Step Magento Extension

Comments

Leave a Reply

Your email address will not be published.

4 × two =

Security Code: