<?
require($_SERVER["DOCUMENT_ROOT"]."/bitrix/header.php");
$APPLICATION->SetTitle("Купить подарки. Выберите недорогой подарок - мы его доставим в удобное Вам время.");
$APPLICATION->SetPageProperty('title2', "Каталог подарков");
?> <?
if(isset($_REQUEST['ELEMENT_ID'])) {
CModule::IncludeModule('iblock');
$elem = CIBlockElement::GetByID($_REQUEST['ELEMENT_ID']);
if($elem!=false) {
$elem = $elem->Fetch();
if ($elem['IBLOCK_SECTION_ID'] == "binokly_teotralnie")
{$APPLICATION->SetPageProperty('description', "Купить подарки в интернет-магазине. Дешево и удобно. Купить театральные бинокли");}
LocalRedirect('/catalog/'.$elem['IBLOCK_SECTION_ID'].'/'.$elem['ID'].'/');
}
}
elseif(isset($_REQUEST['SECTION_ID'])) {
LocalRedirect('/catalog/'.$_REQUEST['SECTION_ID'].'/');
}
?><?
if(!isset($_SESSION['CATALOG_SORT']))
$_SESSION['CATALOG_SORT'] = 'TITLE ASC';
if(isset($_REQUEST['sort']))
$_SESSION['CATALOG_SORT'] = $_REQUEST['sort'];
if($_SESSION['CATALOG_SORT']=='TITLE ASC') {
$sort = 'NAME';
$sort_order = 'asc';
}
elseif($_SESSION['CATALOG_SORT']=='TITLE DESC') {
$sort = 'NAME';
$sort_order = 'desc';
}
$ZazaCatFilter = array(">CATALOG_QUANTITY"=>'0');
?> <?$APPLICATION->IncludeComponent("bitrix:catalog", "catalog", array(
"IBLOCK_TYPE" => "catalog",
"IBLOCK_ID" => "1",
"BASKET_URL" => "/personal/cart/",
"ACTION_VARIABLE" => "action",
"PRODUCT_ID_VARIABLE" => "id",
"SECTION_ID_VARIABLE" => "SECTION_ID",
...остальные параметры..."SEF_MODE" => "Y", );?><?require($_SERVER["DOCUMENT_ROOT"]."/bitrix/footer.php");?> |