Jump to content

Prestashop categories in footer


Recommended Posts

Hello everyone

 

I want to keep only few categories in my footer not all the categories, let say 5-6 categories only. but footer is displaying a long list of category names.  please check the screenshot here : http://awesomescreenshot.com/03c3un65c7

 

I do not want to remove the category block from footer but want to keep 5-6 categories only. Are their any settings in back office or do I have to write static html for this ?

 

Regards,

Sandeep

Link to comment
Share on other sites

Go to /modules/blockcategories/blockcategories.php, find hookFooter() method and change:

 

ORDER BY `level_depth` ASC, '.(Configuration::get('BLOCK_CATEG_SORT') ? 'cl.`name`' : 'category_shop.`position`').' '.(Configuration::get('BLOCK_CATEG_SORT_WAY') ? 'DESC' : 'ASC')))
 

to

 

ORDER BY `level_depth` ASC, '.(Configuration::get('BLOCK_CATEG_SORT') ? 'cl.`name`' : 'category_shop.`position`').' '.(Configuration::get('BLOCK_CATEG_SORT_WAY') ? 'DESC' : 'ASC'.' LIMIT 6')))
 

  • Like 1
Link to comment
Share on other sites

×
×
  • Create New...