magento addattributetoselect使用
2013-02-26 11:14
155 查看
$collection = Mage::getModel('catalog/product')->getCollection() ->addAttributeToSelect($collection = Mage::getModel('catalog/product')->getCollection() ->addAttributeToSelect('name', 'url_key', 'type_id')); $collection = Mage::getModel('catalog/product')->getCollection() ->addAttributeToSelect('name');
注意:当需要选择多列时addAttributeToSelect的参数
相关文章推荐
- Magento1.9 add attribute to catalog product & assign to all attribute set general group
- addFieldToFilter 与 addAttributeToFilter使用总结
- addAttributeToFilter condition in Magento
- addFieldToFilter 与 addAttributeToFilter使用总结
- addAttributeToFilter Conditionals In Magento
- How to change a product dropdown attribute to a multiselect in Magento
- Magento addFieldToFilter和addAttributeToFilter用法整理
- Magento 条件筛选 addAttributeToFilter
- addAttributeToFilter Conditionals In Magento
- Magento,sql,setup的方式添加一个select属性,add attribute selet by module sql
- Magento add product attribute and assign to all group
- 使用Masonry蹦到布局崩到 NSAssert(NO, @"attempting to add unsupported attribute: %@", secondViewAttribute);
- addAttributeToFilter Conditionals In Magento
- 使用软引用解决Handler内存泄露和显示Popupwindow、Dialog时提示"Unable to add Window-token is null"的问题
- 使用TextInputLayout所遇到的坑-java.lang.UnsupportedOperationException: Failed to resolve attribute at index
- SpringMVC addFlashAttribute的分析与使用示例
- Houdini15 VOP Add Attribute参数传递错误,使用Bind Export替代
- 使用PopWindow遇到的BadTokenException: Unable to add window is not valid; is your activity r
- popupwindow使用之异常:unable to add window -- token null is not valid
- 向json中添加新的熟悉或对象 Add new attribute (element) to JSON object using JavaScript