<?php
use Magento\Framework\App\Bootstrap;
require __DIR__ . '/app/bootstrap.php';
//$rootDirectoryPath = '/var/www/html/magento2';
//require $rootDirectoryPath . '/app/bootstrap.php';
$params = $_SERVER;
$bootstrap = Bootstrap::create(BP, $params);
$obj = $bootstrap->getObjectManager();
$state = $obj->get('Magento\Framework\App\State');
$state->setAreaCode('frontend');
$orderId = 51;
$order = $obj->get('Magento\Sales\Model\Order')->load($orderId);
echo '<pre>';
print_r($order->getOrigData());
echo '</pre>';
?>
use Magento\Framework\App\Bootstrap;
require __DIR__ . '/app/bootstrap.php';
//$rootDirectoryPath = '/var/www/html/magento2';
//require $rootDirectoryPath . '/app/bootstrap.php';
$params = $_SERVER;
$bootstrap = Bootstrap::create(BP, $params);
$obj = $bootstrap->getObjectManager();
$state = $obj->get('Magento\Framework\App\State');
$state->setAreaCode('frontend');
$orderId = 51;
$order = $obj->get('Magento\Sales\Model\Order')->load($orderId);
echo '<pre>';
print_r($order->getOrigData());
echo '</pre>';
?>
Comments
Post a Comment
Feel Free To Ask...