I am trying to get order details by order id in my code. For this I have created a php file and copy that file to a folder in public_html. this is my code :
<?php
error_reporting( E_ALL );
require_once "lib/nusoap.php";
require_once "../app/Mage.php";
try {
$order = Mage::getModel('sales/order')->load('100000234');
$orderData = $order->getData();
print_r($orderData);
} catch (Exception $e) {
echo 'Caught exception: ', $e->getMessage(), "\n";
}
?>
But when i run this code, it shows "nothing" to me !
I tried to var_dump($order)
, but it is also showing nothing and no error !
Can any body help me to get order detail and show it ?
Thanks