I have extended the phtml file
I want to get the msrp price and attribute set id in the extended template in both list page and view page.
I have used the following code
<?php $product = $this->helper('Company\Module\Helper\Data')->getCurrentProduct();?> <?php $msrp = $product->getMsrp();?> <?php $attributeSetId = $product->getAttributeSetId();?>
In view page it is working fine. But in list page getting error as
'Call to a member function getMsrp() is null'.