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
Hey guys, been having a blast with no1jilibetloglogin lately! Easy to navigate and the games are tons of fun. Definitely worth checking out! Learn more at no1jilibetloglogin
Needed to download in7game and in7gamedownload sorted me out. Clean download, no weird stuff. Top marks. Download from in7gamedownload
Scratch cards are such a fun, quick thrill! Seeing platforms like jl1 legit focus on secure accounts & easy funding is great – makes enjoying games so much smoother. Definitely a step up for online gaming in the Philippines! ✨
Great insights! For those looking to streamline AI tool discovery, check out AI Business Solutions-a well-organized hub with over 500+ vetted tools across niches.
That’s a solid point about evolving gaming tech! Seeing platforms like jili host download prioritize fast, secure transactions (GCash/PayMaya!) is key for the Philippine market. Accessibility is huge too – instant registration is a game changer. 🤔
188betdangnhap! Now they’re just being fancy. Hope their site lives up to the name. Let’s see… 188betdangnhap
If you’re diving into live dealer games, JiliOK offers a refined experience with smooth gameplay and great variety. The AI-driven features add a smart edge. Check out the JiliOK Download to explore it yourself.
Interesting analysis! Seeing platforms like jl 77 slot really push competitive gaming in the Philippines is exciting. The focus on balanced mechanics & fast load times-like pro esports-is key for growth! 🤔
Heard some whispers about vaidbet… is it a decent site to have a go on or just a rabbit hole? Anyone got any insight before I jump in? vaidbet
Hey everyone! Just wanted to say I’ve been using 55bbbet.info for a while now and I’m pretty happy with it. Good bonuses and a wide selection of games. Give it a try! 55bbbet
Heard some good things about 577bet1.net and decided to check it out myself. Pretty impressed! The site is easy to navigate and they have a great selection of games. Definitely worth a look. 577bet1
Hi, I do believe this is an excellent blog. I stumbledupon it 😉 I may come back once again since i have saved as a favorite it. Money and freedom is the best way to change, may you be rich and continue to help other people.
I’ll immediately seize your rss feed as I can not in finding your email subscription hyperlink or e-newsletter service. Do you have any? Please let me recognize so that I could subscribe. Thanks.
Ahaa, its good conversation regarding this piece of writing at this place at this weblog, I have read all that, so at this time me also commenting at this place.
But wanna comment on few general things, The website style is perfect, the content is really good :D.
I love it when people get together and share opinions. Great blog, keep it up!
I like what you guys are up too. This sort of clever work and coverage! Keep up the superb works guys I’ve included you guys to our blogroll.
I will right away take hold of your rss feed as I can not find your email subscription link or e-newsletter service. Do you have any? Please permit me recognise so that I may subscribe. Thanks.
Ahaa, its fastidious dialogue concerning this paragraph at this place at this blog, I have read all that, so now me also commenting at this place.
Amazing! 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. Great choice of colors!
I will right away take hold of your rss feed as I can’t to find your e-mail subscription hyperlink or e-newsletter service. Do you have any? Please let me realize so that I could subscribe. Thanks.
Wow, this paragraph is nice, my younger sister is analyzing such things, so I am going to inform her.
This solution elegantly addresses a common WooCommerce pain point. The filter-based approach maintains clean code architecture while improving admin workflow. Similar to how JLJL55 PH login prioritizes user experience through intuitive design, this enhancement streamlines merchant operations. Consider adding error handling for edge cases where order keys might be missing. Great practical solution!
Trying my luck at 718betwin. The odds seem fair, and the selection’s not bad either. Fingers crossed for some wins! Hop on over to 718betwin.
Quick heads up, 5956betlogin did the trick for me. Needed a quick login, and it was super straightforward. No fuss, no muss. Try 5956betlogin if you need a speedy entry 5956betlogin
Alright, checked out 655betvip! Site’s looking pretty slick, easy to navigate. Gameplay’s smooth, not laggy like some other places I’ve tried. Definitely giving this one a thumbs up! Check it out for yourself: 655betvip
You’ve made some 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 web site.
Hey there! I’ve been reading your web site for a while now and finally got the bravery to go ahead and give you a shout out from New Caney Tx! Just wanted to mention keep up the fantastic job!
Ahaa, its nice discussion concerning this post at this place at this website, I have read all that, so now me also commenting here.
bbgpqfewnr cialis dosage instructions pdf vhchkjgihk
I needed to thank you for this fantastic read!! I definitely enjoyed every little bit of it. I’ve got you bookmarked to check out new things you
There is not a huge secret behind the usage of this Hack Tool and most users is doing so. You will finally dominate in each scenario you’ll be able to attain inside the sport and compete with all the pro gamers.
I simply couldn’t leave your site before suggesting that I actually enjoyed the usual info a person supply in your visitors? Is going to be back continuously in order to check out new posts.
I’ll right away seize your rss as I can not to find your e-mail subscription link or e-newsletter service. Do you have any? Please allow me realize in order that I may just subscribe. Thanks.
I simply could not depart your web site before suggesting that I actually loved the usual information a person supply on your guests? Is gonna be back frequently in order to check out new posts
Quick stop at xsbl. to check the latest draw. Website is easy to navigate. Give it a try. Good luck, guys: xsbl.
Looking for a solid ‘Bet Esporte’ platform? I’ve been having a good run here. Good odds and a variety of sports to choose from. Check it out bet esporte!
Hi365bet, hmm… Trying out new platforms now, checking the payout odds now! Let’s see where this takes me… Learn more clicking here: hi365bet
Hi, I do believe this is an excellent blog. I stumbledupon it ; ) I will revisit yet again since i have book marked it. Money and freedom is the greatest way to change, may you be rich and continue to help others.
Hola! I’ve been following your weblog for a while now and finally got the courage to go ahead and give you a shout out from Lubbock Texas! Just wanted to mention keep up the fantastic work!
I enjoy what you guys are up too. This type of clever work and exposure! Keep up the superb works guys I’ve incorporated you guys to my blogroll.
It’s very simple to find out any topic on net as compared to books, as I found this paragraph at this web site.
I enjoy what you guys are usually up too. Such clever work and exposure! Keep up the good works guys I’ve included you guys to my own blogroll.
I visited several web pages but the audio feature for audio songs existing at this site is in fact superb.
I am sure this piece of writing has touched all the internet viewers, its really really good article on building up new web site.
Hi, I check your blogs daily. Your writing style is witty, keep up the good work!
I am sure this piece of writing has touched all the internet visitors, its really really nice article on building up new webpage.
I’ll right away grasp your rss feed as I can’t find your e-mail subscription link or newsletter service. Do you have any? Please permit me recognise in order that I may just subscribe. Thanks.
I love what you guys tend to be up too. This type of clever work and exposure! Keep up the very good works guys I’ve incorporated you guys to my blogroll.
Ahaa, its pleasant discussion on the topic of this piece of writing at this place at this web site, I have read all that, so now me also commenting here.