Anonymous users viewing products

Events happening in the community are now at Drupal community events on www.drupal.org.
sunnydeveloper's picture

I am editing an existing site. This site is already using the ecommerce modules for purchasing of role products (membership types). I am adding an actual 'shop' using apparel, which all came together nicely(products, subproducts) EXCEPT I can't seem to permit anonymous users access to the store. Anonymous users have full node access, but the products will only appear for those users with 'addminister nodes' user access.... I actually gave the anonymous user every single permission and slowly narrowed it down to find only this one provided a view to: product/product_overview ...

Because I am inherting this code I am not sure if there is a missing user access: Something like product_view

These are the only product access roles I can find:

MODULE:Product module
administer products []

MODULE:subproducts module
administer own subproducts
administer subproducts
administer variations

MODULE apparel
create apparel products
edit own apparel products

Any tip, hint idea or notion that might help me display products to anonymous users? Thanks

Comments

Same problem here

mfourman's picture

I'm having exactly the same problem with release 5.x-3.4.

I have found that if I create Page node and then check the box to turn it into a Product, then anonymous users can see that node... however, that route does not give me access to the product functions I need, like assigning roles based on purchase.

Anyone have any ideas about how to fix this problem?

Fix for this problem

mfourman's picture

I have tracked down two sources for this problem. Here are the problem sources and their fixes.

1) Node access permissions are improperly set for Products (if you are using the Privacy by Node module)
Go to 'Home » Administer » Content management' then Edit the properties for the content type Product. In the 'Node privacy by role' section make sure that the 'Default View Permissions' are set to allow anonymous users to view products.

After you have made these settings, when you create new products they should be visible to anonymous users.

I tried but failed to re-set access to existing product nodes, so you'll probably have to re-create each of your products after you have changed this setting.

2) After a product has been promoted to the front page, it is no longer visible to anonymous users
It turns out that promoting a product to the front page makes it no longer visible to anonymous users. Even if you un-promote it, the problem persists. I did not find any work around to this except to never promote a product to the front page.

e-Commerce Module

Group organizers

Group notifications

This group offers an RSS feed. Or subscribe to these personalized, sitewide feeds: