Magentoでは、説明に「test-category-block」というテキストが含まれるすべてのカテゴリをプルする必要があります。addFieldToFilterを追加しようとしましたが、機能しません。それを行う簡単な方法はありますか?
アップデート:
別の質問が見つかりました。これは私に役立つかもしれません:getCollectionとaddLevelFilterを使用したMagentoカテゴリのリストですが、デフォルトのルートカテゴリは除外します
解決済み:
$_collection = Mage::getResourceModel('catalog/category_collection')
->addAttributeToSelect('*')
->addAttributeToFilter('level',array('gt' => 1))
->addAttributeToFilter('description', array('like' => '%category-search-filter%'));