Jump to content

crshman

Retired Forum Member
  • Posts

    42
  • Joined

  • Last visited

About crshman

crshman's Achievements

Member

Member (2/3)

0

Reputation

  1. What type of integration are you looking to set up? I've worked with the two for a while now so I like to think I'm pretty knowledgeable on the subject....
  2. Is there a way to pass the credit card information to WHMCS via the API from a custom order form?
  3. Hello, I am trying to create an invoice for clients based off the API here: http://wiki.whmcs.com/API:Create_Invoice it says the userid for the client, is there a way i can use the email address of the client here instead? --EDIT-- I figured it out, I used this function to get the id: http://wiki.whmcs.com/API:Get_Clients_Data_by_Email
  4. Hello Guys, Sorry, I totally forgot about this post! =( Written codes for what?
  5. Hello, Indeed it has been tested with 3.6.1
  6. Ah excellent, I'll give that a try...thanks!
  7. I remember directing this question directly to Matt. The add on is basically to auto provision the configurable options. I believe this only work with cPanel right now.
  8. Hello, Did you ever figure out why this doesn't show the annual price in the calculations?
  9. Hello, I am writing a custom registrar module and I wanted to know how to populate the fields in the admin side registrar settings page. I know that using the $configarray parameter fields may be added/deleted, but how do I fill them? I was looking in the DB and it seems as though there is a table named "tblregistrars" that holds the configuration information. It also seems as though the information is encrypted. How do I encrypt the information like that to put it in the DB, along with retrieve it?
  10. Hello, Is there a way to list the chosen configurable options on the invoice?
  11. Well I suppose I could interact with the DB directly, but I felt it was easier to interact via the API.... This is an option I'm currently exploring though.
  12. Hello, Is there a function/way to get the products under a certain user from the API?
  13. Hello Everyone! Well I managed to get some pretty tight integration with WHMCS and Saeven CRM Here is a breakdown of what this integration does: User logs into WHMCS Sends request to SCRM to login the user If the user doesn't exist, TWIRL kicks in to add the user Once the user exists, they are logged in to BOTH WHMCS and SCRM Here are some of the features this integration offers to your clients: Allows for users to "Submit" a ticket from WHMCS [users get forwarded DIRECTLY to the logged in ticket submission for their account!] Allows for users to "View" their tickets from WHMCS [users get forwarded DIRECTLY to the logged in ticket listing for their account!] A working example of all of this can be found here: http://secure.efirehost.com/whmcs/index.php Note: For this to work your WHMCS and SCRM MUST be on the same domain!! Now...the dirty stuff... First we have to add some code to WHMCS actionhooks.php This is found in whmcs/includes/actionhooks.php Find the following bit of code: function actionhook_ClientLogin($vars) { # This function runs when a client logs in # $vars["ClientID"] } and replace it with the following: (Be sure to change yadada to the link to YOUR SCRM install!) function actionhook_ClientLogin($vars) { # This function runs when a client logs in # $vars["ClientID"] $data = array( "action" => "login", "username" => $_POST['username'], "password" => $_POST['password'] ); $x = simplexml_load_file( 'https://yadada/xmlrpc/request.php?' . http_build_query( $data ) ); if( (int)$x->TR ){ $params = session_get_cookie_params( ); setcookie( (string)$x->cookie_name, (string)$x->cookie, time() + 60*60*24*60, '/', $params['domain'] ); } } That's it! Now WHMCS knows to tell SCRM to log a user in behind the scenes! Now the following bit of code goes through and changes all the occurrences of "supporttickets.php" with the link to your SCRM install. In WHMCS all the links that say "Your Tickets" now forward to SCRM to view tickets. (Be sure to change yadada to the link to YOUR SCRM install!) find ./ -name "*.tpl" -exec sed -i 's:supporttickets.php:https\:\/\/yadada/?tsrc=ticket_list:g' {} \; -print The following bit of code goes through and changes all the occurrences of "submitticket.php" with the link to your SCRM install. In WHMCS all the links that say "Submit a Ticket" now forward to SCRM to submit tickets. (Be sure to change yadada to the link to YOUR SCRM install!) find ./ -name "*.tpl" -exec sed -i 's:submitticket.php:https\:\/\/yadada/?tsrc=ticket_send:g' {} \; -print Now I know some of you are wondering....WHY would I do this if SCRM already has a drop in module for WHMCS....well here are a few of the advantages something like this offers: Users get to use the advanced ticket submission features SCRM offers You can modify the ticket submission requirements for your users through SCRM Users can view all their open, in progress, and closed tickets from SCRM A few more additions for those of you that want to tie together WHMCS and SCRM: The following bit of code goes through and changes all the occurrences of "downloads.php" with the link to your downloads section in your SCRM install. In WHMCS all the links that say "Downloads" now forward to SCRM. (Be sure to change yadada to the link to YOUR SCRM install!) find ./ -name "*.tpl" -exec sed -i 's:downloads.php:https\:\/\/yadada/?tsrc=downloads:g' {} \; -print The following bit of code goes through and changes all the occurrences of "knowledgebase.php" with the link to your Knowldegebase in your SCRM install. In WHMCS all the links that say "Knowledgebase" now forward to SCRM. (Be sure to change yadada to the link to YOUR SCRM install!) find ./ -name "*.tpl" -exec sed -i 's:knowledgebase.php:https\:\/\/yadada/?tsrc=knowledgebase:g' {} \; -print The following bit of code goes through and changes all the occurrences of "announcements.php" with the link to your Announcements in your SCRM install. In WHMCS all the links that say "Announcements" now forward to SCRM. (Be sure to change yadada to the link to YOUR SCRM install!) find ./ -name "*.tpl" -exec sed -i 's:announcements.php:https\:\/\/yadada/?tsrc=announcements:g' {} \; -print
×
×
  • 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