I am making a custom theme and found out that Search::result acts weirdly.
When i visually debug a " Magento_CatalogSearch/template/result.phtml " file seems like
$block->getResultCount() returns number which is 100% higher than 0
but $block->getProductListHtml() is returning NULL
To see all the weirdness here is var_dump of $block->getData():
array(4) {
["type"]=> string(34) "Magento\CatalogSearch\Block\Result"
["list_collection"]=> NULL
["module_name"]=> string(21) "Magento_CatalogSearch"
["result_count"]=> int(33)
}
Can someone help with this?
"What theme is your theme based on?" - 'Magento Blank'
"Do it working on 'Magento Blank' or 'Magento Luma'?" - Yes