0

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

/app/code/local/Magiccart/Magicmenu/Block/Menu.php

public function getCatTop()
{
    $collection = Mage::getModel('magicmenu/category')->getCollection()
                      ->addAttributeToSelect(array('entity_id','name','magic_label','short_desc','url_path','magic_thumbnail'))
                      ->addAttributeToFilter('parent_id', Mage::app()->getStore()->getRootCategoryId())
                      ->addAttributeToFilter('include_in_menu', 1)
                      ->addIsActiveFilter()
                      ->addLevelFilter(2)
                      ->addOrderField('name');

    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.