ITeye博客

Magento addAttributeToFilter with Mutliple Select

kirenenko04 · 2014-12-11 10:05 · php · Magento · 编程语言 · Markdown

The solution is to use a 'Finset'  query such as:

$this->_productCollection->addAttributeToFilter("make", array("finset"=>"38"));

A discussion can be seen here: http://www.magentocommerce.com/boards/viewthread/201312/

And a list of different options: http://www.magentocommerce.com/knowledge-base/entry/magento-for-dev-part-8-varien-data-collections

评论(0)

暂无评论。

评论功能维护中,当前仅展示历史评论。