I don’t have much experience with PHP and was wondering if anyone could help me uncomment a few lines from the Woocommerce thankyou.php template that can be found here: https://github.com/woocommerce/woocommerce/blob/master/templates/checkout/thankyou.php . I need to remove the order details starting line 43-77:

    <ul class="woocommerce-order-overview woocommerce-thankyou-order-details order_details">

        <li class="woocommerce-order-overview__order order">
            <?php _e( 'Order number:', 'woocommerce' ); ?>
            <strong><?php echo $order->get_order_number(); ?></strong>

        <li class="woocommerce-order-overview__date date">
            <?php _e( 'Date:', 'woocommerce' ); ?>
            <strong><?php echo wc_format_datetime( $order->get_date_created() ); ?></strong>

        <li class="woocommerce-order-overview__total total">
            <?php _e( 'Total:', 'woocommerce' ); ?>
            <strong><?php echo $order->get_formatted_order_total(); ?></strong>

        <?php if ( $order->get_payment_method_title() ) : ?>

        <li class="woocommerce-order-overview__payment-method method">
            <?php _e( 'Payment method:', 'woocommerce' ); ?>
            <strong><?php echo wp_kses_post( $order->get_payment_method_title() ); ?></strong>

        <?php endif; ?>


<?php endif; ?>

<?php do_action( 'woocommerce_thankyou_' . $order->get_payment_method(), $order->get_id() ); ?>
<?php do_action( 'woocommerce_thankyou', $order->get_id() ); ?>

Thanks for your help!

Read more here: Uncommenting in Woocommerce template


If you know the solution of this issue, please leave us a reply in Comment section, to update the question.

Wordpress related questions and answers: