Magento: How To Remove The “Position” Sort Option

Posted: October 1, 2014 in Magento

find this function and  remove position and you can add new attribute 

Path – app/code/core/Mage/Catalog/Model/config.php

public function getAttributeUsedForSortByArray()
{
//$options = array(
// ‘position’ => Mage::helper(‘catalog’)->__(‘Position’)
//);
foreach ($this->getAttributesUsedForSortBy() as $attribute) {
/* @var $attribute Mage_Eav_Model_Entity_Attribute_Abstract */
$options[$attribute->getAttributeCode()] = $attribute->getStoreLabel();
}

return $options;
}

 

 

Advertisements

Comments are closed.