I have created a custom block in my module to show the quantity of each product in
I modify in my custom template list.phtml with the code below
<?php $myBlock= $block->getLayout()>createBlock('MyCompany\Helloworld\Block\Display'); echo $myBlock->getMyCustomMethod(); ?>
but nothing appears and it also destroys the appearance. It only shows one product without any customization.
What am I doing wrong?