Magento - remove "price.phtml" from the category list of products

Magento - remove "price.phtml" from the category list of products

August 18, 2026 · Illustrated author avatarBy Stefan Bogdanescu
Magento - remove "price.phtml" from the category list of products

Removing Product Prices from Magento Category List

As an experienced developer with extensive knowledge of e-commerce platforms like Magento, I often encounter requests to customize product listings on category pages. One common requirement is removing the prices displayed in the list view. Let’s dive into a practical solution for achieving this.

Understanding the Default Layout Structure

In Magento, the layout structure and logic are defined using XML files located under app/design/frontend/<theme>/layout. The default theme typically has a file named catalog_category_view.xml that handles the category listing display.

<reference name="content">
    <block type="catalog/category_view" before="-" template="catalog/category/view.phtml"/>
</reference>

The critical line is this: <block type="catalog/category_view"...>. This block includes a type attribute referencing the catalog/category_view block.

Identifying the Price Display Logic

Within Magento, the price display logic is handled by various blocks and templates. The main component that controls price rendering in the category view is the catalog/product_list block.

If you open the corresponding XML file (app/design/frontend/<theme>/layout/catalog_product_list.xml), you’ll find the following relevant section:

<block type="core/text_list" name="product_prices">
    <action method="setElementClass"><value>price</value></action>
    <block type="catalog/product_list_price" template="catalog/product/price.phtml"/>
    <!-- Additional blocks and price rendering logic -->
</block>

Here, the catalog/product_list_price block uses the price.phtml template to render prices for each product in the list.

Removing Prices from Category Listing

To remove prices entirely from the category listing without modifying the core files (which is generally a bad practice), you can create a custom layout XML file. Create a new XML file under your theme’s layout folder:

app/design/frontend/<theme>/layout/catalog_category_view.xml

Add the following content to this new file:

<reference name="product_prices">
    <action method="setIsTemplate">
        <value>0</value>
    </action>
    <action method="remove"><type>core/text_list</type></action>
</reference>

This XML code does two things:

  1. It sets the isTemplate attribute of the product_prices block to 0, which effectively disables the template rendering.
  2. It removes the core text list block that contains the price rendering logic.

Activating Your Custom Layout

To ensure your custom layout file takes precedence over the default one, you need to set the priority in your theme’s configuration:

Open app/design/frontend/<theme>/etc/view.xml and add or modify the following line inside the <default> section:

<area code="frontend"> <!-- Magento 2 -->
    <area code="en_US">
        <layout file="catalog_category_view.xml"/>
    </area>
</area>
<!-- For Magento 1, use the following format instead: -->
<!-- <layouts module="catalog"><default><category_view>catalog_category_view.xml</category_view></default></layouts> -->

This ensures that whenever a category page is loaded, your custom catalog_category_view.xml file is processed before the default one.

Conclusion

In this post, we explored how to remove product prices from Magento category listings without modifying core files. By leveraging the flexibility of the layout XML system and creating a custom layout override, you can achieve precise control over the appearance of your category pages.

Remember, the key lies in understanding the flow of blocks and templates that contribute to the page rendering process. Always strive to keep your modifications lightweight and in line with Magento’s best practices for extensibility.

For more advanced customizations and tips on optimizing your Magento store, consider exploring our Magento development services at Laravel Company. We specialize in helping businesses unlock the full potential of their e-commerce platforms through expert development and strategic consulting.

Catalog Themes Pricing

Our network