In a Magento 2.2.6 installation we have the following configurable product for example:
The product with ID 3502 has the products with IDs 3503 and 3504 as its configurable options. All products have a price assigned.
However, when I load a product collection via
$products = $this->productCollectionFactory->create() ->addWebsiteFilter($store->getWebsiteId()) ->setStore($store) ->addAttributeToSelect('*');
and then iterate over the collection and use
the function always resturns
0.00 for the product with ID
3502 - it should be
261.84 of course.
It does work for other configurable products, but not for some. So far I have no clue why it would not work for this particular product for instance.
I also checked the flat tables and made sure they are properly indexed.
May be someone has any pointers on why Magento could possibly return
0.00 for these products for their "final price".