Magento 2: Show Both Regular & Special Price on Configurable Products

Show Both Regular & Special Price on Configurable Products in m2

Hello Magento Friends,

Welcome to Magento 2 How-To Tutorials by MageComp. Today’s solution is about Magento 2: Show Both Regular & Special Price on Configurable Products.

Configurable products are a mixture of simple products with various options like color, size, etc. Magento 2 store owners offer special prices to increase sales, purchasing power, and manage surplus stock. But when special prices are applied, it does not show the original price.

So I am here with the solution to show the special price and original price both on configurable products in Magento 2.

Steps to Show Both Regular & Special Price on Configurable Products in Magento 2:

Step 1: Copy final_price.phtml from 

Vendor\magento\module-configurable-product\view\base\templates\product\price\final_price.phtml

to

app\design\frontend\Themes\Yourtheme\Magento_ConfigurableProduct\templates\product\price\final_price.phtml

Step 2: Now find below lines of code

<?php if ($block->hasSpecialPrice()) : ?>

    <span class="old-price sly-old-price">

And replace it with,

<?php if (!$block->isProductList() && $block->hasSpecialPrice()) : ?>

    <span class="old-price sly-old-price no-display">

After performing the above steps, the special price and original price will be displayed on the category page of configurable products in Magento 2.

special & original price

Conclusion:

This way you can Show Both Regular & Special Price on Configurable Products in Magento 2. In case of any difficulty, feel comfortable contacting me via the comment section. Share the article with other Magento developers and stay tuned so that you do not miss out on any important solution.

Happy Coding!

Previous Article

How to Create Downloadable Product Programmatically in Magento 2

Next Article

How to Create Custom GraphQL in Magento 2

View Comments (2)
  1. This works great on the catalog page for configurable product. But on the actual product page, it still only shows the special price not the regular with strike through and special price. It will finally show when I select a size. Do you know how to fix this?

Leave a Comment

Your email address will not be published. Required fields are marked *

Get Connect With Us

Subscribe to our email newsletter to get the latest posts delivered right to your email.
Pure inspiration, zero spam ✨