AI Verified

Name

Show Order Deatails on seperate Page

Language

PHP

Rating

Voted: 0 by 0 user(s)

Codevault

jbeer

Scroll down to see more snippets from this codevault.

Wordpress Compatability

The author has indicated that this snippet is compatable up to wordpress version: Not Specified

Our AI bot has checked this snippet is compatable up to wordpress version: 6.1

Code Snippet Plugin Sync

Free & Pro

Download this snippet by clicking the download button, then head over to the Code Snippet Plugin settings in your wordpress admin dashboard, select the import menu then upload this file to import into your wordpress site.

Pro Only (Coming Soon)

You will be able to click a button and sync this snippet to your wordpress site automatically and from your dashboard manage all code snippets across all your wordpress sites that have the Code Snippets Pro plugin installed.

History

Last modified:

14/11/2022

Important Note

This snippet has the following status:

AI Verified

This snippet has been tested by our AI bot, see any comments below.

AI Bot Comments:

Found 0 vulnerabilities

Show Order Deatails on seperate Page

 
                    
1function woocommerce_orders() {
2 $user_id = get_current_user_id();
3 if ($user_id == 0) {
4 return do_shortcode('[woocommerce_my_account]');
5 }else{
6 ob_start();
7 wc_get_template( 'myaccount/my-orders.php', array(
8 'current_user' => get_user_by( 'id', $user_id),
9 'order_count' => $order_count
10 ) );
11 return ob_get_clean();
12 }
13 
14}
15add_shortcode('woocommerce_orders', 'woocommerce_orders');

0

Related Snippets

Please see some snippets below related to this snippet..

WooCommerce

AI Verified

0

WooCommerce - My Account - Edit Address - Fix

Added: 1 year ago

Last Updated: 1 year ago

Fixes the issue with the "Edit Address" text missing from the user's My Account menu. This happens due to a language conflict when using English (South African/US), however using English (UK) also res...

WooCommerce

AI Verified

0

Remove WooCommerce "Order Again" from Order Received Page

Added: 3 months ago

Last Updated: 3 months ago

WooCommerce

AI Verified

0

WooCommerce Custom Content Under New Order Email Heading

Added: 1 year ago

Last Updated: 1 year ago

As you know, editing the WooCommerce template core files is a big fat no-no for security and update purposes. If you need to make edits to the emails, you’re much better off doing this by targeting th...

Other Snippets in this Codevault

These are some popular snippets from this users codevault..

WooCommerce

AI Verified

2

Confirm Password Field in Woocommerce

Added: 1 year ago

Last Updated: 1 year ago

WooCommerce

AI Verified

2

Add Product Picture to Orderlist

Added: 1 year ago

Last Updated: 1 year ago

WooCommerce

AI Verified

2

Redirect customers to own thank-you page after order

Added: 1 year ago

Last Updated: 1 year ago

You may want to redirect your customers to a custom thank you page after they place an order. You can do that with the following WooCommerce snippet