Advertisement
Guest User

search

a guest
Jan 21st, 2015
309
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.61 KB | None | 0 0
  1. You try edit in file : app/code/community/Gala/Rainbowsettings/Helper/Data.php about line 220 :
  2. Code :
  3. try{
  4.     $children = $parent->getChildrenCategories();
  5.    
  6.     if(count($children) > 0){
  7.         foreach($children as $cat){
  8.             $result .= $this->getCategoriesCustomSearch($cat,$curId);
  9.         }
  10.     }
  11. }
  12. catch(Exception $e){
  13.     return '';
  14. }
  15.  
  16. Change :
  17.  
  18. if($parent->getLevel() == 1){
  19.     try{
  20.         $children = $parent->getChildrenCategories();
  21.        
  22.         if(count($children) > 0){
  23.             foreach($children as $cat){
  24.                 $result .= $this->getCategoriesCustomSearch($cat,$curId);
  25.             }
  26.         }
  27.     }
  28.     catch(Exception $e){
  29.         return '';
  30.     }
  31. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement