Hiding 'Inc TAX/VAT' in Product Listing on Magento?

Hiding 'Inc TAX/VAT' in Product Listing on Magento?

October 17, 2026 · Illustrated author avatarBy Stefan Bogdanescu
Hiding 'Inc TAX/VAT' in Product Listing on Magento?

Hiding ‘Inc TAX/VAT’ on Product Listing in Magento

As an experienced e-commerce developer, I often encounter clients who want to remove or hide the “Inc Tax/VAT” label from their product listings while keeping it visible on individual product pages for compliance reasons. This is a common request and can be achieved through template modifications rather than cheating with CSS.

Understanding the Magento Template System

Magento uses the Blade templating engine, which allows us to customize output using PHP within HTML files. The file responsible for displaying prices in listings is app/design/frontend/[Theme]/[Package]/template/catalog/product/list.phtml.

Removing ‘Inc TAX/VAT’ from Listings Only

To achieve this without affecting individual product pages:

  1. Navigate to the listing template:
cd app/design/frontend/your-theme-name/your-package/
  1. Open or create a list.phtml file if it doesn’t exist.

  2. Locate the price rendering section, which typically looks something like this (the exact lines may vary depending on your theme):

<span class="price-including-tax"><?php echo $this->getProductPriceHtml($product, 'bundle_option_price') ?></span>
  1. Add a conditional check to display “Inc Tax/VAT” only if you’re not on the product view page:
<?php
$currentPage = Mage::helper('catalog/output')->getCategoryUrl(Mage::registry('current_category'));
$productViewUrl = Mage::app()->getFrontController()->getRequest()->getRouteName() === 'catalog_product_view';
?>
<?php if (!$productViewUrl): ?>
    <span class="price-including-tax"><?php echo $this->getProductPriceHtml($product, 'bundle_option_price') ?></span>
<?php endif; ?>

This code checks if the current page route is catalog_product_view (which represents individual product pages). If it’s not a product view page, then “Inc Tax/VAT” will be displayed.

Keeping the Code Clean

Remember to use the Magento template inheritance and override mechanisms for better code management. You can read more about this in our guide on Magento Theme Development Best Practices.

Conclusion

Removing “Inc Tax/VAT” from product listings while keeping it visible on individual pages is a common requirement that can be achieved cleanly through Magento’s template system. By understanding the flow of data and applying appropriate conditionals, we can tailor the display without resorting to CSS hacks or core file modifications.

Always ensure you have a backup before making changes and test thoroughly in a staging environment to avoid any potential disruptions on your live site. If you need further assistance with Magento theme development, feel free to explore our Magento Development Services.

Catalog Themes Pricing CLI

Our network