News:

You may pay someone to create your store, or you visit our seminar and become a professional yourself with the silver certification

Main Menu

Change payment method not working in Internet Explorer after upgrade to VM 3.8.2

Started by Thomas Kampp, June 11, 2020, 22:47:32 PM

Previous topic - Next topic

Thomas Kampp

The subject says it all :) Change payment method is not working in Internet Explorer (ver. 11) after upgrade to VM 3.8.2. It flickers and then returns to the previous state/selection (that was on load of the cart view).

I know Internet Explorer is horrible, not supported and dead - but 7,8 % of my customers users use it due to some government regulation.
Danish Joomla Services: www.toolmaster.dk
Danish Joomla Services: www.joomla-konsulent.dk
Danish Joomla Hosting: www.joomla-hosting.dk
Danish Smart Home: www.smart-home-konsulent.dk
Danish Subject Blog: www.sutra.dk

Jörgen

If this only happens with ie, then it is probably a Lost case.
Jörgen @ Kreativ Fotografi
Joomla 3.9.18
Virtuemart 3.4.x
Olympiantheme Hera (customized)
This reflects current status when viewing old post.

Thomas Kampp

True (and rightfully so). I just wonder why it has worked until the newest release of Virtuemart? What and why was it changed... and could that part work with the old working code?
Danish Joomla Services: www.toolmaster.dk
Danish Joomla Services: www.joomla-konsulent.dk
Danish Joomla Hosting: www.joomla-hosting.dk
Danish Smart Home: www.smart-home-konsulent.dk
Danish Subject Blog: www.sutra.dk

AH

I just tested and selection on delivery or payment methods fails to hold selection using IE 11

That is a bug as it used to function on 3.6 the JS has changed in 3.8.3 - there is no reason for it not to work!
Regards
A

Joomla 3.10.11
php 8.0

Milbo

Should I fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/

AH

Regards
A

Joomla 3.10.11
php 8.0

Thomas Kampp

You mean fixed by disabling AJAX for the cart?
What implications (downsides) does that have?
Danish Joomla Services: www.toolmaster.dk
Danish Joomla Services: www.joomla-konsulent.dk
Danish Joomla Hosting: www.joomla-hosting.dk
Danish Smart Home: www.smart-home-konsulent.dk
Danish Subject Blog: www.sutra.dk

Jörgen

Disabling AJAX is not neccessary any more. Max has made a bug fix for this in the next release.

Jörgen @ Kreativ Fotografi

Joomla 3.9.18
Virtuemart 3.4.x
Olympiantheme Hera (customized)
This reflects current status when viewing old post.

Thomas Kampp

Danish Joomla Services: www.toolmaster.dk
Danish Joomla Services: www.joomla-konsulent.dk
Danish Joomla Hosting: www.joomla-hosting.dk
Danish Smart Home: www.smart-home-konsulent.dk
Danish Subject Blog: www.sutra.dk

AH

Thomas

This is the proposed fix:

Components/comvirtuemart/views/cart/view.html.php

Around line 542, change the javascript to what is shown below


Quote
jQuery(document).ready(function(){
   var chkOutBtn = jQuery("#checkoutFormSubmit");
   var form = jQuery("#checkoutForm");
   
   jQuery("#checkoutForm").find(":radio, :checkbox").bind("change", Virtuemart.autocheck);
   
//   jQuery(".output-shipto").find("input").unbind("change", Virtuemart.autocheck);
   jQuery ("input[type=radio][name=shipto]").unbind("change", Virtuemart.autocheck);
   jQuery ("input[type=radio][name=virtuemart_paymentmethod_id]").unbind("change", Virtuemart.autocheck);
   jQuery ("input[type=radio][name=virtuemart_shipmentmethod_id]").unbind("change", Virtuemart.autocheck);
   
   jQuery(".output-shipto").find(":radio").bind("change", function(){
      chkOutBtn.attr("task","checkout");
      
      '.$updF.'
      form.submit();
   });
Regards
A

Joomla 3.10.11
php 8.0

Thomas Kampp

Danish Joomla Services: www.toolmaster.dk
Danish Joomla Services: www.joomla-konsulent.dk
Danish Joomla Hosting: www.joomla-hosting.dk
Danish Smart Home: www.smart-home-konsulent.dk
Danish Subject Blog: www.sutra.dk

Milbo

Should I fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/

AH

Thomas

this is what will probably be released to live

Quote
jQuery(document).ready(function($){
   var chkOutBtn = jQuery("#checkoutFormSubmit");
   var form = jQuery("#checkoutForm");
   
   $("#checkoutForm").find(":radio, :checkbox").bind("change", Virtuemart.autocheck);
   
   $ ("input[type=radio][name=shipto]").unbind("change", Virtuemart.autocheck);
   $ ("input[type=radio][name=virtuemart_paymentmethod_id]").unbind("change", Virtuemart.autocheck);
   $ ("input[type=radio][name=virtuemart_shipmentmethod_id]").unbind("change", Virtuemart.autocheck);
   
   $ ("input[type=radio][name=shipto]").bind("change", function(){
      chkOutBtn.attr("task","checkout");
      
      '.$updF.'
      form.submit();
   });
});';
Regards
A

Joomla 3.10.11
php 8.0