$.ajax({
url:'im.php',
success:function(data){
}
});
use Bitrix\Sale;
use Bitrix\Catalog;
$orderId = 68;
$saleOrder = Bitrix\Sale\Order::load($orderId);
$shipmentCollection = $saleOrder->getShipmentCollection();
foreach ($shipmentCollection as $shipment)
{
if (!$shipment->isSystem())
{
$arResult['originalDeliveryId'] = $shipment->getDeliveryId();
$arResult['customPriceDelivery'] = $shipment->getField('CUSTOM_PRICE_DELIVERY');
$arResult['basePrice'] = $shipment->getField('BASE_PRICE_DELIVERY');
$arResult['store_id'] = $shipment->getStoreId();
$arStore = Catalog\StoreTable::getRow([
'select' => ['TITLE'],
'filter' => [
'ID' => $arResult['store_id'],
]
]);
if ( $arStore )
{
echo $arStore['TITLE'];
}
else
{
echo "Склад не найден";
}
break;
}
}
[Error]
Class 'Bitrix\Catalog\StoreTable' not found (0)
Ожидаю увидеть дату.