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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T00:55:41+00:00 2026-05-31T00:55:41+00:00

Hello I have trying to learn Magento, So would be appreciated if anyone helps.

  • 0

Hello I have trying to learn Magento, So would be appreciated if anyone helps.

I saw people initiate class

Mage::getResouceModel('report/product_sold_collection');

Then they iterate over the collection using foreach loop and use

getOrderedQty() method.

Like in this thread.
total sales of each product in magento

Where is this method defined? In which class ?

  • 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-05-31T00:55:42+00:00Added an answer on May 31, 2026 at 12:55 am

    That method doesn’t exist. All Magento Objects (that is, objects which inherit from Varien_Object) allow you to get and set data properties.

    $object->setData('the_thing',$value);
    echo $object->getData('the_thing')
    

    On top of this, there’s also special setter and getter methods implemented with PHP’s “magic methods”. That is, you can get/set a data property by camel casing it’s name, and calling it like this

    $object->setMyThing($value);
    echo $object->getMyThing();
    

    I searched the Magento codebase, and there’s no definition for a “getOrderedQty” method. That means it’s one of the above mentioned magic methods.

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

Sidebar

Related Questions

Hello I'm trying to learn ruby blocks. But I have a trouble to get
Hello I have been trying to send an email in magento with out a
Hello people of stackoverflow. I have a problem. I'm trying to set up my
Hello my fellow ColdFusion developers! I'm trying to learn node.js, and I have a
I was trying to learn basic C++ operator overloading concepts. I have a class
hello am trying to learn ftp file transfer in php. i have done all
hello i have this question i was trying to find a way to call
Hello I have a very large SQL script and while trying to execute it
Hello guys, I have been trying to implement the DSUM function but failed to
Hello I was trying to remove objects from object array that I have and

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.