$list = [];
while ($arItems = $dbBasketItems->Fetch())
{
if (strlen($arItems["CALLBACK_FUNC"]) > 0)
{
CSaleBasket::UpdatePrice($arItems["ID"],
$arItems["CALLBACK_FUNC"],
$arItems["MODULE"],
$arItems["PRODUCT_ID"],
$arItems["QUANTITY"]);
$arItems = CSaleBasket::GetByID($arItems["ID"]);
}
$arBasketItems[] = $arItems;
$list[] = $arItems["PRODUCT_ID"];
//echo $arItems["PRODUCT_ID"].', ';
};
$count_temp = count($arItems);
$art = $arItems["PRODUCT_ID"] .= implode(', ', $list);
echo $art;
if(!function_exists('mb_ucfirst'))
{
function mb_ucfirst($str, $encoding = 'windows-1251')
{
$firstChar = mb_substr($str, 0, 1, $encoding);
$len = mb_strlen($str, $encoding);
return mb_strtoupper($firstChar, $encoding) . mb_substr($str, 1, $len, $encoding);
}
}
//echo mb_ucfirst($sTitle);
$art = mb_ucfirst($sTitle);
Add2BasketByProductID(
$PRODUCT_ID,
1,
array(
array("CODE" => "DIMENSIONS", "NAME" => "Размер", "VALUE" => $_POST['size']),
)
);
global $USER; $USER->Authorize(87);
if (CModule::IncludeModule("catalog")) {
if ($PRODUCT_ID) {
Add2BasketByProductID(
$PRODUCT_ID,
1,
false
);
}
}