Page 1 of 1

Require Login Before Placing Items in the Cart?

Posted: Tue Feb 26, 2008 9:38 am
by jtcoburn
I would like to require our users to have to login/register before placing any items in their cart and we were told that this could be done by editing the web.config in the checkout folder. Can we have the exact steps to achieve this?

Posted: Tue Feb 26, 2008 4:08 pm
by Logan Rhodehamel
Go to the file Checkout/web.config and open it. By default it should look like this:

Code: Select all

<configuration>
  <location>
    <system>
      <authorization>
        <deny>
      </authorization>
    </system>
  </location>
</configuration>
Update it to this:

Code: Select all

<configuration>
  <system>
    <authorization>
      <deny>
    </authorization>
  </system>
</configuration>
This will require users to be logged in at checkout. This file has the potential to be overwritten by upgrades.