File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
app/integrations/woocommerce/templates/order Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 22
22
23
23
$ wc_order = wc_get_order ( $ order_id );
24
24
25
- if ( ! $ order ) :
25
+ if ( ! $ wc_order ) :
26
26
return ;
27
27
endif ;
28
28
29
29
$ order_items = $ wc_order ->get_items ( apply_filters ( 'woocommerce_purchase_order_item_types ' , 'line_item ' ) );
30
30
$ show_purchase_note = $ wc_order ->has_status ( apply_filters ( 'woocommerce_purchase_note_order_statuses ' , [ 'completed ' , 'processing ' ] ) );
31
- $ show_customer_details = is_user_logged_in () && $ order ->get_user_id () === get_current_user_id ();
31
+ $ show_customer_details = is_user_logged_in () && $ wc_order ->get_user_id () === get_current_user_id ();
32
32
$ downloads = $ wc_order ->get_downloadable_items ();
33
33
$ show_downloads = $ wc_order ->has_downloadable_item () && $ wc_order ->is_download_permitted ();
34
34
?>
You can’t perform that action at this time.
0 commit comments