Jump to content

custom page hook


Marwan Mohamed

Recommended Posts

hello whmcs

am not very good at English but i will try my best to explain what i want to do.

-----

i want to create second error page using a hook to show it  for a specific part of the website instead of the default internal error page.

for example lets say a client requested to view the invoice with an invalid invoice id by default whmcs will show him the ops page (the internal error tpl at /templates/example/error/internal-error.tpl)

Screenshot_219.thumb.png.7b6cd3e8952ff7d530b9e26d0c0aa5fc.png

what i want to do is show a different error page for this specific  error on the invoice page instead of the default one (/templates/example/error/internal-error.tpl)  when an invalid invoice id is provided, i want to show a custom page or a custom tpl without having to edit the default internal-error.tpl itself

 

for example this is what i want to show for customer when they get invalid invoice id error

Screenshot_220.thumb.png.dda49617221459a8c8b3245f767687b3.png

 

 

 

Edited by Marwan Mohamed
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