product price on list.phtml - magento2


#1

Hello,how we can get the price for simple and configurable product on list.phtml?

If we try:
$block->getProductPrice($_product)

We get the correct price but how we get the price with and without tax
from a simple and configurable product? Which 2 line codes we need to
use?

like:

$productPriceWithTax = samplecode ;
$productPriceWithOutTax = samplecode ;

Hope someone can help…