VirtueMart Forum

VirtueMart 2 + 3 + 4 => Virtuemart Development and bug reports => Topic started by: xelorduy on July 21, 2016, 12:23:10 PM

Title: VIRTUEMART 3.0.16 CHECKOUT PROBLEM - JOOMLA 3.5.1
Post by: xelorduy on July 21, 2016, 12:23:10 PM
Hi everyone,

We have a problem with the checkout of the page of one of our clients. During the process of the checkout, when someone try to confirm a purchase and press the confirmation button, the button get disabled and nothing happens. The only solution is to refresh the page and press the button again. This problem appears in different moments of the confirmation process.

Do someone has the same problem?
Title: Re: VIRTUEMART 3.0.16 CHECKOUT PROBLEM - JOOMLA 3.5.1
Post by: GJC Web Design on July 21, 2016, 14:56:06 PM
will be a template issue... commercial template?

Try with protostar to test
Title: Re: VIRTUEMART 3.0.16 CHECKOUT PROBLEM - JOOMLA 3.5.1
Post by: xelorduy on July 21, 2016, 17:13:50 PM
It´s our template, not commercial. We don´t know which is the relation that could be between the template and the checkout component. Do you have any idea of where could be the problem or the conflict with the template?

Thanks
Title: Re: VIRTUEMART 3.0.16 CHECKOUT PROBLEM - JOOMLA 3.5.1
Post by: GJC Web Design on July 21, 2016, 17:16:49 PM
compare the cart template of the std files with yours

the chkout but is disabled by a JS routine to prevent multiclicks etc
Title: Re: VIRTUEMART 3.0.16 CHECKOUT PROBLEM - JOOMLA 3.5.1
Post by: xelorduy on July 21, 2016, 17:30:14 PM
We don´t make the cart template, we have made the Joomla template with Bootstrap 3 with Jquery and we call to the checkout component of virtuamart. We only modify the CSS.
Title: Re: VIRTUEMART 3.0.16 CHECKOUT PROBLEM - JOOMLA 3.5.1
Post by: StefanSTS on July 22, 2016, 11:13:33 AM
Would be helpful to have a link to the site. A look into the head might reveal some problem.

Any extensions installed?

Stefan
Title: Re: VIRTUEMART 3.0.16 CHECKOUT PROBLEM - JOOMLA 3.5.1
Post by: xelorduy on July 22, 2016, 13:14:10 PM
The link is http://ume2010.es/es/.
It is in Spanish.
Extensions: Virtuemart, osmap

Thank you
Title: Re: VIRTUEMART 3.0.16 CHECKOUT PROBLEM - JOOMLA 3.5.1
Post by: Milbo on July 22, 2016, 14:20:28 PM
I also suggest to install our last http://dev.virtuemart.net/attachments/download/1010/com_virtuemart.3.0.17.4_extract_first.zip
Title: Re: VIRTUEMART 3.0.16 CHECKOUT PROBLEM - JOOMLA 3.5.1
Post by: GJC Web Design on July 22, 2016, 17:57:21 PM
something goes wrong in this script
</script>
<script id="vm.checkoutFormSubmit_js" type="text/javascript">//<![CDATA[
jQuery(document).ready(function($) {
      jQuery(this).vm2front("stopVmLoading");
      jQuery("#checkoutFormSubmit").bind("click dblclick", function(e){
         jQuery(this).vm2front("startVmLoading");
         e.preventDefault();
         jQuery(this).attr("disabled", "true");
         jQuery(this).removeClass( "vm-button-correct" );
         jQuery(this).addClass( "vm-button" );
         jQuery(this).fadeIn( 400 );
         var name = jQuery(this).attr("name");
         $("#checkoutForm").append("<input name=\""+name+"\" value=\"1\" type=\"hidden\">");
         $("#checkoutForm").submit();
      });
   }); //]]>
</script>

it adds the disabled att , adds the class vm-button, adds the hidden element .. then stops with no errors

perhaps try to eliminate the mix of jQuery and $

so

jQuery("#checkoutForm").append("<input name=\""+name+"\" value=\"1\" type=\"hidden\">");
         jQuery("#checkoutForm").submit();

or as Max says.. try the latest version
Title: Re: VIRTUEMART 3.0.16 CHECKOUT PROBLEM - JOOMLA 3.5.1
Post by: xelorduy on July 22, 2016, 19:33:18 PM
I will try to change $ for Jquery Where is the file?

Thank you
Title: Re: VIRTUEMART 3.0.16 CHECKOUT PROBLEM - JOOMLA 3.5.1
Post by: GJC Web Design on July 23, 2016, 01:22:03 AM
cart template default.php

but code is completely different to yours in vm3.0.16 .. so your obviously not using the latest
Title: Re: VIRTUEMART 3.0.16 CHECKOUT PROBLEM - JOOMLA 3.5.1
Post by: xelorduy on July 23, 2016, 11:12:40 AM
I have changed $ for jQuery, there was no change. I am going to install the new version, but in test environment.

Thank you
Title: Re: VIRTUEMART 3.0.16 CHECKOUT PROBLEM - JOOMLA 3.5.1
Post by: xelorduy on July 27, 2016, 11:11:39 AM
I have installed the version 3.0.17.4 and joomla 3.6 the problem is the same.

Thank