CModule::IncludeModule("iblock"); $el = new CIBlockElement; $arLoadProductArray = Array("MODIFIED_BY" => $USER->GetID(), "IBLOCK_SECTION_ID" => false, "IBLOCK_ID" => .... ); if ($PRODUCT_ID = $el->Add($arLoadProductArray)){ return $PRODUCT_ID; }
require_once dirname(__FILE__) . '/../../../php_interface/phpexcel/PHPExcel.php'; require_once dirname(__FILE__) . '/../../../php_interface/phpexcel/PHPExcel/IOFactory.php';
if(!defined("B_PROLOG_INCLUDED") || B_PROLOG_INCLUDED!==true) die();
CModule::IncludeModule('iblock');