Hide price when 0.00 grid list view magento

About-Our-Agency-Banner-Background-Image

To Hide £0.00 in grid and list mode only when the price is 0.00 change the following

Please be aware List.phtml may be in a different folder if you’re using a template.
something like this

/app/design/frontend/default/grayscale/template/catalog/product

You can check for the route by turning template path hints on in the configuration / main website / debug and re loading the page..


If you look for

<?php echo $this->getPriceHtml($_product, true) ?> in List.phtml

Be sure to look the right list.phtml file up if you’re using a template first.

Then change it to read

<?php if($_product->price==0): ?>
<?php echo ‘Please call for a price’; ?>
<?php else: ?>
<?php echo $this->getPriceHtml($_product, true) ?>
<?php endif; ?>

If the product has a price it will show the price. If the price is set to 0.00 it will display a message instead.

Thanks I hope that helps someone.