Skip to main content
replaced http://stackoverflow.com/ with https://stackoverflow.com/
Source Link

A better way to accomplish what you are trying to do would be

//get any third party information you need
//customer = $app->getCustomer();

require_once('app/Mage.php'); //Path to Magento
umask(0);
Mage::app();
 
// Now you can run ANY Magento code you want
 
$orderCollection = Mage::getModel('sales/order')->getCollection();
//$orderCollection->addFieldToFilter('customer_email', $email);
$orderCollection->addFieldToFilter('customer_id', $id);

foreach ($orderCollection as $_order)
{

}

See

A better way to accomplish what you are trying to do would be

//get any third party information you need
//customer = $app->getCustomer();

require_once('app/Mage.php'); //Path to Magento
umask(0);
Mage::app();
 
// Now you can run ANY Magento code you want
 
$orderCollection = Mage::getModel('sales/order')->getCollection();
//$orderCollection->addFieldToFilter('customer_email', $email);
$orderCollection->addFieldToFilter('customer_id', $id);

foreach ($orderCollection as $_order)
{

}

See

A better way to accomplish what you are trying to do would be

//get any third party information you need
//customer = $app->getCustomer();

require_once('app/Mage.php'); //Path to Magento
umask(0);
Mage::app();
 
// Now you can run ANY Magento code you want
 
$orderCollection = Mage::getModel('sales/order')->getCollection();
//$orderCollection->addFieldToFilter('customer_email', $email);
$orderCollection->addFieldToFilter('customer_id', $id);

foreach ($orderCollection as $_order)
{

}

See

added 87 characters in body
Source Link

A better way to accomplish what you are trying to do would be

//get any third party information you need
//customer = $app->getCustomer();

require_once('app/Mage.php'); //Path to Magento
umask(0);
Mage::app();
 
// Now you can run ANY Magento code you want
 
$orderCollection = Mage::getModel('sales/order')->getCollection();
//$orderCollection->addFieldToFilter('customer_email', $email);
$orderCollection->addFieldToFilter('customer_id', $id);

foreach ($orderCollection as $_order)
{

}

See

A better way to accomplish what you are trying to do would be

require_once('app/Mage.php'); //Path to Magento
umask(0);
Mage::app();
 
// Now you can run ANY Magento code you want
 
$orderCollection = Mage::getModel('sales/order')->getCollection();
//$orderCollection->addFieldToFilter('customer_email', $email);
$orderCollection->addFieldToFilter('customer_id', $id);

foreach ($orderCollection as $_order)
{

}

See

A better way to accomplish what you are trying to do would be

//get any third party information you need
//customer = $app->getCustomer();

require_once('app/Mage.php'); //Path to Magento
umask(0);
Mage::app();
 
// Now you can run ANY Magento code you want
 
$orderCollection = Mage::getModel('sales/order')->getCollection();
//$orderCollection->addFieldToFilter('customer_email', $email);
$orderCollection->addFieldToFilter('customer_id', $id);

foreach ($orderCollection as $_order)
{

}

See

Source Link

A better way to accomplish what you are trying to do would be

require_once('app/Mage.php'); //Path to Magento
umask(0);
Mage::app();
 
// Now you can run ANY Magento code you want
 
$orderCollection = Mage::getModel('sales/order')->getCollection();
//$orderCollection->addFieldToFilter('customer_email', $email);
$orderCollection->addFieldToFilter('customer_id', $id);

foreach ($orderCollection as $_order)
{

}

See