In xt:Commerce, where can the order ID be found and how can it be displayed in the checkout_confirmation.php file?

To display the order ID in xt:Commerce's checkout_confirmation.php file, you can retrieve it from the $order object and then echo it out in the desired location in the file. The order ID can typically be found in the $order object under the 'oID' key.

// Retrieve the order ID from the $order object
$order_id = $order->info['oID'];

// Display the order ID in the checkout_confirmation.php file
echo "Order ID: " . $order_id;