Magento Catalog Price Discount rules not apply in Product detail page

Magento Catalog Price Discount rules not apply in Product detail page

August 22, 2026 · Illustrated author avatarBy Stefan Bogdanescu
Magento Catalog Price Discount rules not apply in Product detail page

Magento: Displaying Discounted Prices on Product Detail Pages

Hello developers! I’m here to help you solve an issue that many Magento 2 users face - missing discounted prices on the product detail page when Catalog Price Rules are applied.

The Problem

You’ve configured your catalog price rules, and they’re working perfectly in the product list view. However, the discounted price doesn’t show up when you click through to an individual product’s detail page. Instead, only the standard, non-discounted price is displayed.

This can be frustrating for customers who expect a clear indication of savings on each item’s page. Let’s fix this!

The Solution

The issue lies in how Magento renders prices. By default, it displays the original price and the discounted price separately. To show the discounted price on the product detail page, we need to modify the rendering process.

Here are the steps:

Step 1: Override the Product View Template

Navigate to your theme’s directory (e.g., app/design/frontend/Vendor/theme/Magento_Catalog/templates/product/view) and locate the file named product.phtml. This is the template responsible for rendering the product detail page.

If you haven’t already done so, create a copy of this file in your theme’s template folder. For example:

app/design/frontend/Vendor/theme/Magento_Catalog/templates/product/view/custom_product.phtml

Step 2: Modify the Price Display Logic

Open your custom product.phtml file and find the block of code that displays the product prices, usually around line 130-140. It should look something like this:

<?php if ($_product->getPrice() > 0): ?>
    <div class="price-box">
        <p class="old-price">
            <?php echo $block->formatPrice($_product->getPrice()) ?>
        </p>
        <p class="special-price">
            <?php echo $block->displayProductPrice($_product) ?>
        </p>
    </div>
<?php endif; ?>

Step 3: Merge the Prices

To display the discounted price on the product detail page, we need to merge the original and discounted prices into a single, formatted line. Update your custom_product.phtml file as follows:

<div class="price-box">
    <p class="special-price">
        <?php echo $block->displayProductPrice($_product) ?>
    </p>
</div>

In this updated code, we’ve removed the old price block and only displayed the discounted price using $block->displayProductPrice($_product). This tells Magento to use the lowest active price (including discounts) for rendering.

Conclusion

Displaying the discounted prices on your product detail pages is a key aspect of providing clear information to customers. By following these steps, you can override the default behavior and ensure that your customers see the savings clearly when browsing individual products.

Remember, it’s crucial to keep your theme’s templates up-to-date with Magento core files to avoid issues during upgrades or security patches. Always backup your changes before making modifications.

For more in-depth guides on Magento development and customization, don’t forget to check out our resources at Laravel Company. We offer a wide range of services tailored for businesses looking to maximize their e-commerce potential with Magento.

Magento 2 Catalog Themes Configuration

Our network