Jump to content

Get service ID from client area URL


Recommended Posts

Hi All,

I am new here and I am looking for some help with getting service ID from client area.

We have an SSL module to let our clients order and manager SSL certificates from their client area. In the WHMCS client area, clients can see their SSL orders (purchased through our SSL module) from Services >> My Services >> Click on SSL order. The service URL looks like: https://mywhmcs.com/clientarea.php?action=productdetails&id=5580 and we have created a page there following instructions in https://developers.whmcs.com/advanced/creating-pages/ . To ensure that the service belongs to the logged in client, we have created a check on the page. For this, we need to get serviceID from the client area URL - https://mywhmcs.com/clientarea.php?action=productdetails&id=5580  where 5580 is the serviceID. We were using the code in the attached image and also tried modifying it without success. 

The developer who created the module for us is unavailable and I don't have much knowledge in coding, so I would appreciate any help on this. Thank you!!

Regards,

SApillai

ServiceID Code.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