In WooCommerce, for logged in users the Thankyou (order-received) page does show the customer details like the name, address and e-mail, but nothing when customers are not registered.
How can I ensure that non registered users can see their details on the Thankyou (order-received) page when the payment is successfully finished, just like registered users?
Why the customer details doesn't show up on the Thankyou (order-received) page for non registered users?
You can change this behavior for non logged users with the following code:
Code goes in function.php file of your active child theme (or theme) or also in any plugin file.
Tested and works.