Magento – Magento 2.2.6 Configurable Product How to Show Old Price and Special Price

configurable-productmagento2magento2.2.6price

I have used Magento 2.2.6 version. I have one configurable product. I have added a special price to the associated product.The Special Price is Display but the old price is not displayed on how to show them?

Please refer the following screenshot:

In Frontend:

Magento 2.2.6 Configurable Product How to Show Old Price and Special Price

In admin Special Price:

Magento 2.2.6 Configurable Product How to Show Old Price and Special Price

In admin Product add/edit area:

Magento 2.2.6 Configurable Product How to Show Old Price and Special Price

Best Answer

Found solution Here

Copy final_price.phtml from

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

to

Vendor/theme/Magento_ConfigurableProduct/templates/product/price/final_price.phtml

change (around line 22)

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

with

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

(special_price will display)

and replace

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

by

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

(remove the no-display class)