Tags/topics: 
3
Answers
Vote up!
0
Vote down!

Product list (view) disappears when not logged as admin

Hi folks,

I have some problemes defining my first view. For several hours right now I have been trying to define a view which shows a list with all my products stored in my databases. Actually, I have defined such a view - with the reference field "Content: Product (field_product)" in place. When I'm logged in as admin I get the content that I expect.

The problems begin when I'm not logged in and just try to show these items as an anonymous user. For a reason, which I cannot explain myself, I get only a blank page with no list, no items only the title of the page. I have observed this behavior just in that moment when I add the reference field to my view. In the case before I add this key to my view definition I'm certainly not able to see any of the provided product contents but I see the content's title at least (as anonymous user).

Even the settings regarding the access of my view I have adjusted to "None" in order to ensure that no restrictions affects my output.

I appraciate any kind of recommendations or help on this problem.

Best wishes,
Adam L.

Asked by: batnix
on August 7, 2012

3 Answers

Vote up!
0
Vote down!

I have had similar issues, the only way I could get mine to display was to give the permission, "View any product of any type" at /admin/people/permissions. I know it says this, "Warning: Give to trusted roles only; this permission has security implications.", but I could not see any reason to not provide the permission. Perhaps someone could enlighten me though.

Answer by: BD3
Posted: Aug 8, 2012
Vote up!
0
Vote down!

Thanks for your hint... Perhaps, there is a better way to solve this issue. I'll test your recommendations :).

Let's see if someone else knows how to solve this issue.

Answer by: batnix
Posted: Aug 8, 2012
Vote up!
0
Vote down!

I was having this issue as well. I went through the permissions and also enabled "View any product of any type" for Anonymous users. It worked. However, like BD3 said, I'm not sure what the security implications are.

Answer by: mlaw
Posted: Aug 16, 2012

Comments

Further searching lead me to this video: http://vimeo.com/22746978. Technically you should create a Product Display node and create a View listing those instead of creating a View that lists Products. But if you have 5000 products for your website, it's very impractical to create that many Product Display nodes if they don't need them. If you only have a few, then it's probably worth the effort.

- mlaw on August 16, 2012