Posting in the Magento forums has been disabled pending the implementation of a new and improved forum solution which should better serve the community.

For new questions please post at magento.stackexchange.com, the community-run support site for the Magento community. We will be providing updates on the new forum solution soon. For questions or concerns please email community@magento.com.

Magento Forum

Learning Magento SOAP API: fetching 5 most recent products
 
tom.ash
Jr. Member
 
Total Posts:  10
Joined:  2010-04-12
 

Hi,

I’m just learning Magento and its Web Services API for a new job. I’ve just managed to build some basic PHP scripts fetching products in specific categories. I now need to fetch the newest and the best-selling products, but am struggling to find good documentation on this. Any help, pointers, sample code or anything else really would be much appreciated smile

Thanks,
Tom

 
Magento Community Magento Community
Magento Community
Magento Community
 
tom.ash
Jr. Member
 
Total Posts:  10
Joined:  2010-04-12
 

To update: I’ve found a quick and dirty way of printing the most recent products, as the following call returns an array ordered by product ID (this ordering means that I can use array_pop() to get the element in it with the highest product ID):

$products $client->call($session'product.list', array($filters));

But there’s probably a better way to do this, and I’m still struggling to find a way to get the top selling products…

 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
Back to top