Hide price and cart based on yes/no product attribute make sure $product is loaded in file you are working with
<?Php
$hide = $_product->getResource()->getAttribute('hide_price_cart')->getFrontend()->getValue($_product);
?>
<?php if (strpos($hide, 'No') == true) :?>
<?php echo $this->getPriceHtml($_product, true) ?>
<?php endif;?>