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

Module to read the database products
 
Valheru
Jr. Member
 
Total Posts:  1
Joined:  2013-02-10
 

Hello,

I hope I posted in the right forum

I am kinda new with making modules for Magento.  Now I am wanna make module for my webshop which gives a list or all the products a customer bought between two dates.

I have searched with google, but I can’t seem to find a good tutorial how to do this. I only find tutorials how to connect with external databases, but now how to use the internal database.

Can someone put me in the right direction?

Thanks!

 
Magento Community Magento Community
Magento Community
Magento Community
 
TreInnova
Guru
 
Avatar
Total Posts:  465
Joined:  2009-02-20
Fano
 
Valheru - 11 February 2013 12:57 AM

Hello,

I hope I posted in the right forum

I am kinda new with making modules for Magento.  Now I am wanna make module for my webshop which gives a list or all the products a customer bought between two dates.

I have searched with google, but I can’t seem to find a good tutorial how to do this. I only find tutorials how to connect with external databases, but now how to use the internal database.

Can someone put me in the right direction?

Thanks!

Hi ,
magento use collection and have an abstraction level to work with database.
For example this code get all product in dabase :

$product=Mage::getModel('category/product)->getCollection();
I think you should know the magento architecture flow.
This is a good starting point for collections:
Magento Collection
Regards
Filippo Esposto
 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
Back to top