1

すべての製品で利用可能なすべてのフィルターを取得できます。

しかし、特定のカテゴリ (色、価格など) で選択したフィルターのみが必要です。

私は次の方法で試しましたが、空白の応答が返されます。

$layer = Mage::getModel("catalog/layer");
        $category = Mage::getModel("catalog/category")->load(23);
        $layer->setCurrentCategory($category);

        $attributes = $layer->getFilterableAttributes();
4

0 に答える 0