Jump to content

Restrict client access to client area if invoices are overdue


sentq

Recommended Posts

This Action Hook function will restrict logged-in clients access to your client area if they have one or more overdue invoices, only the following pages is accessible:

- My Invoices

- View Invoice

- Manage Credit Card

- Add Funds

- Mass Pay

 

Download

 

 

Installation:

Upload this file inside /includes/hooks/ directory.

 

 

Customization:

You can specify how many overdue invoices client can have before a restriction taking place (line #25).

Link to comment
Share on other sites

This Action Hook function will restrict logged-in clients access to your client area if they have one or more overdue invoices, only the following pages is accessible:

- My Invoices

- View Invoice

- Manage Credit Card

- Add Funds

- Mass Pay

 

Download

 

 

Installation:

Upload this file inside /includes/hooks/ directory.

 

 

Customization:

You can specify how many overdue invoices client can have before a restriction taking place (line #25).

 

 

In addition, customers get to see the main page, can we?

 

So

I want to see the main page of the Customer Portal.

Link to comment
Share on other sites

In addition, customers get to see the main page, can we?

 

So

I want to see the main page of the Customer Portal.

I've Implemented this option, re-download the ActionHook File again and change the value in line #33 to "true" it will allow your client to browse "/clientarea.php" URL

 

 

@Jason, @priestakos You Welcome :)

Link to comment
Share on other sites

  • 1 year later...
  • 2 years later...
On 02/08/2021 at 20:38, steven99 said:

quick look at the code says it should work in 8

it still does.

On 02/08/2021 at 20:38, steven99 said:

Do note it wont redirect if you logged in via the admin. 

that's an important thing to note.... it only works when logged in directly as  a client and not as an admin masquerading as a client.

Link to comment
Share on other sites

  • 2 months later...

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.

×
×
  • 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