Fix numeric rates
This commit is contained in:
parent
97d47fb576
commit
1630913c62
|
@ -315,7 +315,7 @@ class WC_Shipping {
|
|||
foreach ( $this->load_shipping_methods( $package ) as $shipping_method ) {
|
||||
// Shipping instances need an ID
|
||||
if ( ! $shipping_method->supports( 'shipping-zones' ) || $shipping_method->get_instance_id() ) {
|
||||
$package['rates'] = array_merge( $package['rates'], $shipping_method->get_rates_for_package( $package ) );
|
||||
$package['rates'] = $package['rates'] + $shipping_method->get_rates_for_package( $package ); // + instead of array_merge maintains numeric keys
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue