Jump to content

Sandra

Newbie
  • Content count

    5
  • Joined

  • Last visited

Community Reputation

0 Neutral

About Sandra

  • Rank
    Junior Member
  1. Can I access global variable declaired in my php file, to my custom made PHP hook, not tpl hook? I have tried to catch the value of that variable with $_POST['registrantValue´╗┐'] from my page. In proba.php I have access to my global variable, but when I try to print the variable in my hook, it always shows that the value is empty. You can see that in the pictures attached bellow.
  2. Can I access global variable declaired in my php file, to my custom made PHP hook, not tpl hook? I have tried to catch the value of that variable with $_POST['registrantValue'] from my page. In proba.php I have access to my global variable, but when I try to print the variable in my hook, it always shows that the value is empty. You can see that in the pictures attached bellow.
  3. Contact is not logged in. The client makes an order, and set one of his contacts to be registrant of some service (exaple: registrant of some domain). This selected contact in my shopping cart, is the right contact ­čÖé I have access to all contacts of that client in my shopping cart, also I can access to them via query in my hook, but I need to catch the id of selected contact from my shopping cart (by client), and send to my custom make hook.
  4. I have tried with the options 1 and 2, but I still did not find a right solution. 1) Using the variable $vars from my hook, I get information for client's details, not to contact's details. 2) If I make a query to connect to my db, I get a list of all contacts by that client I'm searching for. But what I need is a specific contact id from that list of contacts (I would like to pass that ID from my website to specific hook), so I can access to the right contact.
  5. Hi guys, I'm using WHMCS for a long time, but now I have a little problem with my custom written hook. Practically, I would like to get subcontact id (read contact id) in my hook via $_SESSION or something like that. I get user id with $_SESSION['uid']. How can I make that for contacts? Any solutions? Best regards, Sandra
  6. Welcome to WHMCS.Community Sandra! We're glad you're here please take some time to familiarise yourself with the Community Rules & Guidelines and take a moment to introduce yourself to other WHMCS.Community members in the Introduce Yourself Board.

×

Important Information

By using this site, you agree to our Terms of Use & Guidelines