Skip to main content
Post Closed as "Duplicate" by Keyul Shah, Matthias Zeis, Marius, Amit Bera, Moose
formatted appearance;
Source Link
Rajeev K Tomy
  • 17.3k
  • 6
  • 63
  • 103

i tryI am trying to get order details by order id in my code. i createFor this I have created a php file and copy that onfile 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";
  }
   ?>

butBut when i run this code it,s show no things it shows "nothing" to me ! i try

I tried to var_dump($order)var_dump($order), but it`s show no thingit is also showing nothing and no error ! can

Can any body help me to get order detail and show it ? thanks

Thanks

i try to get order details by order id in my code. i create php file and copy that on 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 code it,s show no things to me ! i try to var_dump($order) but it`s show no thing and no error ! can any body help me to get order detail and show it ? thanks

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

Source Link
mahdi
  • 305
  • 1
  • 5
  • 18

get order details by Order Id in magento

i try to get order details by order id in my code. i create php file and copy that on 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 code it,s show no things to me ! i try to var_dump($order) but it`s show no thing and no error ! can any body help me to get order detail and show it ? thanks