0
訪問會話我使用Mangeto 1.9.1的Magento - Magento的外
我想外面的Magento訪問Magento的客戶會議的PHP文件在Magento的根文件夾中。
這裏是我的代碼:
<?php
error_reporting(E_ALL | E_STRICT);
$mageFilename = 'app/Mage.php';
require_once $mageFilename;
$app = Mage::app('default');
Mage::app();
$customer_id = Mage::getSingleton('customer/session')->getId();
$GrandTotal = Mage::getModel('sales/quote')->loadByCustomer($customer_id)->getGrandTotal();
$HalfTotal = $GrandTotal/2;
echo "Grand: $GrandTotal<br>Half: $HalfTotal";
?>
我的Magento安裝在一個子像beta.mymagento.com
但似乎無法訪問會話。 我該如何解決它?
在此先感謝!