I am very much new in magento. So please sorry me for this quetion.

My question is : How can I get collection from table "sales_flat_creditmemo_item"

  • yes. This is solved my problem – Elizabeth Sep 10 '15 at 12:18
  • if the answer solved your problem then accept the answer. – Pradeep Sanku Sep 10 '15 at 12:35

To get creditmemo item collection.

$soci_model = Mage::getModel('sales/order_creditmemo_item')->getCollection();
echo "<pre>"; 

You can use resource collection model here.

 $collection = Mage::getResourceModel('sales/order_creditmemo_item_collection');

    foreach ($collection as $item) {

If you want to filter using a credit memo then add below code in collection

   $collection->setCreditmemoFilter('YOUR_CREDIT MEMO');

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.