2 replies [Last post]
noah977's picture
Offline
Joined: 10/08/2009
Juice: 32

I'd like to limit product ordering, cart access, etc. to only authenticated users.

We're selling roles for content access. The problem now is that an anonymous user can access the cart and purchase a role. However, we don't have them registered as a user in Drupal. So if they buy a role, we have no user to award it to.

I'd like to bounce anonymous users who click on a product link to a custom page that has our "sales pitch" and a link to register. Only authenticated users should be able to place an item in the cart.

I've looked at the permission settings, but don't see a way to limit cart access to only authenticated.

Can anyone help?

Thanks!

quikone's picture
Offline
Joined: 03/01/2009
Juice: 578
Re: Only show cart to authenticated users

How do you have the settings http://yoursite.com/admin/user/permissions, in uc_cart_links module area?

tilmankoester's picture
Offline
Joined: 03/20/2010
Juice: 13
uc_role_cart module

Hey,
I wrote a "scratch-your-own-itch"-module that might help you as well. It's really simple, but gets the job done.

What it does, is, you can choose which roles can add products to their cart. It greys out the add to cart button if you lack privileges. Check permissions page.
Just turn off anonymous checkout, display a block with your sales pitch to anon. users, hide cart from anon. users and you should have what you're looking for.

Module is somewhat un-supported, take it or leave it Eye-wink
Regards,

AttachmentSize
uc_role_cart.zip 2.44 KB