Don’t show price if 0.00 – How Magento
This is for the product page only

If you need to add products to your store but you show the price as 0.00 it can look bad so here’s how to display the product but show a different message instead of the price.

It only shows the alternative message if the price is set to 0.00 otherwise the price will be shown as normal.

first open

/app/design/frontend/base/default/template/catalog/product/view/type/default.phtml

it should look like this
BEFORE


getProduct() ?>

 

 


getChildHtml(‘product_type_data_extra’) ?>
getPriceHtml($_product) ?>
AND THIS AFTER


getProduct() ?>

 

 


getChildHtml(‘product_type_data_extra’) ?>
price==0): ?>


getPriceHtml($_product) ?>

We also changed the availability message at the same time for this client as they didn’t want to show stock levels.

You may find that the price is pulled using a different file depending on your installation. If you need help please let us know.

We hope you find this useful.