• Resolved dannygetitcoil

    (@dannygetitcoil)


    Hey – seen a lot of discussion on the matter – having the same issue

    the problem is that when the order is not completed by the user itself but with an admin such has a sales agent for example – you get “Please log in to your account to view this order.”

    the problem lies within line 302 on file: \woocommerce\includes\shortcodes\class-wc-shortcode-checkout.php

    // For non-guest orders, require the user to be logged in before showing this page.
    		if ( $order_customer_id && get_current_user_id() !== $order_customer_id ) {
    			wc_print_notice( esc_html__( 'Please log in to your account to view this order.', 'woocommerce' ), 'notice' );
    			woocommerce_login_form( array( 'redirect' => $order->get_checkout_order_received_url() ) );
    return;
    }

    i think maybe one of the soultions might be to merge the above condition with is_created_via( 'admin' ) condition

    none the less – a filter to overide this behaviour would be nice ??

    Thanks

Viewing 1 replies (of 1 total)
  • Saif

    (@babylon1999)

    Hello @dannygetitcoil,

    Thank you for reaching out!

    I understand you’re referring to the email verification required for reviewing guest order links, correct?

    Just so you know, there is a filter to disable this:

    add_filter( 'woocommerce_order_email_verification_required', '__return_false' );

    It’s worth noting that not all merchants have reported success with it. We are currently tracking this issue in this report: WooCommerce GitHub Issue #39750.

    Could you please let us know if it’s working for you?

    Look forward to hearing back from you.

Viewing 1 replies (of 1 total)
  • The topic ‘cant view order-received with admin order’ is closed to new replies.