Disable 'Prices' appearing in Magento

Disable 'Prices' appearing in Magento

July 8, 2026 · Illustrated author avatarBy Stefan Bogdanescu
Disable 'Prices' appearing in Magento

Hiding All Prices on Your Magento Site

As an e-commerce business owner or developer, you may want to disable prices from being displayed publicly on your Magento site while still allowing customers to add products to their carts. This could be useful for subscription-based models, wholesale pricing tiers, or creating a “request a quote” system.

Understanding the Default Price Display

By default, Magento displays product prices in various places across the frontend:

  • Product Detail Pages
  • Category Listing Pages
  • Shopping Cart Summary
  • Order Totals on Checkout Page
  • Invoice and Shipments for admin users

The product price is determined by the combination of base price, tiered pricing, special price, catalog rules, and tax calculations. Magento uses these to display the final sale price.

Disabling Prices with PHP Overrides

To disable prices globally without modifying core files, you can use a PHP override in your theme’s local code pool. This allows for cleaner code separation and easier upgrades compared to direct file overrings.

  1. Navigate to app/design/frontend/{package}/{theme}/Magento_Catalog/templates/product/price/default.phtml
  2. Open the file in your preferred IDE.
  3. Comment out or delete all PHP logic inside the <div class="price-box"> block:
<!-- <div class="price-box">
    <span class="regular-price">
        <?php if ($block->getExcludeTaxFromPrice()): ?>
            <span class="price-label"><?= /* @escapeNotVerified */ $block->getExclTaxPriceLabel() ?></span>
        <?php else: ?>
            <span class="price-label"><?= /* @escapeNotVerified */ $block->getIncludeTaxPriceLabel() ?></span>
        <?php endif; ?>
        <?= /* @escapeNotVerified */ $block->getProduct()->getFinalPrice() ?>
    </span>
    ...
</div> -->
  1. Save the file.

This will remove all price displays from the product detail pages and category listings across your site, leaving behind empty price-box divs.

Removing Prices from Cart and Checkout

For a complete solution, you’ll also need to hide prices in the cart summary and checkout process:

  1. Override app/design/frontend/{package}/{theme}/Magento_Checkout/templates/summary/items.phtml
  2. Comment out or remove all logic inside the <div class="summary-item-price"> block.
  3. Repeat for app/design/frontend/{package}/{theme}/Magento_Catalog/templates/product/price/default.phtml in the checkout area.

Using jQuery to Hide Prices

If you prefer a JavaScript-based approach, you can use jQuery to hide prices on the frontend:

  1. Add this script to your theme’s footer.phtml file or create a new static block with the script:
<script>
    $(document).ready(function() {
        $('.price-box').hide();
        $('.summary-item-price').hide();
    });
</script>
  1. Include jQuery library if not already present in your theme.

Conclusion

Disabling prices globally in Magento requires careful overrides of key template files, both for the catalog and checkout processes. Always ensure you have a backup before making changes and thoroughly test your solution across different browsers and devices.

Remember that this approach does not hide prices from admin users or search engines—you’ll need additional configuration to achieve complete price invisibility.

For more advanced pricing customizations in Magento, I recommend exploring the Laravel Company blog for detailed tutorials on implementing special pricing rules and extending the native price calculation logic.

Checkout Catalog Themes Admin

Our network