Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save natrod/27cbf016b9b4ae2374517267cf530199 to your computer and use it in GitHub Desktop.
Save natrod/27cbf016b9b4ae2374517267cf530199 to your computer and use it in GitHub Desktop.
<?php
/**
* @author Raj KB<magepsycho@gmail.com>
* @website http://www.magepsycho.com
* @blog http://www.blog.magepsycho.com/sandbox-script-quick-testing-magento2/
*/
ini_set('display_errors', 1);
ini_set('display_startup_errors', 1);
error_reporting(E_ALL);
require __DIR__ . '/../app/bootstrap.php';
$bootstrap = \Magento\Framework\App\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);
Zend_Debug::dump($quote->getOrigData());
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment