-
-
Save natrod/27cbf016b9b4ae2374517267cf530199 to your computer and use it in GitHub Desktop.
Magento2 Sandbox Script - http://www.blog.magepsycho.com/sandbox-script-quick-testing-magento2/
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* @author Raj KB<[email protected]> | |
* @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