this is my code

$URL='';(url of third party api)        
$simple  = simplexml_load_file($URL);

 foreach($simple->FEEDBACK as $result){


  $orderId =Mage::getModel('sales/order')->

  $order = Mage::getModel('sales/order')->load($orderId);


upto this code is working properly,when i try to use..


its give error as written in title,please help..


First: you don't have to load Order again after you loaded with increment_id. You can load $order:

$order = Mage::getModel('sales/order')->loadByIncrementId($order_ref);

Check if fields score, service_feedback and response exists in database table: sales_flat_order. I think these fields do not exists in table or the data you assign different than expected so you cannot save the order.

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.