force customers to login to view products
Posted: Wed Apr 17, 2013 12:34 pm
Read a lot of the forum posts, but was unable to get this feature going.
I need to allow only registered and approved customers to be able to browse through the products and be able to add-to-cart. If they are not approved or have a valid account, basically they can do nothing.
One of the posts dicussed changing the web.config. I tried that, but the form was displayed without any CSS or Layout . No images... all text based.
<location path="Default.aspx">
<system.web>
<authorization>
<deny users="?" />
</authorization>
</system.web>
</location>
In another post, there was a discussion of using nVelocity, but I understand that is not working in GOLD.
#if($customer.IsAnonymous)
<a class="selectablelink" href="~/Login.aspx">SIGN IN</a>
#end
Can someone please share the code and files that need to be changed to accommodate allowing browsing products ONLY if they have an approved account.
Thanks.
:
I need to allow only registered and approved customers to be able to browse through the products and be able to add-to-cart. If they are not approved or have a valid account, basically they can do nothing.
One of the posts dicussed changing the web.config. I tried that, but the form was displayed without any CSS or Layout . No images... all text based.
<location path="Default.aspx">
<system.web>
<authorization>
<deny users="?" />
</authorization>
</system.web>
</location>
In another post, there was a discussion of using nVelocity, but I understand that is not working in GOLD.
#if($customer.IsAnonymous)
<a class="selectablelink" href="~/Login.aspx">SIGN IN</a>
#end
Can someone please share the code and files that need to be changed to accommodate allowing browsing products ONLY if they have an approved account.
Thanks.
: