Managing WooCommerce orders can sometimes be tedious, especially when you frequently need to revisit the order confirmation (Thank You) page for specific orders. Manually retrieving the order_key and constructing URLs every time is inefficient. Fortunately, there is a much simpler solution to streamline this workflow.
Why revisit the Thank You page?
There are multiple reasons you might want to access an order confirmation page directly from the WooCommerce admin:
- Confirming the appearance and content of the Thank You page
- Quickly verifying order details presented to the customer
- Troubleshooting issues reported by customers
Solution
Here’s a straightforward approach using WooCommerce filters and actions that automatically creates an admin link to revisit the order confirmation page directly from the WooCommerce Orders admin screen. Copy and add this code to your child-theme’s functions.php file or a site-specific plugin. To maintain best practices and avoid conflicts, all functions are prefixed with gq_.
/**
* Adds an action button in WooCommerce admin order list to quickly access the thank-you page.
*
* @param array $actions Current actions available for the order.
* @param WC_Order $order WooCommerce order object.
*
* @return array Modified actions array including the new action.
*/
function gq_order_confirmation_action_button( $actions, $order ) {
if ( $order->has_status( wc_get_is_paid_statuses() ) ) {
$order_confirmation_url = add_query_arg( 'customer_view', $order->get_customer_id(), $order->get_checkout_order_received_url() );
$actions['order_confirmation'] = array(
'url' => $order_confirmation_url,
'name' => __( 'View Order Confirmation', 'woocommerce' ),
'action' => "view manage_order",
);
}
return $actions;
}
add_filter( 'woocommerce_admin_order_actions', 'gq_order_confirmation_action_button', 100, 2 );
/**
* Overrides the current user ID to enable viewing of the order confirmation page from admin.
*
* @param int $customer_id Original customer ID.
*
* @return int Modified customer ID based on the 'customer_view' URL parameter.
*/
function gq_short_circuit_current_user( $customer_id ) {
if ( ! empty( $_GET['customer_view'] ) ) {
$customer_id = wc_clean( wp_unslash( $_GET['customer_view'] ) );
}
return $customer_id;
}
add_filter( 'determine_current_user', 'gq_short_circuit_current_user' );
// Disable WooCommerce shopper verification for easier admin access
add_filter( 'woocommerce_order_received_verify_known_shoppers', '__return_false' );How Does It Work?
- Admin Action Button: The first function (
gq_order_confirmation_action_button) creates a convenient “View Order Confirmation” button on the WooCommerce Orders admin page, linking directly to the customer’s Thank You page. - Customer Context Handling: The second function (
gq_short_circuit_current_user) ensures the admin can view the order confirmation page exactly as the customer sees it, bypassing typical WooCommerce login checks. - Bypass Shopper Verification: Disabling shopper verification allows direct access without logging out from admin.
Benefits of This Approach
- Saves considerable time managing WooCommerce orders
- Simplifies troubleshooting customer order issues
- Improves customer service by quickly accessing and verifying order confirmation pages
These are in fact enormous ideas in regarding blogging. You have touched some nice points here. Any way keep up wrinting.
Everyone loves it whenever people come together and share opinions. Great site, continue the good work!
I simply couldn’t go away your website before suggesting that I really loved the usual information an individual supply on your visitors? Is gonna be back ceaselessly in order to check out new posts
I will immediately snatch your rss as I can’t to find your email subscription link or newsletter service. Do you have any? Kindly allow me recognise so that I could subscribe. Thanks.
Ahaa, its nice discussion concerning this piece of writing here at this web site, I have read all that, so now me also commenting at this place.
These are genuinely enormous ideas in about blogging. You have touched some pleasant things here. Any way keep up wrinting.
Incredible! This blog looks exactly like my old one! It’s on a entirely different topic but it has pretty much the same layout and design. Wonderful choice of colors!
Hi, I do think this is a great web site. I stumbledupon it 😉 I’m going to return once again since I saved as a favorite it. Money and freedom is the greatest way to change, may you be rich and continue to help other people.
I will immediately clutch your rss as I can not find your email subscription link or newsletter service. Do you have any? Kindly permit me know so that I may subscribe. Thanks.
I really like your writing style, fantastic info, thanks for posting :D.
Yo, check out jljl991! Been playing there for a bit and it’s pretty solid. Good vibes and the site’s easy to navigate. Give jljl991 a shot!
VV88vip, eh? I’ve dabbled. It’s got a decent spread of games and I haven’t had any issues. If you’re looking for a new spot, vv88vip might be worth a try. See for yourself: vv88vip.
Go88bet net? Hmm, that rings a bell. I think I’ve seen it around. Always on the hunt for new platforms. I would recommend it, go to go88bet.net.
Everyone loves what you guys are up too. This kind of clever work and exposure! Keep up the excellent works guys I’ve incorporated you guys to my own blogroll.
You have made some really good points there. I checked on the web to find out more about the issue and found most individuals will go along with your views on this website.
I really like it when individuals come together and share views. Great website, stick with it!
I like it when folks come together and share ideas. Great website, stick with it!
Some really nice and utilitarian information on this site, likewise I conceive the layout has got wonderful features.
¡A darle al casino en Caliente.mx! A ver si me saco el premio mayor… aunque sea para unas carnitas asadas. Un buen rato de diversión asegurada. Chequenlo aquí: caliente.mx casino
Caliente,mx es donde me echo unos buenos ratos. Siempre hay algo interesante para apostar y ganar. ¡A darle con todo! Enlace directo aquí: caliente,mx
Bet Caliente es la onda. Apuestas rápidas y fácil acceso a todo tipo de eventos. ¡Que empiece la suerte! No esperes más y entra por aquí: bet caliente
Really digging this breakdown of basic blackjack strategy! It’s cool to see how even small adjustments can impact your game. Thinking of trying some online platforms like jilitt legit to practice – seems user-friendly for beginners like me, especially with their onboarding process! Good stuff.
This is simple to do and the trouble out of your aspect is incomparable to the profit you receive: day by day free robux.
Hi there, just wanted to mention, I liked this post. It was funny. Keep on posting!
Decided to give the ‘xổ số 66 app’ a whirl. Hoping for some beginner’s luck! Link right here if you are curious: xổ số 66 app
For comprehensive Macau scores and info, I rely on 7m.cn ma cao. Everything you need to stay in the loop! Give it a try, you won’t regret it! 7m.cn ma cao
ty so bong da ma cao always comes through. Fast updates for Macau football is a good look! Find More informations here : ty so bong da ma cao
This is an excellent solution! The code snippet elegantly solves a common WooCommerce workflow pain point. I’d suggest adding a capability check `current_user_can( ‘edit_shop_orders’ )` for security. Similar to how jljl55 play legit platforms implement admin access controls, this enhancement would ensure only authorized staff can access confirmation pages. Thanks for sharing this practical approach!
This is a brilliant solution! The `has_status()` check with paid statuses is a smart touch—it prevents access to pending order confirmation pages. I’ve implemented similar user experience optimizations at okfun ph, where streamlining admin workflows directly impacts customer satisfaction. The code structure is clean and follows WordPress best practices perfectly.
Just tried the 345betapp. Pretty smooth experience on my phone. Quick and easy. Could be your new favorite. Download here: 345betapp.
Hey, feels like Vegas right from my sofa! Las Vegas Casino has a lot of great games. I’m impressed. Let’s play! Check it out: lasvegascasino.
Yo, heard about king98? Trying to step up my game. Seems legit with some good opportunities. Let’s see if I can hit the jackpot! king98
Looking for somewhere to download yo88? I believe it is right here! tải yo88 Give yo88bright.com a go i heard it’s pretty good.
Need to download the i9bet app? You might find it at baccarat88clb.com! Gotta have that convenience, right? Check it out! tải app i9bet
Alright, need the official Mana88 trang chủ chính thức? Well, here it is, apparently. Let’s hope it’s legit and not some fake: mana88 trang chủ chính thức
PH987comlogin… sounds like a place to sign up and play. Hope it’s easy to navigate. Check it out here: ph987comlogin
Estrelabet, another one to try my luck on. Let’s hope I get some winnings! Give it a look for yourself: estrelabet
Alright mates, just swung by me777login the other day. Quick and easy sign-up, no BS. Good selection of games to keep me entertained. Defo worth a look! Check it out here: me777login
666 Jili? That’s the name I’m hearing everywhere The Jili games are super fun and the site runs smoothly I’m giving it a thumbs up 666 jili
Hey guys, anyone else using goal11? Using the goal11login and seems fairly straight forward to me. Check out the link here: goal11login
Okay, I gave bravobethistorico a shot and I gotta say, it’s pretty solid. The historical theme is a nice touch. Check it out! bravobethistorico
Hey now, zh888game, you got some interesting stuff going on. The graphics are sharp and the gameplay is pretty smooth. I’m still exploring, but so far, so good. If you’re looking for something new, give it a try via: zh888game
Alright, ph367casino, you’ve caught my attention. The live casino games are pretty sweet, and the dealers are engaging. Definitely a good time if you’re looking for that real casino feel. Give it a whirl at: ph367casino
Heard a lot about b369apk, so I downloaded it. Pretty decent selection of games if you’re looking for something new. The app itself is slick and loads fast, which is a huge plus. Worth checking out. Grab it here: b369apk.