Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- header("Access-Control-Allow-Origin: *");
- header("Access-Control-Allow-Credentials: true");
- /* Init the OXID Framework */
- if (defined('E_DEPRECATED')) {
- //E_DEPRECATED is disabled particularly for PHP 5.3 as some 3rd party modules still uses deprecated functionality
- error_reporting(E_ALL ^ E_NOTICE ^ E_DEPRECATED);
- } else {
- error_reporting(E_ALL ^ E_NOTICE);
- }
- if (!defined('OX_BASE_PATH')) {
- define('OX_BASE_PATH', dirname(__FILE__) . DIRECTORY_SEPARATOR);
- }
- // custom functions file
- require_once OX_BASE_PATH . 'modules/functions.php';
- // Generic utility method file including autoloading definition
- require_once OX_BASE_PATH . 'core/oxfunctions.php';
- //sets default PHP ini params
- setPhpIniParams();
- //init config.inc.php file reader
- $oConfigFile = new oxConfigFile(OX_BASE_PATH . "config.inc.php");
- oxRegistry::set("oxConfigFile", $oConfigFile);
- // Basket Details
- $oSession = oxRegistry::get('oxSession');
- $oSession->setForceNewSession();
- $oSession->start();
- $oBasket = $oSession->getBasket();
- $aBasketSummary = $oBasket->getBasketSummary();
- print json_encode($aBasketSummary);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement