- Модуль: iblock
- Путь к файлу: ~/bitrix/modules/iblock/classes/general/cml2.php
- Класс: CIBlockCMLExport
- Вызов: CIBlockCMLExport::ExportPrices
function ExportPrices()
{
if($this->next_step["catalog"])
{
$priceTypes = CCatalogGroup::GetListArray();
if (!empty($priceTypes))
{
fwrite($this->fp, "tt<".GetMessage("IBLOCK_XML2_PRICE_TYPES").">n");
foreach ($priceTypes as $arPrice)
{
fwrite($this->fp, $this->formatXMLNode(3, GetMessage("IBLOCK_XML2_PRICE_TYPE"), array(
GetMessage("IBLOCK_XML2_ID") => $arPrice["NAME"],
GetMessage("IBLOCK_XML2_NAME") => $arPrice["NAME"],
)));
}
unset($arPrice);
fwrite($this->fp, "tt".GetMessage("IBLOCK_XML2_PRICE_TYPES").">n");
}
unset($priceTypes);
}
}