尝试一下:
$currentCatIds = $_product->getCategoryIds();
Run Code Online (Sandbox Code Playgroud)
并且
$categoryCollection = Mage::getResourceModel('catalog/category_collection')
->addAttributeToSelect('name')
->addAttributeToSelect('url')
->addAttributeToFilter('entity_id', $currentCatIds)
->addIsActiveFilter();
Run Code Online (Sandbox Code Playgroud)
干杯,JD
归档时间: |
|
查看次数: |
3391 次 |
最近记录: |