<?
$PRODUCT_ID = $_POST['id'];
$action = $_POST['action'];
$razmer = $_POST['razmer'];
$QUANTITY = $_POST['QUANTITY'];
if (CModule::IncludeModule("sale") && CModule::IncludeModule("catalog"))
{
if (($action == "ADD2BASKET" || $action == "BUY") && IntVal($PRODUCT_ID)>0)
{
Add2BasketByProductID(
$PRODUCT_ID,
$QUANTITY,
array(
array("NAME" => "Размер", "CODE" => "RAZ", "VALUE" => $razmer),
)
);
LocalRedirect("/personal/cart/index.php");
}
}
?> |