Пример #1
0
<?
require($_SERVER["DOCUMENT_ROOT"] . "/bitrix/modules/main/include/prolog_before.php");
    $arCompare = $_SESSION["CATALOG_COMPARE_LIST"][$arZSettings['CATALOG_ID']]["ITEMS"];
    $countCompare = count($arCompare);

if($_POST['checkCompare'] != 'Y'){
?>
    <?if($countCompare == 0){?>
        <span class="compare-text"><svg class="icon"><use xlink:href="#stat"/></svg> Нет товаров к сравнению</span>
    <?}else{?>

        <span class="compare-text">
                        <svg class="icon"><use xlink:href="#stat"/></svg>
            <? echo $countCompare." ".wordForm($countCompare,'товар','товара','товаров')." к ";?><a href="/compare/" class="compare-text">сравнению</a>
                   </span>
    <?}?>
<?}else{
    if(count($arCompare) < 5)
    {
        echo 'N';
    }
    else
    {
        echo 'Y';
    }

}?>
Пример #2
0
	<div class="title big-text"><?php 
echo GetMessage("ORDER_SUMMARY");
?>
</div>
	<div class="card-content">
		<table class="nostyle">
			<tr>
				<td>
				<?
				$productCount = count($arResult["GRID"]["ROWS"]);
				?>
				<?php 
echo $productCount;
?>
 <?php 
echo wordForm($productCount, 'товар', 'товара', 'товаров');
?>
 <?php 
echo GetMessage("SOA_TEMPL_SUMM");
?>
</td><td class="sum" align="right"><?php 
echo priceShow($arResult["ORDER_PRICE"]);
?>
				</td>
			</tr>
			<tr>
				<td><?php 
echo GetMessage("SOA_TEMPL_SUM_DELIVERY");
?>
</td>
				<td align="right">