开发者

Magento - Select some customer infos

for the purpose of a module that I began to realize, I want to make a select query which gives m开发者_C百科e the address, name and surname of one or more clients.

I am a bit lost in the database magento, Help!


You can echo out each select magento does with getSelect() method.

for one client

echo Mage::getModel('customer/customer')->load('id')->getSelect();

or whole collection

echo Mage::getModel('customer/customer')->getCollection()->getSelect();


You must search the tables customer_entity and customer_address_entity

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜