Hello,
I have a suggestion for you:
For Magento Default, you look at this file: app/code/core/Mage/Catalog/Block/Layer/View.php, you will can see:
/**
* Get all layer filters
*
* @return array
*/
public function getFilters()
{
$filters = array();
if ($categoryFilter = $this->_getCategoryFilter()) {
$filters[] = $categoryFilter;
}
$filterableAttributes = $this->_getFilterableAttributes();
foreach ($filterableAttributes as $attribute) {
$filters[] = $this->getChild($attribute->getAttributeCode() . '_filter');
}
return $filters;
}
This method has an array to store filterable values. It stores the category filters at the first and filterable attributes at the second. So, If you want to move category filter, you change the order of them:
/**
* Get all layer filters
*
* @return array
*/
public function getFilters()
{
$filters = array();
$filterableAttributes = $this->_getFilterableAttributes();
foreach ($filterableAttributes as $attribute) {
$filters[] = $this->getChild($attribute->getAttributeCode() . '_filter');
}
if ($categoryFilter = $this->_getCategoryFilter()) {
$filters[] = $categoryFilter;
}
return $filters;
}
For best practise, you should override this block.
You try to enable Template Path Hint to find layer navigation template. And then find and remove the second unnecessary category filter template.
Problem solved? Click Accept as Solution!