cant view order-received with admin order
-
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' )
conditionnone the less – a filter to overide this behaviour would be nice ??
Thanks
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘cant view order-received with admin order’ is closed to new replies.