i need to add div's in case of products special price in magento\module-catalog\view\frontend\templates\product\list.phtml
I'm ovverriding that file in my theme.
I may use e.g., to check for a special price, the same method used in magento\module-catalog\view\base\templates\product\price\final_price.phtml
<?php if ($block->hasSpecialPrice()): ?> ... <?php endif; ?>
but I don't know how to call it because of different $block. How can i do it? Thanks.