Warning: Undefined array key "बहिः गच्छतु" in
/home/httpd/vhosts/puntogroup.ru/httpdocs/collections/plint/index.php(1) : eval()'d code on line
136
Warning: Undefined array key "aksi" in
/home/httpd/vhosts/puntogroup.ru/httpdocs/collections/plint/index.php(1) : eval()'d code on line
140
Warning: Undefined array key "नामपत्र" in
/home/httpd/vhosts/puntogroup.ru/httpdocs/collections/plint/index.php(1) : eval()'d code on line
159
Warning: Undefined array key "नामपत्र" in
/home/httpd/vhosts/puntogroup.ru/httpdocs/collections/plint/index.php(1) : eval()'d code on line
181
Current File : /home/httpd/vhosts/puntogroup.ru/httpdocs/ajax/action_basket.php |
<?define("STATISTIC_SKIP_ACTIVITY_CHECK", "true");?>
<?require($_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/main/include/prolog_before.php");?>
<?\Bitrix\Main\Loader::includeModule('aspro.next');?>
<?if($_POST["CLEAR_ALL"]=="Y"){
Bitrix\Main\Page\Frame::getInstance()->startDynamicWithID("basket-allitems-block");
\Bitrix\Main\Loader::includeModule('sale');
$type="BASKET";
if(isset($_POST["TYPE"]) && $_POST["TYPE"]){
switch ($_POST["TYPE"]) {
case 2:
$type="DELAY";
break;
case 3:
$type="SUBSCRIBE";
break;
case 4:
$type="NOT_AVAILABLE";
break;
default:
break;
}
}
$arItems=CNext::getBasketItems($iblockID, "ID");
if($_POST["TYPE"] == "all" || $_POST["CLEAR_ALL"] == "Y")
{
foreach($arItems as $key => $arItem)
{
foreach($arItem as $id)
CSaleBasket::Delete($id);
}
}
else
{
foreach($arItems[$type] as $id)
{
CSaleBasket::Delete($id);
}
}
Bitrix\Main\Page\Frame::getInstance()->finishDynamicWithID("basket-allitems-block", "");
}elseif($_POST["delete_top_item"]=="Y"){
\Bitrix\Main\Loader::includeModule('sale');
CSaleBasket::Delete($_POST["delete_top_item_id"]);
}?>
<?CNextCache::ClearCacheByTag('sale_basket');
CNext::clearBasketCounters();?>