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

Could not get the product selected attributes, Help me pls
 
renwei98
Jr. Member
 
Total Posts:  27
Joined:  2009-08-12
Shanghai China
 

Dear all

I want to get all the products attributes from getModel(’cagelog/prodcut’)->getCollection So I set addAttributetoselect(’*’) , But there still some attributes did not selected.
For example:
when run var_dump(getModel(’cagelog/prodcut’)->getCollection()->addAttributetoselect(*)) I could get the column selectAttributes below :
protected ‘_selectAttributes’ =>
array
‘manufacturer’ => string ‘66’ (length=2)
‘media_gallery’ => string ‘73’ (length=2)
‘meta_description’ => string ‘69’ (length=2)
‘meta_keyword’ => string ‘68’ (length=2)
‘meta_title’ => string ‘67’ (length=2)

==================================================================================when I getDate the column mention up could not viewed from the collection, that’s why? Some knows please help me. And thank you for the answers

Thanks
Andrew renwei

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