/**
  * Get the next ShopCategories ID after $shopCategoryId according to
  * the sorting order.
  * @param   integer $shopCategoryId     The ShopCategories ID
  * @return  integer                     The next ShopCategories ID
  * @static
  * @author  Reto Kohli <*****@*****.**>
  */
 static function getNextShopCategoriesId($shopCategoryId = 0)
 {
     // Get the parent ShopCategories ID
     $parentShopCategoryId = ShopCategories::getParentCategoryId($shopCategoryId);
     if (!$parentShopCategoryId) {
         $parentShopCategoryId = 0;
     }
     // Get the IDs of all active children
     $arrChildShopCategoriesId = ShopCategories::getChildCategoryIdArray($parentShopCategoryId, true);
     return isset($arrChildShopCategoriesId[array_search($parentShopCategoryId, $arrChildShopCategoriesId) + 1]) ? $arrChildShopCategoriesId[array_search($parentShopCategoryId, $arrChildShopCategoriesId) + 1] : $arrChildShopCategoriesId[0];
 }