I made the following changes to my menu.php file.


public function getCatTop()
    $collection = Mage::getModel('magicmenu/category')->getCollection()
                      ->addAttributeToFilter('parent_id', Mage::app()->getStore()->getRootCategoryId())
                      ->addAttributeToFilter('include_in_menu', 1)

    return $collection;

All of the categories are sorted in alphabetical order. However, I need one specific category to always show up first.

Please help me out.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.