Change the way order review data is appended to checkout to reduce likelihood of error
Fixes #5332
This commit is contained in:
parent
bf0fafa17b
commit
5d872918d6
|
@ -78,8 +78,7 @@ jQuery( function( $ ) {
|
|||
data: data,
|
||||
success: function( response ) {
|
||||
if ( response ) {
|
||||
var order_output = $( $.parseHTML( $.trim( response ) ) );
|
||||
$( '#order_review' ).html( order_output.html() );
|
||||
$( '#order_review' ).html( $.trim( response ) );
|
||||
$( '#order_review' ).find( 'input[name=payment_method]:checked' ).trigger('click');
|
||||
$( 'body' ).trigger('updated_checkout' );
|
||||
}
|
||||
|
|
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue