product
来源:互联网 发布:东亚实力知乎 编辑:程序博客网 时间:2024/04/27 20:00
ResourceModel
1
//return:
//Mage_Catalog_Model_Resource_Eav_Mysql4_Product_Collection
$collection = Mage::getResourceModel('catalog/product_collection')
2
addAttributeToSelect
3
$collection = Mage::getResourceModel('catalog/product_collection')
->setStoreId($this->getStoreId())
->addCategoryFilter($this);
我也不知道说点啥,反正是得到产品集合的一种方式,返回值直接可以使用foreach进行操作!!
得到单一产品:
$product = Mage::getModel('catalog/product')->load($this->getProductId());
- product
- Product
- Product
- Product
- Product
- Max product
- 2510: Product
- 10106 - Product
- JOJ2510:Product
- Product line
- 10106 - Product()
- uva10106 - Product
- 10106 - Product
- 10106 - Product
- 5309 Product
- Product Management
- 10106 - Product
- uva Product
- Ubuntu Server 10.10 安装配置 RVM Ruby Rails3 passenger nginx MySQL
- 留住我们的根
- 【Android进阶】多抽屉效果 (类似最早QQ使用的效果)
- 项目管理:做好应该做的事情
- C++错误LIBCD.lib(wincrt0.obj) : error LNK2001: unresolved external symbol _WinMain@16的原因
- product
- 在VS2008中使用正则表达式库 Boost.Regex
- Linux脚本Shell命令
- 让世界充满爱
- hello world
- Oralce 日期时间处理
- 农夫问题--状态空间搜索
- 第一部分:基础知识(第一章)标准的Silverlight文件
- Linux下校园网锐捷认证(以湖南农业大学校园网为例)