redirection when users doesn't have access

  • Justyna
  • Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
More
5 months 2 days ago #113286 by Justyna
Hi,

I do not remember now where i've set it up, but imagine a plan is restricted to url A and B. user is not logged in and tries to access this url A. According to my setup he is redirected to "our products" page and there is this green message displayed "you do not have access, you need to have access to plan X or plan Y in order to view this page".
Where do I setup the page where the users are redirected (in my case it is our products page).... and what is the name of the function that is redirecting?
I am thinking about having just a popup with info "you need to buy plan X or Y" with links to the checkout page instead of this redirection.
thanks

Please Log in or Create an account to join the conversation.

More
5 months 1 day ago #113316 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic redirection when users doesn't have access
I would say that it's not easy to make the popup as you said (Or my javascript skill is not enough)

If you want to change it, take a look at plugins/system/osmembershipurls/osmembershipurls.php (method onAfterInitialise)

Regards,

Tuan

Please Log in or Create an account to join the conversation.