Try the Demo

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
Sr. Member
 
Avatar
Total Posts:  291
Joined:  2009-02-20
Fano
 
Valheru - 11 February 2013 01: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

 Signature 

3Innova.com
Sviluppo moduli e consulenza ecommerce magento

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