Lost theming on required login before viewing products?

For general questions and discussions specific to the AbleCommerce 7.0 Asp.Net product.
Post Reply
xuanvu
Ensign (ENS)
Ensign (ENS)
Posts: 14
Joined: Mon Dec 22, 2008 1:17 pm

Lost theming on required login before viewing products?

Post by xuanvu » Thu Jun 11, 2009 8:35 am

Hello all,
I've added this line to the main folder web.config file to requires the user to login before viewing the products:

<authorization>
<deny users="?"/>
</authorization>

This 'causes the theming the be lost, and I think since the user is a guess, it can't access the styles in the App_Themes. If I take that line out, then everything appears to be working. Any idea on how to requires the user to login while maintaining the theme?

Thanks,
Kenny.

User avatar
ryanstowasser
Lieutenant Commander (LCDR)
Lieutenant Commander (LCDR)
Posts: 90
Joined: Tue Oct 30, 2007 4:28 pm
Contact:

Re: Lost theming on required login before viewing products?

Post by ryanstowasser » Thu Jun 11, 2009 5:17 pm

Add the following line to your Product "Display Page" in the Page_Init :

if(Token.Instance.User.IsAnonymous) Response.Redirect("Login.aspx?ReturnUrl="+ _Product.NavigateUrl)

Post Reply