Merge pull request #17527 from greguly/patch-5

Shipping selection for multiple packages
This commit is contained in:
Mike Jolley 2017-11-08 14:11:17 +00:00 committed by GitHub
commit 74ece1b7aa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 3 deletions

View File

@ -185,12 +185,10 @@ jQuery( function( $ ) {
* @param {Object} evt The JQuery event.
*/
shipping_method_selected: function( evt ) {
var target = evt.currentTarget;
var shipping_methods = {};
$( 'select.shipping_method, input[name^=shipping_method][type=radio]:checked, input[name^=shipping_method][type=hidden]' ).each( function() {
shipping_methods[ $( target ).data( 'index' ) ] = $( target ).val();
shipping_methods[ $( this ).data( 'index' ) ] = $( this ).val();
} );
block( $( 'div.cart_totals' ) );