I want to call a PHP file using ajax where in that PHP i will place order by the ajax call. But it throws error while i am using app/Mage.php from that file
I personally had solved it by using
$customer = new Mage_Customer_Model_Customer();
instead of using
$customer = Mage::getModel('customer/customer');