Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8833191
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T08:43:16+00:00 2026-06-14T08:43:16+00:00

How do I get all the invoices collection? I know that to get all

  • 0

How do I get all the invoices collection?

I know that to get all the orders is:

 $orders = Mage::getModel(sales/order)->getCollection();

However I can’t seem to find the equivalent with invoice (it’s not sales/invoice). Sorry if it’s a dumb question.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-14T08:43:17+00:00Added an answer on June 14, 2026 at 8:43 am

    You need to use :

    $orders = Mage::getModel("sales/order_invoice")->getCollection();
    

    For the explanation :

    When you want to access i block/model/resource/helper/etc in magento :

    • first, you choose the right method to access it : Mage::getModel for a model

    • second, you must tell magento “which” module you want to access. You do that with the first part of the parameter string :

    Mage::getModel(“sales/order_invoice”)

    This string refers to the XML node of the type or resource you want to access. In your case, for accessing a model of the Mage_Sales module : take a look at the Mage_Sales’s config.xml, you’ll see the node to use (used for models and resourceModels) :

    [...]
    <models>
        <sales><!-- <----- THIS NODE -->
            <class>Mage_Sales_Model</class>
             <resourceModel>sales_resource</resourceModel>
         </sales>
         [...]
    
    • last part, you need to add the full access to the file you want, with folder if needed. In your case, in the Model folder of the Mage_Sales module (above xml config tells us that this folder is Mage_Sales_Model), you’ll see a file Invoice.php in the Order folder : then you path is “order_invoice” and the full commande to access your model is :

    Mage::getModel(“sales/order_invoice“)

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

First, I'm grabbing ClientID. Then, I get all Invoices associated with that ClientID. I
Can get all triples with value null in specific field? All people with date_of_birth
I am trying to get all Books from the server (local PHP script), that
How can i get all child nodes from sql table? (MemberJoiners table on pict)
How can I get all td elements with 'colspan' greater than 1 in jQuery?
How to get all id of div.A that has div.collapse is visible,example: <div class=A>
We are trying to run a query to get all unpaid invoices. When I
To get all contacts I'm using ABAddressBookCopyArrayOfAllPeople method but, this method return all contacts
I'm trying to get all downloads from an repo on github with help of
I want to get all the Calendars, which are in my GoogleAccount, using the

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.