diff --git a/includes/class-wc-checkout.php b/includes/class-wc-checkout.php index 6e030441fd00..253fb2a38694 100644 --- a/includes/class-wc-checkout.php +++ b/includes/class-wc-checkout.php @@ -184,7 +184,7 @@ public function create_order() { 'status' => apply_filters( 'woocommerce_default_order_status', 'pending' ), 'customer_id' => $this->customer_id, 'customer_note' => isset( $this->posted['order_comments'] ) ? $this->posted['order_comments'] : '', - 'cart_hash' => md5( json_encode( WC()->cart->get_cart_for_session() ) . WC()->cart->total ), + 'cart_hash' => md5( print_r( WC()->cart->get_cart_for_session(), true ) . WC()->cart->total ), 'created_via' => 'checkout' );