Small Bug: Can't register

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
14 年 前
I would just like to log a small bug on anotherwise great product.

If you set
Home > Configuration > Global Settings > Other : "Allow navigation only for registered customers:" = checked

A new user is unable to havigate to the Register.aspx page.

A simple mod to BaseNopPage.cs

//it's not login/logout page
if ((!CommonHelper.GetThisPageURL(false).ToLower().Contains("/login.aspx")
    && (!CommonHelper.GetThisPageURL(false).ToLower().Contains("/logout.aspx"))
    &&(!CommonHelper.GetThisPageURL(false).ToLower().Contains("/register.aspx"))){
       string loginURL = CommonHelper.GetLoginPageURL(false);
       Response.Redirect(loginURL);
}

Seems to do the trick.

Hope this helps!
14 年 前
Thanks

https://www.nopcommerce.com/Boards/Topic.aspx?TopicID=2660
14 年 前
Where abouts in the BaseNopPage.cs do you add this piece of code???
14 年 前
The code file is located here \NopCommerceStore\Controls\BaseNopPage.cs

Look at the OnLoad Method

Nick..
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.