web2008 Posted June 12, 2020 Share Posted June 12, 2020 Before the customer can access the domain / product purchased, I want a button where he has to accept some terms before he get access. I mean I've seen an addon doing this. Can anyone help? 0 Quote Link to comment Share on other sites More sharing options...
Kian Posted June 12, 2020 Share Posted June 12, 2020 (edited) 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 June 12, 2020 by Kian 0 Quote Link to comment Share on other sites More sharing options...
web2008 Posted June 13, 2020 Author Share Posted June 13, 2020 Thank you very much Kian, just how it should work. The only problem is that I probably don't have the knowledge to create an action hook that works like this. Anyone can do this, for a fee of course, or is there an addon? 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted June 13, 2020 Share Posted June 13, 2020 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 ? 0 Quote Link to comment Share on other sites More sharing options...
web2008 Posted June 13, 2020 Author Share Posted June 13, 2020 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. As I understand it, does "Agree Terms" only works in the order process? 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted June 14, 2020 Share Posted June 14, 2020 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... 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? 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.