Major announcement from Go Higher Information Services  Read More
Toggle Bar


Find the latest tricks and techniques for using or customizing your site with our software

JWHMCS Submit Button Fixes

I thought I'd take a moment and pass along a helpful script that may be of use to some of our customers.  If you are integrating your site with J!WHMCS and are using the WHMCS 'Default' template, you may have found your submit input buttons are not working properly, for example, when you click on the button, nothing happens.

This seems to be happening because of a javascript conflict or issue with the jQuery 1.11 library coming out of Joomla.  Not 100% sure why, but it has been encountered on a number of installs, and I've implemented this little patch to get around the issue.

To resolve, follow these simple steps:

  1. Create a file on your computer, call it 'buttonfix.php'
  2. Edit this new file and insert the following code:
    function buttonfix()
    	$js	=	<<< JS
    <script type="text/javascript">
    jQuery( "input:submit[class=btn]" ).on( 'click', function() {
    	return $js;
    add_hook("ClientAreaFooterOutput", 1, "buttonfix" );
  3. Save this file to your computer.
  4. Log in with FTP and upload the file to the following location:
  5. Log into your site and test your buttons. They should now function as they are intended.

You may also need to extend this to include the input:button[class=btn] type, but for submit buttons this code will work.

Recent Posts

Blog Archived