I need to somehow make the current cart and customer info in my Magento store be accessible to the rest of my website, outside of Magento.
For example mysite.com/blog is outside of mysite.com/store.
In the base of my domain I have run this code but it just returns NULL.
require_once 'store/app/Mage.php';
umask(0);
Mage::app();
Mage::getSingleton('core/session', array('name'=>'frontend'));
$totalItems = Mage::getModel('checkout/cart')->getQuote();
$cart = Mage::getModel('checkout/cart')->getQuote()->getAllItems();
foreach ($cart->getAllItems() as $item) {
$productName = $item->getProduct()->getName();
$productPrice = $item->getProduct()->getPrice();
}