1
我通过目录菜单添加了新的类别。但它没有在前端显示类别。为什么magento 1.7.0.2不显示新增类别?
1.类别属于默认类别。
2.Is活动 - 是
这是我与新的类别进行设置。保存后,当我到前端时,它不显示类别。如何使产品在此类别下添加出现在前端。
生成的类别ID是72显示该问题。下面提供的是我在.phtml文件中使用的代码,用于显示类别ID(72)的产品。除了类别ID 72(它是新创建的),通过传递类别ID来休息所有其他类别的产品。
<?php
$categoryId = 72;
//here $categoryId is the id of the category
$category = Mage::getModel('catalog/category')->load($categoryId);
$collection = $category->getProductCollection();
$collection->addCategoryFilter($category); //category filter
$collection->addAttributeToFilter('status',1); //only enabled product
$collection->addAttributeToSelect('*');
?>
请帮我解决这个问题
是上述的点都已经完成。但仍然无法获得结果。 –
也通过传递ID 72该网站不起作用。休息所有其他的id工作正常。 –
你是否在类别创建后重新编排? –