Change Woocommerce quantity / productname order in checkout table

I would like to change the order of items in the checkout order area.
I want to show the product quantity before the product name.

So instead of:
Air flow meter oxygen × 1

I would like to show:
1 x Air flow meter oxygen

I’ve managed to find the review-order.php and added it to my child theme so it’s update compatible.

I changed the order like this:

                    <?php echo apply_filters( 'woocommerce_checkout_cart_item_quantity', ' <strong class="product-quantity">' . sprintf( $cart_item['quantity'], '&times;&nbsp;%s' ) . '</strong>', $cart_item, $cart_item_key ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?>
                    <?php echo wp_kses_post( apply_filters( 'woocommerce_cart_item_name', $_product->get_name(), $cart_item, $cart_item_key ) ) . '&nbsp;'; ?>

                    <?php echo wc_get_formatted_cart_item_data( $cart_item ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?>

It now shows:

x 1
Air flow meter oxygen

I can’t seem to figure out how:

  • I can remove the break after the quantity so it is set on one line.

  • And how to change the order of the number and the x
    I already switched the $cart_item[‘quantity’] and the ‘× %s’. But I guess that does nothing.

Hope somebody can help, I really appreciate it.
Kind regards,
Emile