i have a problem with this code. some one deleted/changed something here. i spent countless hours trying to figure out where my ; or } might be missing, but no luck. Could you please help me.
<?require($_SERVER["DOCUMENT_ROOT"]."/bitrix/header.php");
$APPLICATION->SetTitle("Корзина");
?><?
if($_REQUEST['otkr'])
{
Add2BasketByProductID(
$_REQUEST['otkr'],
1,
array(),
array(
array("NAME" => "Текст открытки", "CODE" => "TEXT", "VALUE" => $_REQUEST['text_otkr'])
)
);
}
if($_REQUEST['pack'])
{
Add2BasketByProductID(
$_REQUEST['pack'],
1,
array(),
array()
);
}
?> <?$APPLICATION->IncludeComponent(
"infoday:sale.basket.basket",
"cart",
Array(
"COLUMNS_LIST" => array("NAME","PRICE","TYPE","QUANTITY","DELETE","DELAY","WEIGHT","DISCOUNT"),
"COMPOSITE_FRAME_MODE" => "A",
"COMPOSITE_FRAME_TYPE" => "AUTO",
"COUNT_DISCOUNT_4_ALL_QUANTITY" => "Y",
"GIFT_ID" => "",
"HIDE_COUPON" => "Y",
"PATH_TO_ORDER" => "/personal/order/make/",
"PRICE_VAT_SHOW_VALUE" => "N",
"QUANTITY_FLOAT" => "N",
"SET_TITLE" => "Y"
)
);?> <?if($USER->isAdmin()):?> <br>
<br><?require($_SERVER["DOCUMENT_ROOT"]."/bitrix/footer.php");?>
you are missing endif; at the end.
<?if($USER->isAdmin()):?> <br>
<br><?require($_SERVER["DOCUMENT_ROOT"]."/bitrix/footer.php");?>
<? endif; ?>
your code style is terrible... why are you mixing html with php and ending php section (?>) when at next line starting a new one (<?)