Jump to content

All Activity

This stream auto-updates     

  1. Yesterday
  2. steven99

    Create Product Bundles

    Do you have domain registration as one of the bundle items? If so, that appears to be causing the issue from my quick test. Remove the domain registration bundle item and set the settings for the domain within the hosting product's bundle item.
  3. steven99

    Addon config variables in a hook?

    Could use internal classes, which basically do the same thing as database calls. https://docs.whmcs.com/classes/7.6/WHMCS/Module/Addon/Setting.html
  4. aquiss

    GoCardless Usage Questions

    Yes, it will download all the current mandates from GoCardless (old format and new style mandate format) and map them automatically based on the email addresses in WHMCS and over at GC. Any customer it can't map (where customer has changed email addresses), you can then manually map to loose ends. For us this this mapped 98% in a matter of a couple of minutes and a few mins later we had them all sorted. Basically operational within 30 mins from start to finish. The customer can also have multiple mandates against their account. From an admin point of view, nice features include you can view/add/deletes mandates from customer profile and also you can see directly on the invoices the exact progress of collection, directly pulled from GC (see below as an example) Yup, we run Stripe also, so customers can have both a DD mandates and card details on record, side by side, without conflicting with each other. The nifty DD module stores all it's data in separate tables, so not conflicting with card tokens stored in WHMCS way of doing things (something we did highlight to them during the beta phase but was dismissed). It's bits you don't see which also set this module apart. They literally support webhooks superbly, so literally everything is logged into WHMCS from GoCardless from the API calls. Peace of mind! Over the years we have used 4 different modules for WHMCS/GoCardless (mix of free and commercial). We have found the nifty one to be way out in front. We have already requested a couple of extra nice features and they added them within 2 weeks into a new release! Honestly, forget the headaches and just do it. We don't even worry about DD issues anymore. We process over £1 million a year via WHMCS/GoCardless and honestly the WHMCS built in module just would not work for us, the way they have deployed it. We tried to highlight issues during the beta phase, but as I say, nothing was considered from what we can see.
  5. snake

    GoCardless Usage Questions

    Does this allow to easily link to existing mandates? Does it still allow customers to also use other payment methods as well for other services, rather than the messy cludge WHMCS has done in using the gateway ID, so cards cannot be used.
  6. Is there a better way to get an add-on's custom config variables when running a hook than querying the database directly? It would be nice if there was some kind of cache or master variable I could read in ūüėä
  7. WHMCS Peter

    Custom Hostnsname URL cPanel

    Hi @lims, The reason this currently works in the way it does is because WHMCS sends a request via the cPanel API to the "create_user_session" endpoint. At current, the "url" which is returned defaults to the server hostname. This is what is used to redirect the user to cPanel Here's an example of what we receive back from cPanel: { "data": { "cp_security_token": "/cpsess1234567890", "expires":1401993893, "session": "username:GHehYZ1GCxzmDATMmT1xT4rN0tiPGMWnKErPJdU3t6AGBx2LjQ3qB6Xih5naUh_4:create_user_session, 5dc619831bac4aa2e014e062d762645e8447949eaef14fc53a8ce2b1e0e2592a", "url": "https://example.com:2083/cpsess1234567890/login/? goto_uri=frontend%2fx3%2fstats%2fawstats_landing.html&locale=fr&session=username:%3aGHehYZ1GCxzmDATMmT1xT4rN0tiPGMWnKErPJdU3t6AGBx2LjQ3qB6Xih5naUh_4%3acreate_user_session%2c5dc619831bac4aa2e014e062d762645e8447949eaef14fc53a8ce2b1e0e2592a", "locale":"fr", "service": "cpaneld" }, "metadata": { "version": 1, "reason": "Created session", "result": 1, "command": "create_user_session" } } As you can see, the "url" element is absolute. We simply redirect to this link. I do note in the cPanel documentation that it is now possible to set a "preferred_domain" variable when contacting this endpoint, making it possible to redirect to a users own domain. Therefore I would encourage you to please submit a request to our feature requests tracker where other users can contribute to and vote on your idea. Ideas with the most votes and activity do get reviewed by our team. http://requests.whmcs.com
  8. Hi there! If you have the know-how, we provide documentation on creating your own Payment Gateway, here: https://developers.whmcs.com/payment-gateways/ We also offer a Sample Gateway Module which you can base your custom module off. This is available from: https://github.com/WHMCS/sample-merchant-gateway https://github.com/WHMCS/sample-gateway-module It depends on what time of gateway you are developing for as to which you'd need to use. Merchant Gateways are ones where Credit Card details are stored in WHMCS' database whereas standard "gateway" modules tend to lean more towards storing the card data on the providers server in exchange for a usable token. I hope this helps!
  9. This one should work. <button type="submit" class="btn btn-primary btn-lg">Continue &nbsp;<i class="fa fa-arrow-circle-right"></i>ÔĽŅ</button> If it doesn't then remove the icon. <button type="submit" class="btn btn-primary btn-lg">Continue</button>
  10. On my form I want to remove the font-awesome icon on the 'continue' button. Where do I remove that? See image. I'm using version 4.7 font-awesome, some of the font-awesome icons I use on my website aren't supported with the latest version and the two collide when used together. <button type="submit" class="btn btn-primary btn-lg">Continue &nbsp;<i class="fas fa-arrow-circle-right"></i></button>
  11. brian!

    Show hide text in configuredomains.tpl

    no he meant the configure domains stage...
  12. Hey there @steven99 that's correct yes the status changing to "Answered" is still an issue; however, after changing this line it's working the way I expect it to: //We have a message, so add it as a reply $command = 'AddTicketReply'; $postData = array( 'ticketid' => $vars['ticketid'], 'message' => $Message, 'status' => 'Under investigation', 'name'=>'TicketBot', 'email'=>$Email, 'useMarkdown' => true, );
  13. lims

    Show hide text in configuredomains.tpl

    did you mean hide this ? open General Settings >> Domaiin >> UnCheck ==> Allow clients to transfer a domain to you
  14. Had not noticed that behavior. In the addticketreply API call, add in: "status" => $params['status']. See below for updated code of the above hook. You could also use "adminusername" and set that to a general admin / ticketbot admin though may still have to set status. <?php use WHMCS\Database\Capsule; add_hook('TicketStatusChange', 1, function($vars) { $Ticket = localAPI('GetTicket', array('ticketid'=>$vars['ticketid'])); if ($Ticket['result'] == "success") { // We got ticket, now get department for email to use for reply try { $Department = Capsule::table('tblticketdepartments')->where( array('id'=>$Ticket['deptid']))->first(); } catch (Exception $e) { // Failed to get department, should not happen but oh well return false; } if ($Department) { $Email = $Department->email; if ($vars['status'] == "In Progress") { $Message = "Hey there,<br><br>Your ticket has been assigned to one of our technical team members and is currently under review, they will reply back here shortly with an update or to request more information about your issue."; } elseif ($vars['status'] == "On Hold") { $Message = "Hello, your ticket has been changed to ".$vars['status']." status."; } if (isset($Message) and $Message) { //We have a message, so add it as a reply $command = 'AddTicketReply'; $postData = array( 'ticketid' => $vars['ticketid'], 'message' => $Message, 'name'=>'TicketBot', 'email'=>$Email, 'useMarkdown' => true, 'status'=>$vars['status']); $results = localAPI($command, $postData); } // IF good message } // if department } // if get ticket was success });
  15. Emperor

    Create Product Bundles

    I've tried creating some product bundles for startups and it just doesn't work and intended or as intuitive as it seems. I'm trying to create a free domain name registration, hosting, and website creation for one price and it just doesn't work. I've added the products to a bundle and overridden the prices of registration but it asks the user to register the domain twice for some reason. Any way to change that behavior?
  16. One more question here - any time I set the ticket status now it changes the status back to "Customer Reply" because the reply comes from the customer. Is there a tag to make the reply from the system, or at least the current admin user?
  17. Hooks have a tendency to break without any indication like that. PHP error log may have shown that error also.
  18. steven99

    Attach documents to clients via API ?

    This has to be done via the database; $ClientFile = Capsule::table('tblclientsfiles') ->insert( array('userid'=>1, "title"=> "The great file", 'filename'=>"greatfile.doc", 'dateadded'=>date('Y-m-d')) ); Filename should be a file within the attachments directory. I also have heard that the filename needs to be prefixed with "file6DigitNumber" where "6DigitNumber" is a random number but I don't think that is 100% required.
  19. NRT/Redline

    Not sending Overdue Reminders to clients

    I talked to my Support for my Web Hosting provider and had them check what Steven had suggested, all is well on his thoughts. Brian: I had opened a ticket to WHMCS support re:the issues They had responded back that I needed to set up my e-mail to send out reminders....the reminder option is checked I have updated the ticket with the suggestions from above... Again Ty for your response Dave
  20. Kian

    How to validate user session on custom page ?

    Refer to Creating Pages. You don't need all the variables listed in the example but just the main class and... $ca->requireLogin(); // Forces visitors to login Or... if ($ca->isLoggedIn()) { // You are logged } else { // Not logged, exit }
  21. Daily cron runs at a specific time of day (Setup > Automation Settings > Time of Day) that is usually set to 0:00am. The log you posted comes from Domany Sync Cron which is another thing. Look for Cron Job: Completed in Utilities > Log > Activity Log.
  22. Welcome to WHMCS.Community historymakers! 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.

  23. brian!

    Not sending Overdue Reminders to clients

    is the cron running without any errors ? update: apparently not. what did Support have to say for themselves? it's hardly a glowing experience for their paid migration service.
  24. NRT/Redline

    Not sending Overdue Reminders to clients

    I am also all of a sudden getting a e-mail in txt format: Cron <nrtbilling@chi-node14> /usr/bin/php -q /home/nrtbilling/public_html/secure/whmcs/crons/cron.php 10 years using WHMCS...never an issue...now the gremlins have arrived..:) <!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>Critical Error</title> <style> body { margin: 30px 40px; background-color: #f6f6f6; } .error-container { padding: 50px 40px; font-family: "Helvetica Neue",Helvetica,Arial,sans-serif; font-size: 14px; } h1 { margin: 0; font-size: 48px; font-weight: 400; } h2 { margin: 0; font-size: 26px; font-weight: 300; } a { color: #336699; } p.back-to-home { margin-top: 30px; } p.debug{ padding: 20px 0; font-family: "Courier New", Courier, monospace, serif; font-size: 14px; } .info { border: solid 1px #999; padding: 5px; background-color: #d9edf7; } </style> </head> <body> <div class="error-container"><h1>Critical Error</h1><p>SQLSTATE[HY000]: General error: 1615 Prepared statement needs to be re-prepared (SQL: select * from `tblconfiguration`)</p></div> </body> </html> . Dave
  25. lims

    Custom Hostnsname URL cPanel

    thank so much @brian! this hook work for client area
  26. Welcome to WHMCS.Community Obouncetech! 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.

  1. Load more activity
×

Important Information

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