Добрый день. Создаю новые склады Рабочий стол/Магазин/Складской учет/Склады. Если у склада создается ID 11, 14 или всё что больше 15, то в корзине товара при выборе пункта выдачи, этот склад не появляется. Пробовал менять на ID 1, 2 и т.д - склад появляется. Где можно найти причину проблемы? В корзине используется компонент sale.order.ajax. Делал запрос к базе:[CODE]<?
$select_fields = Array("ID");
$filter = Array("ACTIVE" => "Y");
$resStore = CCatalogStore::GetList(array(),$filter,false,false,$select_fields);
while($sklad = $resStore->Fetch())
{
$stores[] = $sklad;
}
echo "<pre>";
print_r($stores);
echo "</pre>";
?>[/CODE]
Показываются все склады, независимо от их ID. Таким образом происходит выборка в компоненте, в файле map.php:
[CODE]if ($_REQUEST["delivery"]){ $deliveryId="0"; $deliveryId = ($_REQUEST["delivery"]); $dbDelivery = CSaleDelivery::GetList( array("SORT"=>"ASC"), array("ID" => $deliveryId), false, false, array("ID", "STORE") ); $arDelivery = $dbDelivery->Fetch(); if (count($arDelivery) > 0 && strlen($arDelivery["STORE"]) > 0) if (strlen($arDelivery["STORE"]) > 0) { $arStoreInfo = unserialize($arDelivery["STORE"]); foreach ($arStoreInfo as $val){ $arStoreId[$val] = $val; } } $arStoreLocation = array("yandex_scale" => 11, "PLACEMARKS" => array()); $siteId = substr($_REQUEST["siteId"], 0, 2); $dbList = CCatalogStore::GetList( array("SORT" => "DESC", "ID" => "ASC"), array("ACTIVE" => "Y", "ID" => $arStoreId, "ISSUING_CENTER" => "Y", "+SITE_ID" => $siteId), false, false, array("ID", "SORT", "TITLE", "ADDRESS", "DESCRIPTION", "IMAGE_ID", "PHONE", "SCHEDULE", "GPS_N", "GPS_S", "SITE_ID", "ISSUING_CENTER", "EMAIL") ); while ($arStoreTmp = $dbList->Fetch()) { $arStore[$arStoreTmp["ID"]] = $arStoreTmp; if (intval($arStoreTmp["IMAGE_ID"]) > 0) { $arImage = CFile::GetFileArray($arStoreTmp["IMAGE_ID"]); $imgValue = CFile::ShowImage($arImage, 115, 115, "border=0", "", false); $arStore[$arStoreTmp["ID"]]["IMAGE"] = $imgValue; $arStore[$arStoreTmp["ID"]]["IMAGE_URL"] = $arImage["SRC"]; } if (floatval($arStoreLocation["yandex_lat"]) <= 0) $arStoreLocation["yandex_lat"] = $arStoreTmp["GPS_N"]; if (floatval($arStoreLocation["yandex_lon"]) <= 0) $arStoreLocation["yandex_lon"] = $arStoreTmp["GPS_S"]; $arLocationTmp = array(); $arLocationTmp["ID"] = $arStoreTmp["ID"]; if (strlen($arStoreTmp["GPS_N"]) > 0) $arLocationTmp["LAT"] = $arStoreTmp["GPS_N"]; if (strlen($arStoreTmp["GPS_S"]) > 0) $arLocationTmp["LON"] = $arStoreTmp["GPS_S"]; if (strlen($arStoreTmp["TITLE"]) > 0) $arLocationTmp["TEXT"] = $arStoreTmp["TITLE"]/*."\r\n".$arStoreTmp["DESCRIPTION"]*/; $arStoreLocation["PLACEMARKS"][] = $arLocationTmp; } $location = serialize($arStoreLocation);}[/CODE]
Редакция Бизнес