I am working on a site that has very slow shipping methods. (it makes sense because they are shipping very heavy things by freight and get specific quotes)
So, when I change an address manually, the opc-overlay is made active. When I chose a stored address from the dropdown it is not. This means that while the quotes are being received, the customer can hit the checkout button. Which causes issues.
At about line 700 in jquery.checkout_one.js I have a fix in
Code:
// -----
// Monitor the billing- and shipping-address blocks for changes.
//
jQuery(document).on('change', '#select-address-bill', function(event) {
jQuery('#checkoutPayment > .opc-overlay').addClass('active');
useSelectedAddress('bill', this.value);
});
jQuery(document).on('change', '#select-address-ship', function(event) {
jQuery('#checkoutPayment > .opc-overlay').addClass('active');
useSelectedAddress('ship', this.value);
});
Not sure if this is the appropriate way of doing it or not ...
(or maybe I am missing something)
Bookmarks