[QUOTE]Azim Hikmatov пишет:
А в самом шаблоне компонента, там где выводится ссылка на описание[/QUOTE]
Наименование-ссылка на описание где находится в шаблоне, например [URL=http://dvmsoft.ru/e-store/xml_catalog/117/]этой страницы[/URL]?
[CODE]<?if(!defined("B_PROLOG_INCLUDED") || B_PROLOG_INCLUDED!==true)die();?>
<div class="catalog-section">
<?if($arParams["DISPLAY_TOP_PAGER"]):?>
<?=$arResult["NAV_STRING"]?><br />
<?endif;?>
<table cellpadding="0" cellspacing="0" border="0">
<?foreach($arResult["ITEMS"] as $cell=>$arElement):?>
<?if($cell%$arParams["LINE_ELEMENT_COUNT"] == 0):?>
<tr>
<?endif;?>
<td valign="top" width="<?=round(100/$arParams["LINE_ELEMENT_COUNT"])?>%">
<table cellpadding="0" cellspacing="2" border="0">
<tr>
<?if(is_array($arElement["PREVIEW_PICTURE"])):?>
<td valign="top">
<a href="<?=$arElement["DETAIL_PAGE_URL"]?>"><img border="0" src="<?=$arElement["PREVIEW_PICTURE"]["SRC"]?>" width="<?=$arElement["PREVIEW_PICTURE"]["WIDTH"]?>" height="<?=$arElement["PREVIEW_PICTURE"]["HEIGHT"]?>" alt="<?=$arElement["PREVIEW_PICTURE"]["ALT"]?>" title="<?=$arElement["NAME"]?>" /></a><br />
</td>
<?elseif(is_array($arElement["DETAIL_PICTURE"])):?>
<td valign="top">
<a href="<?=$arElement["DETAIL_PAGE_URL"]?>"><img border="0" src="<?=$arElement["DETAIL_PICTURE"]["SRC"]?>" width="<?=$arElement["DETAIL_PICTURE"]["WIDTH"]?>" height="<?=$arElement["DETAIL_PICTURE"]["HEIGHT"]?>" alt="<?=$arElement["DETAIL_PICTURE"]["ALT"]?>" title="<?=$arElement["NAME"]?>" /></a><br />
</td>
<?endif?>
<td valign="top"><a href="<?=$arElement["DETAIL_PAGE_URL"]?>"><?=$arElement["NAME"]?></a><br />
<?foreach($arElement["DISPLAY_PROPERTIES"] as $pid=>$arProperty):?>
<?=$arProperty["NAME"]?>: <?
if(is_array($arProperty["DISPLAY_VALUE"]))
echo implode(" / ", $arProperty["DISPLAY_VALUE"]);
else
echo $arProperty["DISPLAY_VALUE"];?><br />
<?endforeach?>
<br />
<?=$arElement["PREVIEW_TEXT"]?>
</td>
</tr>
</table>
<?foreach($arElement["PRICES"] as $code=>$arPrice):?>
<?if($arPrice["CAN_ACCESS"]):?>
<?=$arResult["PRICES"][$code]["TITLE"];?>:
<?if($arPrice["DISCOUNT_VALUE"] < $arPrice["VALUE"]):?>
<s><?=$arPrice["PRINT_VALUE"]?></s> <span class="catalog-price"><?=$arPrice["PRINT_DISCOUNT_VALUE"]?></span>
<?else:?><span class="catalog-price"><?=$arPrice["PRINT_VALUE"]?></span><?endif;?>
<?endif;?>
<?endforeach;?>
<?if(is_array($arElement["PRICE_MATRIX"])):?>
<table cellpadding="0" cellspacing="0" border="0" width="100%" class="data-table">
<thead>
<tr>
<?if(count($arElement["PRICE_MATRIX"]["ROWS"]) >= 1 && ($arElement["PRICE_MATRIX"]["ROWS"][0]["QUANTITY_FROM"] > 0 || $arElement["PRICE_MATRIX"]["ROWS"][0]["QUANTITY_TO"] > 0)):?>
<td valign="top" nowrap><?= GetMessage("CATALOG_QUANTITY") ?></td>
<?endif?>
<?foreach($arElement["PRICE_MATRIX"]["COLS"] as $typeID => $arType):?>
<td valign="top" nowrap><?= $arType["NAME_LANG"] ?></td>
<?endforeach?>
</tr>
</thead>
<?foreach ($arElement["PRICE_MATRIX"]["ROWS"] as $ind => $arQuantity):?>
<tr>
<?if(count($arElement["PRICE_MATRIX"]["ROWS"]) > 1 || count($arElement["PRICE_MATRIX"]["ROWS"]) == 1 && ($arElement["PRICE_MATRIX"]["ROWS"][0]["QUANTITY_FROM"] > 0 || $arElement["PRICE_MATRIX"]["ROWS"][0]["QUANTITY_TO"] > 0)):?>
<th nowrap><?
if (IntVal($arQuantity["QUANTITY_FROM"]) > 0 && IntVal($arQuantity["QUANTITY_TO"]) > 0)
echo str_replace("#FROM#", $arQuantity["QUANTITY_FROM"], str_replace("#TO#", $arQuantity["QUANTITY_TO"], GetMessage("CATALOG_QUANTITY_FROM_TO")));
elseif (IntVal($arQuantity["QUANTITY_FROM"]) > 0)
echo str_replace("#FROM#", $arQuantity["QUANTITY_FROM"], GetMessage("CATALOG_QUANTITY_FROM"));
elseif (IntVal($arQuantity["QUANTITY_TO"]) > 0)
echo str_replace("#TO#", $arQuantity["QUANTITY_TO"], GetMessage("CATALOG_QUANTITY_TO"));
?></th>
<?endif?>
<?foreach($arElement["PRICE_MATRIX"]["COLS"] as $typeID => $arType):?>
<td><?
if($arElement["PRICE_MATRIX"]["MATRIX"][$typeID][$ind]["DISCOUNT_PRICE"] < $arElement["PRICE_MATRIX"]["MATRIX"][$typeID][$ind]["PRICE"]):?>
<s><?=FormatCurrency($arElement["PRICE_MATRIX"]["MATRIX"][$typeID][$ind]["PRICE"], $arElement["PRICE_MATRIX"]["MATRIX"][$typeID][$ind]["CURRENCY"])?></s><span class="catalog-price">
<?=FormatCurrency($arElement["PRICE_MATRIX"]["MATRIX"][$typeID][$ind]["DISCOUNT_PRICE"], $arElement["PRICE_MATRIX"]["MATRIX"][$typeID][$ind]["CURRENCY"]);?></span>
<?else:?>
<span class="catalog-price">
<?=FormatCurrency($arElement["PRICE_MATRIX"]["MATRIX"][$typeID][$ind]["PRICE"], $arElement["PRICE_MATRIX"]["MATRIX"][$typeID][$ind]["CURRENCY"]);?></span>
<?endif?>
</td>
<?endforeach?>
</tr>
<?endforeach?>
</table><br />
<?endif?>
<?if($arParams["DISPLAY_COMPARE"]):?>
<a href="<?echo $arElement["COMPARE_URL"]?>"><?echo GetMessage("CATALOG_COMPARE")?></a>
<?endif?>
<?if($arElement["CAN_BUY"]):?>
<input name="buy" type="button" value="<?= GetMessage("CATALOG_BUY") ?>" OnClick="window.location='<?=$arElement["BUY_URL"]?>#buy'" />
<input name="buy" type="button" value="<?= GetMessage("CATALOG_ADD") ?>" OnClick="window.location='<?=$arElement["ADD_URL"]?>#buy'" />
<?elseif((count($arResult["PRICES"]) > 0) || is_array($arElement["PRICE_MATRIX"])):?>
<?=GetMessage("CATALOG_NOT_AVAILABLE")?>
<?endif?>
</td>
<?$cell++;
if($cell%$arParams["LINE_ELEMENT_COUNT"] == 0):?>
</tr>
<?endif?>
<?endforeach; // foreach($arResult["ITEMS"] as $arElement):?>
<?if($cell%$arParams["LINE_ELEMENT_COUNT"] != 0):?>
<?while(($cell++)%$arParams["LINE_ELEMENT_COUNT"] != 0):?>
<td> </td>
<?endwhile;?>
</tr>
<?endif?>
</table>
<?if($arParams["DISPLAY_BOTTOM_PAGER"]):?>
<br /><?=$arResult["NAV_STRING"]?>
<?endif;?>
</div>
[/CODE]