Require Login Before Placing Items in the Cart?

For general questions and discussions specific to the AbleCommerce 7.0 Asp.Net product.
Post Reply
jtcoburn
Ensign (ENS)
Ensign (ENS)
Posts: 8
Joined: Mon Dec 10, 2007 10:11 am

Require Login Before Placing Items in the Cart?

Post by jtcoburn » Tue Feb 26, 2008 9:38 am

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?

User avatar
Logan Rhodehamel
Developer
Developer
Posts: 4116
Joined: Wed Dec 10, 2003 5:26 pm

Post by Logan Rhodehamel » Tue Feb 26, 2008 4:08 pm

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.
Cheers,
Logan
Image.com

If I do not respond to an unsolicited private message, it's not because I'm ignoring you. It's because the answer to your question is valuable to others. Try the new topic button.

Post Reply