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 8353019
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T09:08:21+00:00 2026-06-09T09:08:21+00:00

I know Magento orders can be attained with $orders = Mage::getResourceModel(‘sales/order_collection’); but then how

  • 0

I know Magento orders can be attained with
$orders = Mage::getResourceModel('sales/order_collection');
but then how can I get the information for each order? The information I need most per order is: SKUs purchased, date purchased, money spent on each item, and discounts, if any.

All help is greatly appreciated and I always accept an answer!

  • 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-09T09:08:23+00:00Added an answer on June 9, 2026 at 9:08 am

    Not a direct answer

    Mage::getResourceModel('sales/order_collection'); retrieves collection of orders (sales_flat_order)

    SKU is stored in sales_flat_order_item

    From order you can get order items using method getAllVisibleItems (it will retrieve respective sales_flat_order_item) see the definition in Mage_Sales_Model_Order

    $orders = Mage::getResourceModel('sales/order_collection');
    foreach($orders as $order){
        $items = $order->getAllVisibleItems();
        foreach($items as $item){
            $sku = $item->getSku();
        }
    }
    

    The point is like that, you have to modify it by yourself.
    For the money spent on each item, you can also take a look at sales_flat_order_item

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

Sidebar

Related Questions

I don’t know why but my Magento installation which was working fine yesterday, is
I know you can not set a key value dynamically, but what about the
Magento 1.6+ creates an Orders and Returns page (www.yourstore.com/sales/guest/form/) and places a link to
I know this is a BIG question, but i am looking to integrate magento
As you might know, there's FedEx Web Services API in Magento. But I still
does anyone know how you edit/maintain regions in magento - specifically adding ones for
my site www.theprinterdepo.com its a magento oscommerce site As you know its open source,
Today i started working in registration form in magento site. As you know by
Hello Im currently writing a product syncronisation script for magento. I know how to
Know this might be rather basic, but I been trying to figure out how

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.