protected function processElement($element) { $element = parent::processElement($element); $element = $this->processAmount($element); $element = $this->processPrice($element); return $element; }
protected function executeMain() { $filterInitialized = false; if ($this->arParams['ELEMENT_ID']) { $this->elementsFilter['ID'] = $this->arParams['ELEMENT_ID']; $filterInitialized = true; } if ($this->arParams['ELEMENT_CODE']) { $this->elementsFilter['CODE'] = $this->arParams['ELEMENT_CODE']; $filterInitialized = true; } if ($filterInitialized) { parent::executeMain(); $this->arResult['ELEMENT'] = $this->arResult['ELEMENTS'][0]; } unset($this->arResult['ELEMENTS']); if (intval($this->arResult['ELEMENT']['IBLOCK_SECTION_ID'])) { $this->arParams['SELECT_SECTIONS_TREE'] = 'Y'; $this->arParams['SECTION_ID'] = $this->arResult['ELEMENT']['IBLOCK_SECTION_ID']; $this->selectSections(); } }