2010-12-23 4 views
0

의 회사 이름을 얻을 :젠토 -이 코드를 사용하십시오 registred 고객

$customerCollection = Mage::getResourceModel('customer/customer_collection') 
->addNameToSelect() 
->addAttributeToSelect('email') 
->joinAttribute('postcode', 'customer_address/company', 'default_billing', null, 'left') 
->joinAttribute('postcode', 'customer_address/postcode', 'default_billing', null, 'left')   
->joinAttribute('billing_city', 'customer_address/city', 'default_billing', null, 'left') 
->joinAttribute('billing_region', 'customer_address/region', 'default_billing', null, 'left') 
->joinAttribute('billing_country_id', 'customer_address/country_id', 'default_billing', null, 'left'); 

가 어떻게 또한 registred 고객의 회사 이름을 얻을 수 있습니다?

감사합니다.

답변

2

검사는 정말 "회사는"

joinAttribute('company', 'customer_address/company', 'default_billing', null, 'left') 
+0

덕분에, 그것은 작동 속성 이름 인 경우) – Bizboss

+0

당신이 다음 대답은 이것을 받아 들여야한다 –