Your IP : 18.119.134.140
<?php
require($_SERVER['DOCUMENT_ROOT'] . '/bitrix/modules/main/include/prolog_before.php');
CModule::IncludeModule("iblock");
CModule::IncludeModule("sale");
CModule::IncludeModule("catalog");
//echo SITE_ID;
if(!isset($_POST['quantity']))
Add2BasketByProductID($_POST["item"], 1);
else{
$arFields = array(
"QUANTITY" => 0
);
CSaleBasket::Update($_POST["item"], $arFields);
}
$APPLICATION->IncludeComponent(
"bitrix:sale.basket.basket.small",
"head",
array(
"COMPONENT_TEMPLATE" => "head",
"PATH_TO_BASKET" => "/personal/cart/",
"PATH_TO_ORDER" => "/personal/order/make/",
"SHOW_DELAY" => "N",
"SHOW_NOTAVAIL" => "N",
"SHOW_SUBSCRIBE" => "N"
),
false
);