S
S
Surzhenko2020-09-26 02:54:47
1C-Bitrix
Surzhenko, 2020-09-26 02:54:47

Why does the \Bitrix\Sale\Internals\BasketTable::getList() method return the 'BASE_PRICE' parameter equal to zero?

Actually, why does the \Bitrix\Sale\Internals\BasketTable::getList() method return the 'BASE_PRICE' parameter equal to zero? More precisely with the value "0.0000". Call example:

$result = \Bitrix\Sale\Internals\BasketTable::getList(
        array (
          'select' => array (
            'BASE_PRICE',
            'PRODUCT_ID',
            'LID',
            'ID'
          ),
          'filter' => array (
            'LID' => SITE_ID,
            'FUSER_ID' => \CSaleBasket::GetBasketUserID(),
            "ORDER_ID" => "NULL"
          )
        ) );

      while ( $BasketItem = $result->fetch() )
      {
        var_dump($BasketItem);
      }

While the CPrice::GetBasePrice() method returns the correct value of the base price without any problems. Thank you!

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question