Page Permissions after login

Permalink Browser Info Environment
I've used the Login block and it is basically working pretty well for me. However, in my site I am using eCommerce in selling to both consumers at retail prices, and to Retailers who login so they can purchase the same product at wholesale prices.

So, I have set the site up such that the Buy Now page where I have the product shown with its Add to Cart button, is a page visible to any guest who casually visits the site without credentials. Meanwhile, I have the Login function such that a retailer with credentials can login, and once logged in, a new page becomes visible in the menu, called "Buy Wholesale". (I merely set the permissions for the "Buy Wholesale" page to be such that it is visible only to members of the "Retailers" group I created. Follow me so far?

Anyway, this is all working splendidly. However, what I want is for the regular, guest "Buy Now" page to become NOT visible to Retailers once they've logged in. Thus from the retailer's perspective, before they log in, they just see the regular "Buy Now" page function, but after they log in, the page seems to be replaced by "Buy Wholesale".

I only want to show ONE version of the "Buy" page to any given user, that being the version of the page depending only upon whether they are logged in or not. Right now, a logged in Retailer can see both pages "Buy Now" and "Buy Wholesale", because presumably login credentials recurse back to make any lower form of credentials pages visible.

Can anybody think of a way I can set up the public "Buy Now" page such that it will be visible to any casual visitor to the site, but that it will DISAPPEAR once a credentialed user in the Retailer group logs in.

(Both pages should still be visible when logged in as an Administrator).

Any ideas?

Type: Discussion
Status: New
jvetterick
View Replies:
GregJoyce replied on at Permalink Reply
GregJoyce
Here are two quick ones:
Option 1, not so cool, make the wholesale stuff a sub-page of the normal buy icon and only wholesalers can see that page.

Option 2, make a single page that checks for group membership / login. If they are logged in and are in the wholesaler group, they get redirected to the wholesale page. Otherwise, they get redirected to the normal page. Then you just make your "buy" link an alias to that single page.

concrete5 Environment Information

Browser User-Agent String

Hide Post Content

This will replace the post content with the message: "Content has been removed by an Administrator"

Hide Content

Request Refund

You have not specified a license for this support ticket. You must have a valid license assigned to a support ticket to request a refund.