Skip to content

Instantly share code, notes, and snippets.

@ClaudiuCreanga
Created October 27, 2016 08:19
Show Gist options
  • Save ClaudiuCreanga/033cd47221fc71cc1e14d67ecaec8a2a to your computer and use it in GitHub Desktop.
Save ClaudiuCreanga/033cd47221fc71cc1e14d67ecaec8a2a to your computer and use it in GitHub Desktop.
<?php
use Magento\Framework\App\Bootstrap;
require __DIR__ . '/app/bootstrap.php';
$bootstrap = Bootstrap::create(BP, $_SERVER);
$obj = $bootstrap->getObjectManager();
$state = $obj->get('Magento\Framework\App\State');
$state->setAreaCode('frontend');
$quote = $obj->get('Magento\Checkout\Model\Session')->getQuote()->load(1);
$order = $obj->create('Magento\Sales\Model\Order')->loadByIncrementId("000000071");
echo "<pre>";
var_dump($order->getData());
echo "<pre>";
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment