<?
if (CModule::IncludeModule("catalog"))
{
if (($action == "ADD2BASKET" || $action == "BUY") && IntVal($PRODUCT_ID)>0)
{
Add2BasketByProductID(
$PRODUCT_ID,
2,
array(
array("NAME" => "Цвет", "CODE" => "CLR", "VALUE" => "красный"),
array("NAME" => "Размер", "VALUE" => "25")
)
);
if ($action == "BUY")
LocalRedirect("basket.php");
}
}
?>