Beispiel #1
0
 public static function getSelectedPriceTypeId()
 {
     if (is_null(self::$selectedPriceTypeId)) {
         $priceTypeId = intval(COption::GetOptionInt('crm', 'selected_catalog_group_id', 0));
         if ($priceTypeId < 1) {
             $arBaseCatalogGroup = CCatalogGroup::GetBaseGroup();
             $priceTypeId = intval($arBaseCatalogGroup['ID']);
         }
         self::$selectedPriceTypeId = $priceTypeId;
     }
     return self::$selectedPriceTypeId;
 }