Jump to content

Resolved - how to edit categories to be in alphabetic order in admin/


bosanci28

Recommended Posts

can someone tell me how or where to edit,as i see ,when adding

items under the admin/add products then when choosing category ,is not in alphabetic order !,

somewhere in includes/functions.inc.php i found


$dirArray[] = $config['dirSymbol'].$catArray[$i]['cat_name'];

   }

  

   $cat_father_id = $cat['cat_father_id'];

  }

}

  

if ($reverseSort) {

  arsort($dirArray);

} else {

  asort($dirArray);

}

reset($dirArray);



$dir = "";

foreach ($dirArray as $key => $value){

   $dir .= $value;

}

   

if ($skipFirstSymbol) {

  $dir = substr($dir, strlen($config['dirSymbol']));

}



return $dir;

}

changed from arsort to krsort and the other one asort to ksort but no luck fixing it,

any help will appreciate!

thanks

Link to comment
Share on other sites

Hi

You can change the order of the categories by clicking View Categories from the admin menu and using the 'arrow' icons to move the categories up or down to the order you choose. If you have any child categories, click the main category name and do the same there and click Save Order.

Lee

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...