Check wc_checkout_params.is_checkout against string '1' instead of int 1
This was causing `’init_checkout’` not to be triggered on page load. I
noticed this when the taxes for an order weren’t being shown on the
checkout page until changing the billing address.
Introduced in b85b1ab03b
This commit is contained in:
parent
7aa448e9f7
commit
f3ab25c12c
|
@ -391,7 +391,7 @@ jQuery( function( $ ) {
|
|||
});
|
||||
|
||||
// Update on page load
|
||||
if ( wc_checkout_params.is_checkout === 1 ) {
|
||||
if ( wc_checkout_params.is_checkout === '1' ) {
|
||||
$( 'body' ).trigger( 'init_checkout' );
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue