Hello World

Just So So ...

首页

Magento代码段

  • 作者: admin
  • 时间: 2014-08-22
  • 分类: Code

主要用处就是在Magento中获取指定分类下的产品。

$products = Mage::getModel('catalog/category')->load($category_id)
->getProductCollection()
->addAttributeToSelect('*')
->addAttributeToFilter('status', 1)
->addAttributeToFilter('visibility', 4);

标签: Magento

评论已关闭

  • 上一篇: 汉字拆分
  • 下一篇: Magento报错General error: 1030 Got error 28 from storage engine

最新文章

  • mysql 快速导入大sql文件
  • SpringBoot 开发前后端在一起模板报错template might not exist or might not be accessible by any of the configured
  • SQL Server 查询 Row_Number() OVER去重
  • python list.index()用法
  • centos7利用yum安装lnmp的教程(linux+nginx+php7.1+mysql5.7)
  • Typecho Nginx下的伪静态rewrite规则
  • 关于typecho使用cloudflare后台进不去的问题
  • BBR加速 Centos
  • Navicat 连接MAMP中的mysql
  • docker desktop 命令

分类

  • Code
  • 互联网
  • PM
© 2025 Hello World. 由 Typecho 强力驱动.