Jump to content


Popular Content

Showing content with the highest reputation since 02/12/2020 in all areas

  1. 2 points
    Use this action hook. <?php add_hook('AdminAreaHeaderOutput', 1, function($vars) { if ($vars['filename'] == 'invoices' AND !$_GET['id']) { $output .= <<<HTML <style> #sortabletbl0 tr td:nth-child(3) { text-align: left; } #sortabletbl0 tr td:nth-child(7) { text-align: right; } </style> HTML; return $output; } }); Result:
  2. 1 point
    Please help me to understand what you mean. Let's say that a customer has the following services: 3x Hosting Silver 1x Hosting Bronze 1x Hosting Platinum The first day of every month you want to issue 3 invoices like follows: 1x Invoice for 3x Hosting Silver 1x Invoice for 1x Hosting Bronze 1x Invoice for 1x Hosting Platinum Is it correct? If so, there are modules that let you to issue monthly invoices but the final result will be a single invoice that contains all 5 services. Alternatively you could use manual invoicing where you can decide if/when/what you want to bill. This way you can get what you want but your manual intervention is required.
  3. 1 point
    I've created an API key and setup properly the mailchimp API on WHMCS. Although the opt in is not working for new clients. I've tried the including the new client both with WHMCS api calls (AddClient) and trough WHMCS interface, none of them worked. I've not found any logs, except for the activity log which shows that the user opted in for e-mails.
  4. 1 point
    some. ☺️ it's been on the pending list since you posted... but sadly I only have one pair of hands and 24 hours in the day! πŸ™ currency is relatively simple because you can get the currency ID value from tblclients and then it's just a case of looking up the value in tblcurrencies and getting the code (e.g USD, GBP etc). then for product group, you'll have to decide if you just want the gid value, or if you need to convert it to a product group name. if you're not used to laravel queries, then using sentq's report from the other thread might be a good starting point for you... and let me know if you get it working as it will save me wasting time looking at it if it's already done. πŸ™‚
  5. 1 point
    Hi @pRieStaKos, Thanks for bringing this to our attention. I can confirm there is a single meta hotfix file for all 7.8.3 hotfixes. I've ensured that all the cases are now linking to the latest file.
  6. 1 point
    ooh, if you mention "five", then which version of WHMCS are you using ?? I as because five was deprecated many years ago, as was the Modern template (which although still shipped isn't really being updated).
  7. 1 point
    I've submitted a bug report to WHMCS and will post any updates here.
  8. 1 point
    sentq I need this as well. However, the code above didn't work for me. Please and thank you!
  9. 1 point
    that's the one - though if you're unfamiliar with it, then it might be easier to edit scripts.js (in the same folder but not used by WHMCS), go to a site like jscompress.com and compress the updated code... and then paste the compressed code into scripts.min.js worst case, I can send you the updated scripts.min.js to use and then you can just do a string replace on the BBC domain in any text editor, but have a go at doing it yourself first. precisely how depends on where you want to redirect the end user. so if you have a product group in your cart for Comodo SSL Certs, and it has the product group = 5, then the code to link to that group would be... jQuery(document).on('click', '.ssl-state.ssl-inactive', function(e) { e.preventDefault(); var gidvalue="5"; window.location.href = "cart.php?gid=" + gidvalue; }); technically, you could drop the var line and add its value directly to the URL, but I assume I originally added it as a separate line to simplify it for those users to just enter a product group ID separately rather than editing the URL itself... so the following should work too.. jQuery(document).on('click', '.ssl-state.ssl-inactive', function(e) { e.preventDefault(); window.location.href = "cart.php?gid=5"; }); ... and if you wanted to link it to an external site, then that last line becomes.. window.location.href = "https://www.bbc.co.uk/news"; frustratingly, i've almost got this working as a hook, but it's changing the URL on all states, and not just inactive... so go with modifying scripts.min.js πŸ™‚
  10. 1 point
    Don't do it. My 2 cents. That's exactly what I'd do. It's boring πŸ˜‘
  11. 1 point
    the jQuery solution definitely still does - I doubled-checked that before posting the above yesterday. πŸ™‚ for example, in the screenshot below, i've changed the SSL link to go to the BBC News site - not a good place to buy SSL certificates, but it proves the point that the red padlock links are changing on the services (and domains) pages! using this technique, that link can be changed to a local page, e.g a specific cart group, a sales page on your site or as above, an external site - it can even be disabled so that the whole row just links to its product/domain details page. ideally, someone should convert it to a hook, but as a proof of concept, it definitely still works in v7.9.1 actually, in an ideal world, there would have been a field in general settings where you could have added a specific sales URL yourself - but sadly, over the last few years, the default position of WHMCS is for them to make decisions on the users behalf and not give their paying users choices.
  12. 1 point
    the thread below is the solution I posted a year ago for v7.7 - the jQuery tweak certainly still works in v7.9.1, but i'm not sure about the template changes option. it's almost as if the feature was added to increase MarketConnect revenue for WHMCS. πŸ€‘
  13. 1 point
    Have you actually tried to change the value of 'ListAccountsUniqueIdentifierField' => 'domain', into this: 'ListAccountsUniqueIdentifierField' => 'id', And then in your usage() method return array with keys, that are the same as service ids? For instance: public function usage() { return [ 1 => $this->wrapUserData([ 'disk' => 321, 'bandwidth' => 123, ]), 2 => $this->wrapUserData([ 'disk' => 321, 'bandwidth' => 123, ]), 3 => $this->wrapUserData([ 'disk' => 321, 'bandwidth' => 123, ]), ]; } Where keys 1, 2 and 3 are service ids respectively. So, according to that scenario, WHMCS first runs provisioningmodule_CreateAccount() function, where you are already able to get 'serviceid' from the $params array and pass it further (via api, for instance). On the other side you can save it to keep the relation between whmcs entity and the created entity on your "server" side. And when WHMCS calls usage() function you just need to return the array mapped by appropriate keys. It is obviously not the perfect solution, but it should work. P.S. The key 'ListAccountsUniqueIdentifierField' was previously described here https://developers.whmcs.com/provisioning-modules/server-sync/. So if you don't have a server sync feature integrated within your provisioning module, I believe you can safely use it for usage stats. Totally agree with this statement.
  14. 1 point
    Which cart are you using with WHMCS?
  15. 1 point
    Hello, This error is generally caused by an outdated client template (non-updated scripts.js file or the wrong structure). Which version of WHMCS are you running? Has your template been updated to support this version of WHMCS?
  16. 1 point
    then buy the Client Notifications addon! πŸ™„ <?php add_hook('ClientAreaHomepage', 1, function($vars) { return '<div class="alert alert-success"><div class="row"><div class="col-sm-1"><i class="fab fa-whmcs fa-3x"></i></div><div class="col-sm-11">Welcome to WHMCS!<br><small>buy the addon!</small></div></div></div>'; }); you could always log into their demo if you want to steal their div layout code, but you'd likely have to copy and adapt their css too.
  17. 1 point
    I am running version 7.7.1 and this red padlock is still an issue. Why did you not give us the option to disable this? This is causing confusion from our customers and we look like idiots. My curl on the server is fine and does not return any errors. Its your code thats wrong. All of our customer sitessites that have SSL certificates are showing up with the red padlock! unacceptable. So can we have a proper solution now? please provide a hotfix to clean up this mess.
  18. 1 point
    let us not forget that they are effectively adding banner adverts in the admin area on 'normal' pages - e.g., on the products page, there is a banner link to CodeGuard if selling the service isn't enabled in MarketConnect... in fact, the only way I can see to remove that banner (other than using an adblocker) is to activate CodeGuard in MarketConnect... the more people using CodeGuard, the more $$$ WHMCS earn. I am growing so tired of seeing features that haven't been asked for, enabled by default with no option to turn them off.. this SSL feature is just one of many similar issues.... I could give a list, but we all know what they are.
  19. 1 point
    Exactly this ^^^ A cURL call with verifypeer and display the response isn't exactly a cutting edge feature (although WHMCS still manage to foul it up with inadequate testing), just a thinly disguised attempt to drive more MarketConnect SSL business to them in cases where users are silly enough to use it. Of course if it actually did something useful, like look for SSLs that are present in client accounts and sync the renewal dates like they do for domains, then it would be different. After all, evidently they did name it "SslSync" so the unwitting might even be led to believe that's what it does. But as of now it's just worthless fluff that apparently doesn't work properly, can't readily be switched off and is generally opaque 😐
  20. 1 point
    That is why I wait for the WHMCS "live customer testing" period to advance for a month or so until things stabilise at which point they have either produced a maintenance release or a bunch of hot fixes. I agree entirely! But they want you to use their Market Connect to resell their SSL's. The more they can force users to channel their business through them the better.....
  21. 1 point
    This solution is known since Beta. But you will have still the check up in the Background for nothing. This feature needs to be deactivated . Greetings Christian
  22. 1 point
    This SSL check is definitely an unwanted nuisance.. can't think of any good it actually does. Easy solution is to just use the template files for clientareaproductdetails.tpl clientareaproducts.tpl clientareadomains.tpl clientareadomaindetails.tpl From the latest 7.6 branch of WHMCS.
  23. 1 point
    do you think the timing of launching a beta testing period one week before Christmas might have had something to do with that? πŸ™„
  24. 1 point
    Security Patch Released for 7.3, 7.4 and 7.5 Four potential security issues have been identified in WHMCS 7.5 and earlier. It is recommended that you apply this patch as soon as possible.The issues resolved include:- Project permissions within the Project Management addon- Potential XSS on admin homepage- Improper client password reset logic- Improper admin access to remote servers via WHMCS ConnectYou can apply this patch using the Automatic Updater. The Auto-Updater allows you to apply the patch to your current version, or update to the latest available version (7.5.2) of WHMCS. Learn moreAlternatively, you can download the patch for your version at https://download.whmcs.com/#patch. To install the patch:1) Download the appropriate files for your version of WHMCS2) Upload all files found within the zip file to the root WHMCS directory overwriting any existing filesIf you are using WHMCS 7.2 or earlier, you should upgrade to WHMCS 7.5.2.Respective Release Notes:7.3: https://docs.whmcs.com/Version_7.3.1_Release_Notes7.4: https://docs.whmcs.com/Version_7.4.3_Release_Notes7.5: https://docs.whmcs.com/Version_7.5.2_Release_Notes For the original announcement, please see our blog: https://blog.whmcs.com/133497/security-patch-released-for-73-74-and-75
  25. 1 point
    that general setting is for email logos... if you wanted to change the web template logo, it would be using the link below... assuming you were using a variation of Six.... http://docs.whmcs.com/Version_6.0_Release_Notes#New_Location_for_Custom_Logo_Files

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated