enable product reviews for specific user group only

For general questions and discussions specific to the AbleCommerce 7.0 Asp.Net product.
Post Reply
User avatar
mfreeze
Commodore (COMO)
Commodore (COMO)
Posts: 421
Joined: Mon Jan 24, 2005 2:07 pm
Location: Washington, NJ
Contact:

enable product reviews for specific user group only

Post by mfreeze » Mon Jul 11, 2011 10:35 am

Is there a way to enable product reviews for slected user group(s) only?
Mary E Freeze

Freeze Frame Graphics
Web Hosting and Design, ASP and CFMX Development

http://www.ffgraphics.com

User avatar
mfreeze
Commodore (COMO)
Commodore (COMO)
Posts: 421
Joined: Mon Jan 24, 2005 2:07 pm
Location: Washington, NJ
Contact:

Re: enable product reviews for specific user group only

Post by mfreeze » Tue Jul 12, 2011 8:15 am

I found the following line in the code and am trying to figure out how to alter it to set visibility for only admin users. Can somebody point me in the right direction?
ReviewLink.Visible = (Store.GetCachedSettings().ProductReviewEnabled != CommerceBuilder.Users.UserAuthFilter.None && _Product.AllowReviews);
Mary E Freeze

Freeze Frame Graphics
Web Hosting and Design, ASP and CFMX Development

http://www.ffgraphics.com

User avatar
mfreeze
Commodore (COMO)
Commodore (COMO)
Posts: 421
Joined: Mon Jan 24, 2005 2:07 pm
Location: Washington, NJ
Contact:

Re: enable product reviews for specific user group only

Post by mfreeze » Tue Jul 12, 2011 9:56 am

We figured it out. Just replace the above code with that below.

Code: Select all

ReviewLink.Visible = (CommerceBuilder.Common.Token.Instance.User.IsInGroup(1));
Mary E Freeze

Freeze Frame Graphics
Web Hosting and Design, ASP and CFMX Development

http://www.ffgraphics.com

Post Reply