Jump to content

Restrict Access


Recommended Posts

With an action hook that forces a redirect to a page where user has to read and accept terms and conditions. Once he clicks "I accept" you store it in a table to "turn off" the redirect. Of course you also need to add exceptions for pages where the redirect can't occur (eg. logout).

 

Edited by Kian
Link to comment
Share on other sites

14 hours ago, web2008 said:

Before the customer can access the domain / product purchased, I want a button where he has to accept some terms before he get access.

prevent them accessing the domain/product directly, or those domain/service details within WHMCS ?

14 hours ago, web2008 said:

I mean I've seen an addon doing this.

Agree Terms ?

Link to comment
Share on other sites

17 hours ago, web2008 said:

Don't know what will be the best way, but the customer should not have access to anything, except invoice and support in the client area, until terms are accepted.

I would have thought it would be simpler to agree these terms at purchase/payment rather than after - not least because there might be a scenario where someone purchases hosting from you but would never need to agree to any terms on the WHMCS site in order to continue to use the hosting account - especially if they can still access invoicing/support without acceptance.

however, it could be done - for example, the hook on the page  below checks whether a user has completed certain fields in their contact data, and if they haven't, they get redirected to that page and can only go to certain other pages - invoices etc.

in your case, all you're doing is either redirecting to a new page where the user would agree to the terms, or perhaps showing it in a modal window that can't be dismissed...

bal3D6B.png

you will have to think about what happens if the user has purchased x different products - do they need to accept x number of different T&C ? does accepting terms only apply to the recent products, or to future products ?? do you want to email confirmation to the user (or an admin) to tell them that terms have been accepted? acceptance can be added to a database table and/or logged in some other way...

18 hours ago, web2008 said:

As I understand it, does "Agree Terms" only works in the order process?

it does state...

Quote
  • Force clients to agree before accessing the client area

I tend to assume, with this developer, that the core of any addon they publish will be based on free code they've "found" somewhere...

as you can see, forcing clients to do something upon login (e.g agree terms) isn't technically difficult, you just have to work through exactly what you want to do and when.

On 12/06/2020 at 20:04, web2008 said:

I mean I've seen an addon doing this.

yes - but which one?

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated