Jump to content

i need help creating a 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 need help to create a hook for a custom error page and 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.f066ea921cf676e24619e6646f9f09ab.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.03d77bcc8ad8e2d24ac167c2fb10e067.png

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