Replace page link with another on customer login?
Permalink
Hi,
I'm hoping this is a simple one, but..
I have a site which i am trying to add a wholesale element to.
Currently we have the standard 'store' page which has a selection of products within. What I want to do is add a wholesale part so when a wholesale customer logs in and they are in the 'wholesale' group the 'Store' link is replaced with a 'Wholesale' page which will have within the products at wholesale prices.
I am sure this can't be tough to do, but would really appreciate a little guidance on the best way forward with this!
thanks for looking
I'm hoping this is a simple one, but..
I have a site which i am trying to add a wholesale element to.
Currently we have the standard 'store' page which has a selection of products within. What I want to do is add a wholesale part so when a wholesale customer logs in and they are in the 'wholesale' group the 'Store' link is replaced with a 'Wholesale' page which will have within the products at wholesale prices.
I am sure this can't be tough to do, but would really appreciate a little guidance on the best way forward with this!
thanks for looking
http://www.concrete5.org/documentation/general-topics/simple-permis...
http://www.concrete5.org/documentation/how-tos/designers/using-adva...
Set up a user group 'wholesalers' and assign them to the group.
Then set permissions on the 'wholesalers' page tree for the whole tree to only be visible to users in this group.
I am not so sure about hiding the 'sales' tree. I think you can set the permissions so that it is visible to every group (inc unregistered), but not the 'wholesalers'.
Failing that, I would add some jQuery to the theme header to detect the 'wholesalers' links and if present, remove the sales links from the DOM.