Magento - Filter category resource collection by store_id

前端 未结 6 1445
谎友^
谎友^ 2021-01-03 18:54

I am trying to pull category that belongs to current store only but it doesn\'t seem to work. Can anyone see any issue in my code?

$categoryCollection = Mage         


        
6条回答
  •  情话喂你
    2021-01-03 19:27

    i know it is an old question, but if someone is looking for the answer as i just was:

    ->addStoreFilter( {storeID} )
    

    did it for me...

提交回复
热议问题